org.openstreetmap.josm.io.session
Class SessionWriter.ExportSupport

java.lang.Object
  extended by org.openstreetmap.josm.io.session.SessionWriter.ExportSupport
Enclosing class:
SessionWriter

public class SessionWriter.ExportSupport
extends java.lang.Object


Field Summary
private  org.w3c.dom.Document doc
           
private  int layerIndex
           
 
Constructor Summary
SessionWriter.ExportSupport(org.w3c.dom.Document doc, int layerIndex)
           
 
Method Summary
 org.w3c.dom.Element createElement(java.lang.String name)
           
 org.w3c.dom.Text createTextNode(java.lang.String text)
           
 int getLayerIndex()
           
 java.io.OutputStream getOutputStreamZip(java.lang.String zipPath)
          Create a file in the zip archive.
 boolean isZip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.w3c.dom.Document doc

layerIndex

private int layerIndex
Constructor Detail

SessionWriter.ExportSupport

public SessionWriter.ExportSupport(org.w3c.dom.Document doc,
                                   int layerIndex)
Method Detail

createElement

public org.w3c.dom.Element createElement(java.lang.String name)

createTextNode

public org.w3c.dom.Text createTextNode(java.lang.String text)

getLayerIndex

public int getLayerIndex()

getOutputStreamZip

public java.io.OutputStream getOutputStreamZip(java.lang.String zipPath)
                                        throws java.io.IOException
Create a file in the zip archive.

Returns:
never close the output stream, but make sure to flush buffers
Throws:
java.io.IOException

isZip

public boolean isZip()


JOSM