public abstract class SWEWriter extends Object implements OutputStreamProvider
Abstract class for all CDM writers. This class provides methods to write an XML document containing CDM data structure, encoding and stream sections. The class has setters allowing one to specify a data component structure and an encoding. Concrete derived classes are actually responsible for writing the XML content for each of these sections using the corresponding writers. This class also has a helper method that constructs the DataWriter suited for the given encoding.
Modifier and Type | Field and Description |
---|---|
protected DataComponent |
dataComponents |
protected DataEncoding |
dataEncoding |
Constructor and Description |
---|
SWEWriter() |
Modifier and Type | Method and Description |
---|---|
DataComponent |
getDataComponents() |
DataEncoding |
getDataEncoding() |
abstract OutputStream |
getDataStream() |
DataStreamWriter |
getDataWriter() |
void |
setDataComponents(DataComponent dataComponents) |
void |
setDataEncoding(DataEncoding dataEncoding) |
abstract void |
write(OutputStream inputStream) |
protected DataEncoding dataEncoding
protected DataComponent dataComponents
public abstract void write(OutputStream inputStream) throws IOException
IOException
public abstract OutputStream getDataStream() throws IOException
getDataStream
in interface OutputStreamProvider
IOException
public DataStreamWriter getDataWriter() throws CDMException
CDMException
public DataEncoding getDataEncoding()
public DataComponent getDataComponents()
public void setDataComponents(DataComponent dataComponents)
public void setDataEncoding(DataEncoding dataEncoding)
Copyright © 2016 Sensia Software LLC. All rights reserved.