|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.export.Streamer<T>
public abstract class Streamer<T>
Writes objects to and reads objects from a binary stream.
| Constructor Summary | |
|---|---|
Streamer()
|
|
| Method Summary | |
|---|---|
static Streamer |
getStreamer(Class<?> clazz)
Returns the streamer, if any, for the specified class. |
abstract T |
read(DataInputStream in)
Reads an object from the stream. |
abstract void |
write(T value,
DataOutputStream out)
Writes an object to the stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Streamer()
| Method Detail |
|---|
public static Streamer getStreamer(Class<?> clazz)
public abstract void write(T value,
DataOutputStream out)
throws IOException
IOException
public abstract T read(DataInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||