|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoxReader
Interface to read a transfer file in object streaming mode. Usage:
IoxReader reader=...;
IoxEvent event;
do{
event=reader.read();
if(event instanceof StartTransferEvent){
...
}else if(event instanceof StartBasketEvent){
...
}else if(event instanceof ObjectEvent){
...
}else if(event instanceof EndBasketEvent){
...
}else if(event instanceof EndTransferEvent){
...
}
}while(!(event instanceof EndTransferEvent));
IoxReaderAlt
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. |
IoxEvent |
read()
reads the next event from this reader. |
void |
setFactory(IoxFactoryCollection factory)
sets the factory collection to be used. |
Method Detail |
---|
IoxEvent read() throws IoxException
StartTransferEvent {StartBasketEvent {ObjectEvent} EndBasketEvent} EndTransferEvent
IoxException
void close() throws IoxException
IoxException
void setFactory(IoxFactoryCollection factory) throws IoxException
IoxException
IoxFactoryCollection getFactory() throws IoxException
IoxException
IomObject createIomObject(java.lang.String type, java.lang.String oid) throws IoxException
type
- of object to createoid
- may be null
IoxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |