flattree.tree
Class EscapedDelimitedLeaf
java.lang.Object
   flattree.tree.AbstractLeaf
flattree.tree.AbstractLeaf
       flattree.tree.ValueLeaf
flattree.tree.ValueLeaf
           flattree.tree.DelimitedLeaf
flattree.tree.DelimitedLeaf
               flattree.tree.EscapedDelimitedLeaf
flattree.tree.EscapedDelimitedLeaf
- All Implemented Interfaces: 
- Leaf
- public class EscapedDelimitedLeaf 
- extends DelimitedLeaf
A DelimitedLeaf which escapes delimiters contained in its value.
- See Also:
- setEscape(char)
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DEFAULT_ESCAPE
public static final char DEFAULT_ESCAPE
- See Also:
- Constant Field Values
EscapedDelimitedLeaf
public EscapedDelimitedLeaf()
EscapedDelimitedLeaf
public EscapedDelimitedLeaf(String name,
                            char delimiter)
EscapedDelimitedLeaf
public EscapedDelimitedLeaf(String name,
                            char delimiter,
                            char escape)
getEscape
public char getEscape()
- 
 
setEscape
public void setEscape(char escape)
- Set the characters to escape delimiters with.
 
- 
- Parameters:
- escape- escape character
- Throws:
- IllegalArgumentException- if escape is- 0
 
writeValue
public void writeValue(WriteLine line,
                       String value)
- 
- Overrides:
- writeValuein class- DelimitedLeaf
 
- 
 
readValue
public String readValue(ReadLine line)
- Description copied from class: ValueLeaf
- Read this leaf's value from the given line.
 
- 
- Overrides:
- readValuein class- DelimitedLeaf
 
- 
- Parameters:
- line- line to read from
- Returns:
- value or nullif this leaf cannot be read from the
         given line
- See Also:
- AbstractLeaf.setThrowOnRead(boolean)
 
Copyright © 2011. All Rights Reserved.