|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.interlis.iom_j.iligml.IligmlWriterBase
public class IligmlWriterBase
This class implements an INTERLIS 2 writer using a lightweight model representation.
Constructor Summary | |
---|---|
IligmlWriterBase(java.io.File outfile,
ViewableProperties mapping1,
java.util.HashMap nameMapping,
java.lang.String version)
Creates a new instance of a writer. |
|
IligmlWriterBase(java.io.OutputStream buffer,
ViewableProperties mapping1,
java.util.HashMap nameMapping,
java.lang.String version)
Creates a new instance of a writer. |
|
IligmlWriterBase(java.io.OutputStreamWriter buffer,
ViewableProperties mapping1,
java.util.HashMap nameMapping,
java.lang.String version)
Creates a new instance of a writer. |
Method Summary | |
---|---|
void |
close()
Frees any resources associated with this Writer. |
IomObject |
createIomObject(java.lang.String type,
java.lang.String oid)
creates a IomObject with the given type and oid. |
void |
flush()
Writes any cached events to the underlying output mechanism. |
IoxFactoryCollection |
getFactory()
gets the current factory collection. |
XtfModel[] |
getModels()
Gets the model descriptions. |
void |
setFactory(IoxFactoryCollection factory)
sets the factory collection to be used. |
void |
setModels(XtfModel[] models)
Sets the model descriptions. |
void |
write(IoxEvent event)
writes the next event to this writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IligmlWriterBase(java.io.OutputStreamWriter buffer, ViewableProperties mapping1, java.util.HashMap nameMapping, java.lang.String version) throws IoxException
buffer
- Output writer to write tomapping1
- model of data to writeversion
- version of transfer format (2.2 or 2.3)
IoxException
public IligmlWriterBase(java.io.File outfile, ViewableProperties mapping1, java.util.HashMap nameMapping, java.lang.String version) throws IoxException
outfile
- File to write tomapping1
- model of data to writeversion
- version of transfer format (2.2 or 2.3)
IoxException
public IligmlWriterBase(java.io.OutputStream buffer, ViewableProperties mapping1, java.util.HashMap nameMapping, java.lang.String version) throws IoxException
buffer
- Output stream to write tomapping1
- model of data to writeversion
- version of transfer format (2.2 or 2.3)
IoxException
Method Detail |
---|
public void write(IoxEvent event) throws IoxException
IoxWriter
StartTransferEvent {StartBasketEvent {ObjectEvent} EndBasketEvent} EndTransferEvent
write
in interface IoxWriter
IoxException
public void close() throws IoxException
IoxWriter
close
in interface IoxWriter
IoxException
public void flush() throws IoxException
IoxWriter
flush
in interface IoxWriter
IoxException
public IomObject createIomObject(java.lang.String type, java.lang.String oid) throws IoxException
IoxWriter
createIomObject
in interface IoxWriter
type
- of object to createoid
- may be null
IoxException
public IoxFactoryCollection getFactory() throws IoxException
IoxWriter
getFactory
in interface IoxWriter
IoxException
public void setFactory(IoxFactoryCollection factory) throws IoxException
IoxWriter
setFactory
in interface IoxWriter
IoxException
public XtfModel[] getModels()
public void setModels(XtfModel[] models)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |