|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader juglr.BoxReader
public abstract class BoxReader
A Reader class that outputs a box message as a character stream. You can save
system resources by invoking reset(Box)
instead of
creating new BoxReaders.
JSonBoxReader
,
BoxParser
Field Summary | |
---|---|
protected Box |
msg
The message being serialized. |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
BoxReader(Box msg)
|
Method Summary | |
---|---|
abstract java.lang.String |
asString()
Read the entire message an return it as a string |
abstract void |
reset(Box msg)
Prepare the reader for serializing another message. |
Methods inherited from class java.io.Reader |
---|
close, mark, markSupported, read, read, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Box msg
Constructor Detail |
---|
public BoxReader(Box msg)
Method Detail |
---|
public abstract void reset(Box msg)
msg
- the message to serializepublic abstract java.lang.String asString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |