|
|||||||||
| 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.
| Nested Class Summary | |
|---|---|
protected static class |
Streamer.Dummy
Used to satisfy the type system. |
| Field Summary | |
|---|---|
protected static HashMap<Class<?>,Streamer> |
_streamers
Registered streamers. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap<Class<?>,Streamer> _streamers
| 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 | ||||||||