public class SessionReader.ImportSupport extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
inZipPath
Path of the file inside the zip archive.
|
private java.util.List<SessionReader.LayerDependency> |
layerDependencies |
private int |
layerIndex |
private java.lang.String |
layerName |
Constructor and Description |
---|
SessionReader.ImportSupport(java.lang.String layerName,
int layerIndex,
java.util.List<SessionReader.LayerDependency> layerDependencies) |
Modifier and Type | Method and Description |
---|---|
void |
addPostLayersTask(java.lang.Runnable task)
Add a task, e.g.
|
java.io.File |
getFile(java.lang.String uriStr)
Return a File for a URI from a .jos/.joz file.
|
java.io.InputStream |
getInputStream(java.lang.String uriStr)
Return an InputStream for a URI from a .jos/.joz file.
|
java.util.List<SessionReader.LayerDependency> |
getLayerDependencies()
Dependencies - maps the layer index to the importer of the given
layer.
|
int |
getLayerIndex()
Index of the layer that is currently imported.
|
java.lang.String |
getLayerName()
Name of the layer that is currently imported.
|
boolean |
isZip()
Determines if we are reading from a .joz file.
|
private java.lang.String layerName
private int layerIndex
private java.util.List<SessionReader.LayerDependency> layerDependencies
private java.lang.String inZipPath
public SessionReader.ImportSupport(java.lang.String layerName, int layerIndex, java.util.List<SessionReader.LayerDependency> layerDependencies)
public void addPostLayersTask(java.lang.Runnable task)
public java.io.InputStream getInputStream(java.lang.String uriStr) throws java.io.IOException
java.io.IOException
- Thrown when no Stream can be opened for the given URI, e.g. when the linked file has been deleted.public java.io.File getFile(java.lang.String uriStr) throws java.io.IOException
java.io.IOException
public boolean isZip()
true
if we are reading from a .joz file, false
otherwisepublic java.lang.String getLayerName()
public int getLayerIndex()
public java.util.List<SessionReader.LayerDependency> getLayerDependencies()