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