|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends the interface for a LiveWritable
to provide an interface
for objects which can write themselves in some format or another to a stream
and know the length of that data beforehand.
Method Summary | |
long |
getWritableLength()
Returns the length of the data that was or will be written in a call to write . |
void |
write(java.io.OutputStream out)
Writes a representation of this object to the given stream. |
Method Detail |
public long getWritableLength()
write
. The value returned by this method must not
change after its first invocation.
write
public void write(java.io.OutputStream out) throws java.io.IOException
getWritableLength
.
write
in interface LiveWritable
out
- the stream to which to write
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |