Replaced ByteInputStream with ByteArrayInputStream

ByteInputStream is an internal class and won’t compile with maven.
This commit is contained in:
Steve Myers 2014-07-24 21:35:11 -07:00
parent 222045ca5a
commit 6b5bea2891

View file

@ -3,7 +3,6 @@ package io.bitsquare.util;
import com.google.gson.FieldNamingPolicy; import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import com.sun.xml.internal.messaging.saaj.util.ByteInputStream;
import java.awt.Desktop; import java.awt.Desktop;
import java.io.*; import java.io.*;
import java.net.URI; import java.net.URI;
@ -35,8 +34,8 @@ public class Utilities
Object result = null; Object result = null;
try try
{ {
ByteInputStream byteInputStream = new ByteInputStream(); ByteArrayInputStream byteInputStream =
byteInputStream.setBuf(com.google.bitcoin.core.Utils.parseAsHexOrBase58(serializedHexString)); new ByteArrayInputStream(com.google.bitcoin.core.Utils.parseAsHexOrBase58(serializedHexString));
try (ObjectInputStream objectInputStream = new ObjectInputStream(byteInputStream)) try (ObjectInputStream objectInputStream = new ObjectInputStream(byteInputStream))
{ {