public class DefaultPortableView extends Object implements PortableView
Default PortableView
implementation
Delegates open/close operation on the MapResoucesManager
Constructor and Description |
---|
DefaultPortableView(File file,
PortableViewInformation info,
MapResoucesManager resourceManager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
PortableViewInformation |
getInformation() |
MapContext |
getMapContext() |
File |
getSourceFile()
Returns source map file
|
String |
getSourceFilePath() |
boolean |
isOpen() |
void |
open() |
public DefaultPortableView(File file, PortableViewInformation info, MapResoucesManager resourceManager)
public PortableViewInformation getInformation()
getInformation
in interface PortableView
public File getSourceFile()
public void open() throws IOException, InvalidPortableViewFormatException, CantLoadContextException
open
in interface PortableView
IOException
InvalidPortableViewFormatException
CantLoadContextException
public boolean isOpen()
isOpen
in interface PortableView
public void close() throws IOException
close
in interface PortableView
IOException
- if any problem is found cleaning temporal folderpublic MapContext getMapContext()
getMapContext
in interface PortableView
public String getSourceFilePath()
getSourceFilePath
in interface PortableView
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable