public interface Scannable
Modifier and Type | Method and Description |
---|---|
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
write(java.io.PrintWriter writer,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
write
.rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objectsjava.io.IOException
- if an I/O or formatting error occuredvoid write(java.io.PrintWriter writer, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
scan
and complete
enough to allow full reconstruction of the element.writer
- stream for writing the elementfmt
- numeric formating informationref
- optional reference object which can be used for producing references to
other objectsjava.io.IOException
- if an I/O error occuredboolean isWritable()
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.true
if this component should be written to
secondary storage.