|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.xml.common.BaseXmlWriter
public abstract class BaseXmlWriter
An OSM data sink for storing all data to an xml file.
Constructor Summary | |
---|---|
BaseXmlWriter(java.io.File file,
CompressionMethod compressionMethod)
Creates a new instance. |
Method Summary | |
---|---|
protected abstract void |
beginElementWriter()
Calls the begin method of the element writer used for this implementation. |
void |
complete()
Flushes all changes to file. |
protected abstract void |
endElementWriter()
Calls the end method of the element writer used for this implementation. |
protected void |
initialize()
Initialises the output file for writing. |
void |
release()
Cleans up any open file handles. |
protected abstract void |
setWriterOnElementWriter(java.io.BufferedWriter resultWriter)
Sets the writer on the element writer used for this implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseXmlWriter(java.io.File file, CompressionMethod compressionMethod)
file
- The file to write.compressionMethod
- Specifies the compression method to employ.Method Detail |
---|
protected abstract void setWriterOnElementWriter(java.io.BufferedWriter resultWriter)
resultWriter
- The writer receiving xml data.protected abstract void beginElementWriter()
protected abstract void endElementWriter()
protected void initialize()
public void complete()
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |