Package net.infonode.util
Class StreamUtil
java.lang.Object
net.infonode.util.StreamUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic final byte[]readAll(InputStream is) static voidreadAll(InputStream in, byte[] data) static final voidreadAll(InputStream in, byte[] data, int offset, int length) static final ObjectreadObject(byte[] data) static voidwrite(InputStream in, OutputStream out, int length) static byte[]static final byte[]writeObject(Object object)
-
Constructor Details
-
StreamUtil
public StreamUtil()
-
-
Method Details
-
readAll
public static final void readAll(InputStream in, byte[] data, int offset, int length) throws IOException - Throws:
IOException
-
readAll
- Throws:
IOException
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
readAll
- Throws:
IOException
-
write
- Throws:
IOException
-