flattree.tree
Class QuotedDelimitedLeaf
java.lang.Object
flattree.tree.AbstractLeaf
flattree.tree.ValueLeaf
flattree.tree.DelimitedLeaf
flattree.tree.QuotedDelimitedLeaf
- All Implemented Interfaces:
- Leaf
public class QuotedDelimitedLeaf
- extends DelimitedLeaf
A DelimitedLeaf
which quotes its value. The quotes can be configured
to be optional or required.
- See Also:
setQuoteStart(char)
,
setQuoteEnd(char)
,
setQuoteRequired(boolean)
Constructor Summary |
QuotedDelimitedLeaf()
|
QuotedDelimitedLeaf(String name,
char delimiter,
boolean delimiterRequired,
char quote,
boolean quoteRequired)
|
QuotedDelimitedLeaf(String name,
char delimiter,
boolean delimiterRequired,
char quoteStart,
char quoteEnd,
boolean quoteRequired)
|
QuotedDelimitedLeaf(String name,
char delimiter,
char quote)
|
QuotedDelimitedLeaf(String name,
char delimiter,
char quote,
boolean quoteRequired)
|
QuotedDelimitedLeaf(String name,
char delimiter,
char quoteStart,
char quoteEnd,
boolean quoteRequired)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_QUOTE
public static final char DEFAULT_QUOTE
- See Also:
- Constant Field Values
QuotedDelimitedLeaf
public QuotedDelimitedLeaf()
QuotedDelimitedLeaf
public QuotedDelimitedLeaf(String name,
char delimiter,
char quote)
QuotedDelimitedLeaf
public QuotedDelimitedLeaf(String name,
char delimiter,
char quote,
boolean quoteRequired)
QuotedDelimitedLeaf
public QuotedDelimitedLeaf(String name,
char delimiter,
boolean delimiterRequired,
char quote,
boolean quoteRequired)
QuotedDelimitedLeaf
public QuotedDelimitedLeaf(String name,
char delimiter,
char quoteStart,
char quoteEnd,
boolean quoteRequired)
QuotedDelimitedLeaf
public QuotedDelimitedLeaf(String name,
char delimiter,
boolean delimiterRequired,
char quoteStart,
char quoteEnd,
boolean quoteRequired)
setQuoteStart
public void setQuoteStart(char quoteStart)
setQuoteEnd
public void setQuoteEnd(char quoteEnd)
setQuoteRequired
public void setQuoteRequired(boolean quoteRequired)
getQuoteStart
public char getQuoteStart()
getQuoteEnd
public char getQuoteEnd()
getQuoteRequired
public boolean getQuoteRequired()
writeValue
public void writeValue(WriteLine line,
String value)
- Overrides:
writeValue
in class DelimitedLeaf
readValue
public String readValue(ReadLine line)
- Description copied from class:
ValueLeaf
- Read this leaf's value from the given line.
- Overrides:
readValue
in class DelimitedLeaf
- Parameters:
line
- line to read from
- Returns:
- value or
null
if this leaf cannot be read from the
given line - See Also:
AbstractLeaf.setThrowOnRead(boolean)
Copyright © 2011. All Rights Reserved.