flattree.tree
Interface Leaf
- All Known Implementing Classes:
- AbstractLeaf, ConstantLeaf, DelimitedLeaf, EscapedDelimitedLeaf, FixedLengthLeaf, JumpLeaf, PaddedFixedLengthLeaf, QuotedDelimitedLeaf, SkipLeaf, SyntheticLeaf, ValueLeaf
public interface Leaf
A Node
's leaf.
Not all leaves have State
, see ValueLeaf
for those
subclasses.
REQUIRED
static final boolean REQUIRED
- See Also:
- Constant Field Values
read
boolean read(ReadLine line,
State state)
- Read this leaf from the given line.
- Parameters:
line
- line to read fromstate
- state to get this leaf's value from
- Returns:
true
if leaf could be read or false
otherwise
- Throws:
TreeException
- if this leaf failed to read
write
void write(WriteLine line,
State state)
- Write this leaf to the given line.
- Parameters:
line
- line to write tostate
- state to put this leaf's value to
Copyright © 2011. All Rights Reserved.