ch.interlis.iom_j.xtf.impl
Class XtfWriterAlt

java.lang.Object
  extended by ch.interlis.iom_j.xtf.impl.XtfWriterAlt

public class XtfWriterAlt
extends java.lang.Object

Writer of an INTERLIS 2 transfer file.

Author:
ceis

Field Summary
static java.lang.String ili22Ns
          XML namespace of INTERLIS 2.2 transfer files.
static java.lang.String ili23Ns
          XML namespace of INTERLIS 2.3 transfer files.
 
Constructor Summary
XtfWriterAlt(java.io.OutputStreamWriter buffer, ViewableProperties mapping1, java.lang.String version)
          Creates a new writer.
 
Method Summary
 void close()
           
 void flush()
           
 javax.xml.stream.XMLStreamWriter getXout()
           
 void newline()
           
 void writeEndBasket()
           
 void writeEndTransfer()
           
 void writeObject(IomObject obj)
           
 void writeStartBasket(java.lang.String type, java.lang.String bid)
           
 void writeStartBasket(java.lang.String type, java.lang.String bid, int consistency, int kind, java.lang.String startstate, java.lang.String endstate, java.lang.String[] topicv)
           
 void writeStartTransfer(java.lang.String sender, java.lang.String comment, XtfModel[] models)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ili22Ns

public static final java.lang.String ili22Ns
XML namespace of INTERLIS 2.2 transfer files.

See Also:
Constant Field Values

ili23Ns

public static final java.lang.String ili23Ns
XML namespace of INTERLIS 2.3 transfer files.

See Also:
Constant Field Values
Constructor Detail

XtfWriterAlt

public XtfWriterAlt(java.io.OutputStreamWriter buffer,
                    ViewableProperties mapping1,
                    java.lang.String version)
             throws IoxException
Creates a new writer.

Parameters:
buffer - Writer to write to
mapping1 - model of data to write
version - transfer format version (2.2 or 2.3)
Throws:
IoxException
Method Detail

getXout

public javax.xml.stream.XMLStreamWriter getXout()

close

public void close()
           throws IoxException
Throws:
IoxException

flush

public void flush()
           throws IoxException
Throws:
IoxException

newline

public void newline()
             throws IoxException
Throws:
IoxException

writeStartTransfer

public void writeStartTransfer(java.lang.String sender,
                               java.lang.String comment,
                               XtfModel[] models)
                        throws IoxException
Throws:
IoxException

writeEndTransfer

public void writeEndTransfer()
                      throws IoxException
Throws:
IoxException

writeStartBasket

public void writeStartBasket(java.lang.String type,
                             java.lang.String bid)
                      throws IoxException
Throws:
IoxException

writeStartBasket

public void writeStartBasket(java.lang.String type,
                             java.lang.String bid,
                             int consistency,
                             int kind,
                             java.lang.String startstate,
                             java.lang.String endstate,
                             java.lang.String[] topicv)
                      throws IoxException
Throws:
IoxException

writeEndBasket

public void writeEndBasket()
                    throws IoxException
Throws:
IoxException

writeObject

public void writeObject(IomObject obj)
                 throws IoxException
Throws:
IoxException