Package net.infonode.util
Class StreamUtil
java.lang.Object
net.infonode.util.StreamUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static final byte[]
readAll
(InputStream is) static void
readAll
(InputStream in, byte[] data) static final void
readAll
(InputStream in, byte[] data, int offset, int length) static final Object
readObject
(byte[] data) static void
write
(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:
IOException
ClassNotFoundException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
readAll
- Throws:
IOException
-
write
- Throws:
IOException
-