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.


Field Summary
static boolean REQUIRED
           
 
Method Summary
 boolean read(ReadLine line, State state)
          Read this leaf from the given line.
 void write(WriteLine line, State state)
          Write this leaf to the given line.
 

Field Detail

REQUIRED

static final boolean REQUIRED
See Also:
Constant Field Values
Method Detail

read

boolean read(ReadLine line,
             State state)
Read this leaf from the given line.

Parameters:
line - line to read from
state - 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 to
state - state to put this leaf's value to


Copyright © 2011. All Rights Reserved.