|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for writing HierarchicalMap to output drain.
Method Summary | |
void |
close()
Closes this output stream and releases any system resources associated with the stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
flushAll()
Flushes this output stream and also ends any HierarchicalMap written so far. |
void |
init(HierarchicalMap paramMap)
Initializes this class using the configuration passed. |
void |
init(java.lang.String config)
Initializes this class using the configuration passed. |
MapOutput |
writeMap(HierarchicalMap map)
Writes out a HierarchicalMap to output drain. |
MapOutput |
writeMap(java.lang.Object start,
HierarchicalMap map)
Writes out a HierarchicalMap to output drain relative to the start. |
MapOutput |
writeMap(java.lang.String path)
Writes a HierarchicalMap where each of the elements that composes the path are represented as nested nodes. |
Method Detail |
public void init(HierarchicalMap paramMap)
init(String)
.
Configuration change is accepted until the first writing method is called.
paramMap
- HierarchicalMap containing the configuration.public void init(java.lang.String config)
Configuration change is accepted until the first writing method is called. Check the specific MapOutput init method for valid configurations.
config
- configuration used by this class.public MapOutput writeMap(HierarchicalMap map) throws MapIOException
map
- HierarchicalMap to be written to the output.
MapIOException
- if an I/O error occurs.public MapOutput writeMap(java.lang.Object start, HierarchicalMap map) throws MapIOException
map
- HierarchicalMap to be written to the output.start
- node from where the writing starts.
MapIOException
- if an I/O error occurs.public MapOutput writeMap(java.lang.String path) throws MapIOException
writeMap("a/b/c")
is similar to the following code:
map.add("a/b/c")
writeMap(map)
path
- each element of the key is written as node.
MapIOException
- if an I/O error occurs.public void flush()
MapIOException
- if an I/O error occurs.public void flushAll()
MapIOException
- if an I/O error occurs.public void close()
MapIOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |