|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
MapOutput
init(String)
.
Configuration change is accepted until the first writing method is called.
init
in interface MapOutput
init
in class AbstractMapOutput
public void flush()
MapOutput
flush
in interface MapOutput
flush
in class AbstractMapOutput
public void flushAll()
MapOutput
flushAll
in interface MapOutput
flushAll
in class AbstractMapOutput
public void close()
MapOutput
close
in interface MapOutput
close
in class AbstractMapOutput
protected void startElement(java.lang.String key) throws java.io.IOException
startElement
in class AbstractMapOutput
java.io.IOException
protected void endElement(java.lang.String key, boolean last) throws java.io.IOException
endElement
in class AbstractMapOutput
java.io.IOException
protected void elementValue(java.lang.Object key, java.lang.Object value, boolean last) throws java.io.IOException
elementValue
in class AbstractMapOutput
java.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 AbstractMapOutput
java.io.IOException
protected void startDocument() throws java.io.IOException
startDocument
in class AbstractMapOutput
java.io.IOException
protected void endDocument() throws java.io.IOException
endDocument
in class AbstractMapOutput
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |