|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.interlis.iom_j.itf.ItfWriter
public class ItfWriter
This class implements an INTERLIS 1 writer.
Constructor Summary | |
---|---|
ItfWriter(java.io.File outFile,
ch.interlis.ili2c.metamodel.TransferDescription td)
Creates a new writer. |
|
ItfWriter(java.io.OutputStream out,
ch.interlis.ili2c.metamodel.TransferDescription td)
Creates a new 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. |
void |
setFactory(IoxFactoryCollection factory)
sets the factory collection to be used. |
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 ItfWriter(java.io.OutputStream out, ch.interlis.ili2c.metamodel.TransferDescription td) throws IoxException
out
- Output stream to write totd
- model of data to write as read by the compiler
IoxException
public ItfWriter(java.io.File outFile, ch.interlis.ili2c.metamodel.TransferDescription td) throws IoxException
outFile
- file to write totd
- model of data to write as read by the compiler
IoxException
Method Detail |
---|
public void close() throws IoxException
IoxWriter
close
in interface IoxWriter
IoxException
public void flush() throws IoxException
IoxWriter
flush
in interface IoxWriter
IoxException
public void write(IoxEvent event) throws IoxException
IoxWriter
StartTransferEvent {StartBasketEvent {ObjectEvent} EndBasketEvent} EndTransferEvent
write
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |