|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dhmp.io.AbstractMapOutput
org.dhmp.io.XMLMapOutputStream
This class writes XML output generated from HierarchicalMap.
| Field Summary |
| Fields inherited from class org.dhmp.io.AbstractMapOutput |
AUTOCOMMIT_OFF, AUTOCOMMIT_ON |
| Constructor Summary | |
XMLMapOutputStream(java.io.OutputStream out)
Creates a new instance of XMLMapOutputStream. |
|
XMLMapOutputStream(java.io.OutputStream out,
java.nio.charset.Charset cs)
Creates a new instance of XMLMapOutputStream. |
|
XMLMapOutputStream(java.io.OutputStream out,
java.lang.String charsetName)
Creates a new instance of XMLMapOutputStream. |
|
| Method Summary | |
void |
close()
Closes this output stream and releases any system resources associated with the stream. |
protected void |
elementReference(java.lang.String key,
java.lang.Object value,
java.lang.String reference,
int index,
boolean last)
|
protected void |
elementValue(java.lang.Object key,
java.lang.Object value,
boolean last)
|
protected void |
endDocument()
|
protected void |
endElement(java.lang.String key,
boolean last)
|
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. |
protected void |
init()
|
void |
init(HierarchicalMap paramMap)
Initializes this class using the configuration passed. |
protected void |
startDocument()
|
protected void |
startElement(java.lang.String key)
|
| Methods inherited from class org.dhmp.io.AbstractMapOutput |
closeElements, closeExclude, flush, init, replace, writeMap, writeMap, writeMap, writeMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLMapOutputStream(java.io.OutputStream out)
throws MapIOException
out - OutputStream to where the maps are written.
MapIOException
public XMLMapOutputStream(java.io.OutputStream out,
java.lang.String charsetName)
throws MapIOException
out - OutputStream to where the maps are written.charsetName - name of charset to be used.
MapIOException
public XMLMapOutputStream(java.io.OutputStream out,
java.nio.charset.Charset cs)
throws MapIOException
out - OutputStream to where the maps are written.cs - charset to be used.
MapIOException| Method Detail |
protected void init()
public void init(HierarchicalMap paramMap)
MapOutputinit(String).
Configuration change is accepted until the first writing method is called.
init in interface MapOutputinit in class AbstractMapOutputpublic void flush()
MapOutput
flush in interface MapOutputflush in class AbstractMapOutputpublic void flushAll()
MapOutput
flushAll in interface MapOutputflushAll in class AbstractMapOutputpublic void close()
MapOutput
close in interface MapOutputclose in class AbstractMapOutput
protected void startElement(java.lang.String key)
throws java.io.IOException
startElement in class AbstractMapOutputjava.io.IOException
protected void endElement(java.lang.String key,
boolean last)
throws java.io.IOException
endElement in class AbstractMapOutputjava.io.IOException
protected void elementValue(java.lang.Object key,
java.lang.Object value,
boolean last)
throws java.io.IOException
elementValue in class AbstractMapOutputjava.io.IOException
protected void elementReference(java.lang.String key,
java.lang.Object value,
java.lang.String reference,
int index,
boolean last)
throws java.io.IOException
elementReference in class AbstractMapOutputjava.io.IOException
protected void startDocument()
throws java.io.IOException
startDocument in class AbstractMapOutputjava.io.IOException
protected void endDocument()
throws java.io.IOException
endDocument in class AbstractMapOutputjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||