|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object flattree.tree.AbstractNode flattree.tree.DelimitedNode
public class DelimitedNode
A Node
which writes and reads characters bounded by a delimiter.
setDelimiter(String)
Field Summary | |
---|---|
static String |
DEFAULT_DELIMITER
The default delimiter (if none is configured) is set to the systems default line separator. |
Constructor Summary | |
---|---|
DelimitedNode()
Default constructor. |
|
DelimitedNode(String name)
|
|
DelimitedNode(String name,
String delimiter)
|
Method Summary | |
---|---|
protected ReadLine |
beforeRead(ReadLine line)
Limits the given line to with the configured delimiter. |
protected WriteLine |
beforeWrite(WriteLine line)
Limits the given line to with the configured delimiter. |
String |
getDelimiter()
Get the delimiter. |
void |
setDelimiter(String delimiter)
Set the delimiter. |
Methods inherited from class flattree.tree.AbstractNode |
---|
add, add, getLeaves, getName, getNodes, read, setLeaves, setName, setNodes, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DELIMITER
getDelimiter()
Constructor Detail |
---|
public DelimitedNode()
public DelimitedNode(String name)
public DelimitedNode(String name, String delimiter)
Method Detail |
---|
public void setDelimiter(String delimiter)
delimiter
- the delimiter
IllegalArgumentException
- if delimiter is emptypublic String getDelimiter()
protected ReadLine beforeRead(ReadLine line)
beforeRead
in class AbstractNode
line
- line to wrap before read
getDelimiter()
protected WriteLine beforeWrite(WriteLine line)
beforeWrite
in class AbstractNode
line
- line to wrap before write
getDelimiter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |