ch.interlis.iox
Interface IoxWriter


public interface IoxWriter

Interface to write an INTERLIS transfer file in 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);
 

Version:
$Revision: 1.0 $ $Date: 28.06.2006 $
Author:
ce

Method Summary
 void close()
          Frees any resources associated with this Writer.
 void flush()
          Writes any cached events to the underlying output mechanism.
 void write(IoxEvent event)
           
 

Method Detail

write

public void write(IoxEvent event)
           throws IoxException
Throws:
IoxException

close

public void close()
           throws IoxException
Frees any resources associated with this Writer. This must not close the underlying output stream.

Throws:
IoxException

flush

public void flush()
           throws IoxException
Writes any cached events to the underlying output mechanism.

Throws:
IoxException