Package org.vast.swe
Class XmlDataWriterDOM
java.lang.Object
org.vast.swe.DataTreeVisitor
org.vast.swe.AbstractDataWriter
org.vast.swe.XmlDataWriterDOM
- All Implemented Interfaces:
 DataStreamWriter
Writes CDM XML data stream using the given data components structure directly inside a DOM.
- Since:
 - Feb 29, 2008
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.swe.DataTreeVisitor
DataTreeVisitor.Record - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Elementprotected DOMHelperprotected Stringprotected OutputStreamprotected Stringprotected intFields inherited from class org.vast.swe.AbstractDataWriter
CHOICE_ERROR, dataTypeUtils, NO_HANDLER_ERROR, stopWriting, STREAM_ERRORFields inherited from class org.vast.swe.DataTreeVisitor
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()protected StringgetElementName(DataComponent component) protected voidprotected voidprocessAtom(ScalarComponent scalarInfo) Processes a scalar componentprotected booleanprocessBlock(DataComponent blockInfo) Processes an aggregate componentprotected voidvoidsetOutput(OutputStream outputStream) voidwrite(OutputStream outputStream) voidvoidMethods inherited from class org.vast.swe.AbstractDataWriter
endStream, setDataComponents, startStream, stopMethods inherited from class org.vast.swe.DataTreeVisitor
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processNextElement, reset, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vast.cdm.common.DataStreamWriter
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, reset, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler 
- 
Field Details
- 
dom
 - 
currentParentElt
 - 
namespace
 - 
prefix
 - 
prevStackSize
protected int prevStackSize - 
outputStream
 
 - 
 - 
Constructor Details
- 
XmlDataWriterDOM
public XmlDataWriterDOM() 
 - 
 - 
Method Details
- 
setOutput
- Specified by:
 setOutputin interfaceDataStreamWriter- Specified by:
 setOutputin classAbstractDataWriter- Throws:
 IOException
 - 
write
- Specified by:
 writein interfaceDataStreamWriter- Overrides:
 writein classAbstractDataWriter- Throws:
 IOException
 - 
write
- Specified by:
 writein interfaceDataStreamWriter- Overrides:
 writein classAbstractDataWriter- Throws:
 IOException
 - 
write
- Throws:
 IOException
 - 
flush
- Specified by:
 flushin interfaceDataStreamWriter- Specified by:
 flushin classAbstractDataWriter- Throws:
 IOException
 - 
close
- Specified by:
 closein interfaceDataStreamWriter- Specified by:
 closein classAbstractDataWriter- Throws:
 IOException
 - 
init
- Throws:
 IOException
 - 
getElementName
 - 
setCurrentParent
protected void setCurrentParent() - 
processBlock
Description copied from class:DataTreeVisitorProcesses an aggregate component- Specified by:
 processBlockin classAbstractDataWriter- Returns:
 - true if children should be processed, false otherwise
 - Throws:
 IOException
 - 
processAtom
Description copied from class:DataTreeVisitorProcesses a scalar component- Specified by:
 processAtomin classAbstractDataWriter- Throws:
 IOException
 
 -