public class DefaultPortableView extends java.lang.Object implements PortableView
Default PortableView implementation
Delegates open/close operation on the MapResoucesManager
| Constructor and Description |
|---|
DefaultPortableView(java.io.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() |
java.io.File |
getSourceFile()
Returns source map file
|
java.lang.String |
getSourceFilePath() |
boolean |
isOpen() |
void |
open() |
public DefaultPortableView(java.io.File file,
PortableViewInformation info,
MapResoucesManager resourceManager)
public PortableViewInformation getInformation()
getInformation in interface PortableViewpublic java.io.File getSourceFile()
public void open()
throws java.io.IOException,
InvalidPortableViewFormatException,
CantLoadContextException
open in interface PortableViewjava.io.IOExceptionInvalidPortableViewFormatExceptionCantLoadContextExceptionpublic boolean isOpen()
isOpen in interface PortableViewpublic void close()
throws java.io.IOException
close in interface PortableViewjava.io.IOException - if any problem is found cleaning temporal folderpublic MapContext getMapContext()
getMapContext in interface PortableViewpublic java.lang.String getSourceFilePath()
getSourceFilePath in interface PortableViewpublic void dispose()
DisposableNOTE:After calling this method, the object may not be usable anymore.
dispose in interface Disposable