public class SessionWriter.ExportSupport extends java.lang.Object
SessionLayerExporter
when doing the export.Modifier and Type | Field and Description |
---|---|
private org.w3c.dom.Document |
doc |
private int |
layerIndex |
Constructor and Description |
---|
SessionWriter.ExportSupport(org.w3c.dom.Document doc,
int layerIndex) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
createElement(java.lang.String name) |
org.w3c.dom.Text |
createTextNode(java.lang.String text) |
int |
getLayerIndex()
Get the index of the layer that is currently exported.
|
java.io.OutputStream |
getOutputStreamZip(java.lang.String zipPath)
Create a file inside the zip archive.
|
boolean |
isZip()
Check, if the session is exported as a zip archive.
|
private org.w3c.dom.Document doc
private int layerIndex
public SessionWriter.ExportSupport(org.w3c.dom.Document doc, int layerIndex)
public org.w3c.dom.Element createElement(java.lang.String name)
public org.w3c.dom.Text createTextNode(java.lang.String text)
public int getLayerIndex()
public java.io.OutputStream getOutputStreamZip(java.lang.String zipPath) throws java.io.IOException
zipPath
- the path inside the zip archive, e.g. "layers/03/data.xml"java.io.IOException
public boolean isZip()
SessionLayerExporter
returns true for the
SessionLayerExporter.requiresZip()
method. Otherwise, the
user can decide in the file chooser dialog.