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 |
---|
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 final org.w3c.dom.Document doc
private final int layerIndex
public 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
- if any I/O error occurspublic boolean isZip()
SessionLayerExporter
returns true for the
SessionLayerExporter.requiresZip()
method. Otherwise, the
user can decide in the file chooser dialog.