flattree.tree
Class SkipLeaf

java.lang.Object
  extended by flattree.tree.AbstractLeaf
      extended by flattree.tree.SkipLeaf
All Implemented Interfaces:
Leaf

public class SkipLeaf
extends AbstractLeaf

A Leaf which skips a configured length of characters - supports Leaf.read(ReadLine, State) only.

See Also:
setLength(int)

Field Summary
 
Fields inherited from interface flattree.tree.Leaf
REQUIRED
 
Constructor Summary
SkipLeaf()
           
SkipLeaf(int length)
           
 
Method Summary
 int getLength()
           
protected  boolean readImpl(ReadLine line, State state)
          Do the actual reading.
 void setLength(int length)
           
protected  void writeImpl(WriteLine line, State state)
          Do the actual writing.
 
Methods inherited from class flattree.tree.AbstractLeaf
getThrowOnRead, read, setThrowOnRead, throwOnRead, throwOnRead, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkipLeaf

public SkipLeaf()

SkipLeaf

public SkipLeaf(int length)
Method Detail

setLength

public void setLength(int length)

getLength

public int getLength()

writeImpl

protected void writeImpl(WriteLine line,
                         State state)
Description copied from class: AbstractLeaf
Do the actual writing.

Specified by:
writeImpl in class AbstractLeaf
Throws:
TreeException - always

readImpl

protected boolean readImpl(ReadLine line,
                           State state)
Description copied from class: AbstractLeaf
Do the actual reading.

Specified by:
readImpl in class AbstractLeaf


Copyright © 2011. All Rights Reserved.