|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoxWriter
Interface to write a transfer file in object streaming mode. Usage:
IoxWriter writer=...; writer.write(StartTransferEvent); ... while(more baskets){ writer.write(StartBasketEvent); ... while(more objects){ ... writer.write(ObjectEvent); ... } ... writer.write(EndBasketEvent); } writer.write(EndTransferEvent);
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. |
Method Detail |
---|
void write(IoxEvent event) throws IoxException
StartTransferEvent {StartBasketEvent {ObjectEvent} EndBasketEvent} EndTransferEvent
event
-
IoxException
void close() throws IoxException
IoxException
void flush() 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 |