net.infonode.util
Class StreamUtil
java.lang.Object
net.infonode.util.StreamUtil
public class StreamUtil
- extends java.lang.Object
- Version:
- $Revision: 1.7 $
- Author:
- $Author: jesper $
Method Summary |
static void |
read(byte[] data,
Readable readable)
|
static byte[] |
readAll(java.io.InputStream is)
|
static void |
readAll(java.io.InputStream in,
byte[] data)
|
static void |
readAll(java.io.InputStream in,
byte[] data,
int offset,
int length)
|
static java.lang.Object |
readObject(byte[] data)
|
static void |
write(java.io.InputStream in,
java.io.OutputStream out,
int length)
|
static byte[] |
write(Writable writable)
|
static byte[] |
writeObject(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUtil
public StreamUtil()
readAll
public static final void readAll(java.io.InputStream in,
byte[] data,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
readAll
public static final byte[] readAll(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
writeObject
public static final byte[] writeObject(java.lang.Object object)
throws java.io.IOException
- Throws:
java.io.IOException
readObject
public static final java.lang.Object readObject(byte[] data)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
write
public static byte[] write(Writable writable)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static void read(byte[] data,
Readable readable)
throws java.io.IOException
- Throws:
java.io.IOException
readAll
public static void readAll(java.io.InputStream in,
byte[] data)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(java.io.InputStream in,
java.io.OutputStream out,
int length)
throws java.io.IOException
- Throws:
java.io.IOException