T
- Type of exported layerpublic abstract class GenericSessionExporter<T extends Layer> extends AbstractSessionExporter<T>
OsmDataSessionExporter
and GpxTracksSessionExporter
layer exporters.Modifier and Type | Class and Description |
---|---|
private class |
GenericSessionExporter.LayerSaveAction |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
extension |
private javax.swing.JRadioButton |
include |
private javax.swing.JRadioButton |
link |
private java.lang.String |
type |
private java.lang.String |
version |
export, layer
Modifier | Constructor and Description |
---|---|
protected |
GenericSessionExporter(T layer,
java.lang.String type,
java.lang.String version,
java.lang.String extension)
Constructs a new
GenericSessionExporter . |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addDataFile(java.io.OutputStream out) |
org.w3c.dom.Element |
export(SessionWriter.ExportSupport support)
Save meta data to the .jos file.
|
javax.swing.JPanel |
getExportPanel()
The GUI for exporting this layer.
|
boolean |
requiresZip()
Return true, if some data needs to be included in the zip archive.
|
getDependencies, shallExport
private final java.lang.String type
private final java.lang.String version
private final java.lang.String extension
private final javax.swing.JRadioButton link
private final javax.swing.JRadioButton include
protected GenericSessionExporter(T layer, java.lang.String type, java.lang.String version, java.lang.String extension)
GenericSessionExporter
.layer
- layer to exporttype
- layer session typeversion
- layer session versionextension
- data file extensionpublic javax.swing.JPanel getExportPanel()
SessionLayerExporter
public org.w3c.dom.Element export(SessionWriter.ExportSupport support) throws java.io.IOException
SessionLayerExporter
support
to save files in the zip archive as needed.support
- support class providing export utilitiesjava.io.IOException
- if any I/O error occurspublic boolean requiresZip()
SessionLayerExporter
requiresZip
in interface SessionLayerExporter
requiresZip
in class AbstractSessionExporter<T extends Layer>
true
if some data needs to be included in the zip archive, false
otherwise.protected abstract void addDataFile(java.io.OutputStream out) throws java.io.IOException
java.io.IOException