|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.interlis.iom_j.itf.ItfReader
public class ItfReader
This class implements an INTERLIS 1 reader.
Constructor Summary | |
---|---|
ItfReader(java.io.File inFile)
Creates a new reader. |
|
ItfReader(java.io.InputStream in)
Creates a new reader. |
Method Summary | |
---|---|
void |
close()
Frees any resources associated with this Reader. |
IomObject |
createIomObject(java.lang.String type,
java.lang.String oid)
creates a IomObject with the given type and oid. |
IoxFactoryCollection |
getFactory()
gets the current factory collection. |
boolean |
isReadEnumValAsItfCode()
|
boolean |
isRenumberTids()
|
IoxEvent |
read()
reads the next event from this reader. |
void |
setFactory(IoxFactoryCollection factory)
sets the factory collection to be used. |
void |
setModel(ch.interlis.ili2c.metamodel.TransferDescription td)
Sets the model of the the data to be read. |
void |
setReadEnumValAsItfCode(boolean val)
|
void |
setRenumberTids(boolean renumberTids)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItfReader(java.io.InputStream in) throws IoxException
in
- Input stream to read from.
IoxException
public ItfReader(java.io.File inFile) throws IoxException
inFile
- File to read from.
IoxException
Method Detail |
---|
public void close() throws IoxException
IoxReader
close
in interface IoxReader
IoxException
public IoxEvent read() throws IoxException
IoxReader
StartTransferEvent {StartBasketEvent {ObjectEvent} EndBasketEvent} EndTransferEvent
read
in interface IoxReader
IoxException
public void setModel(ch.interlis.ili2c.metamodel.TransferDescription td)
td
- model as read by the compilerpublic IomObject createIomObject(java.lang.String type, java.lang.String oid) throws IoxException
IoxReader
createIomObject
in interface IoxReader
type
- of object to createoid
- may be null
IoxException
public IoxFactoryCollection getFactory() throws IoxException
IoxReader
getFactory
in interface IoxReader
IoxException
public void setFactory(IoxFactoryCollection factory) throws IoxException
IoxReader
setFactory
in interface IoxReader
IoxException
public void setReadEnumValAsItfCode(boolean val)
public boolean isReadEnumValAsItfCode()
public boolean isRenumberTids()
public void setRenumberTids(boolean renumberTids)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |