public class KmzLayerInfoSpi
extends AbstractDatasetDescriptorSpi
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUND_OVERLAY |
static DatasetDescriptorSpi |
INSTANCE |
static java.io.FileFilter |
KML_FILTER |
static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
static void |
checkAtTag(org.xmlpull.v1.XmlPullParser parser,
java.lang.String tagName)
Determines if the parser name matches the tag name provided
|
static boolean |
containsTag(java.io.File kmzFile,
java.lang.String tagName) |
protected java.util.Set<DatasetDescriptor> |
create(java.io.File file,
java.io.File workingDir,
InteractiveServiceProvider.Callback callback) |
static ZipVirtualFile |
findDocumentKML(java.io.File kmzFile)
Given a KMZ file, find the main document KML (doc.kml)
|
int |
parseVersion() |
protected boolean |
probe(java.io.File file,
InteractiveServiceProvider.Callback callback) |
public static final java.lang.String GROUND_OVERLAY
public static final java.lang.String TAG
public static final java.io.FileFilter KML_FILTER
public static final DatasetDescriptorSpi INSTANCE
protected java.util.Set<DatasetDescriptor> create(java.io.File file, java.io.File workingDir, InteractiveServiceProvider.Callback callback)
protected boolean probe(java.io.File file, InteractiveServiceProvider.Callback callback)
public static boolean containsTag(java.io.File kmzFile, java.lang.String tagName)
public int parseVersion()
public static void checkAtTag(org.xmlpull.v1.XmlPullParser parser, java.lang.String tagName) throws org.xmlpull.v1.XmlPullParserException
parser
- the parsertagName
- the tag name to match againstorg.xmlpull.v1.XmlPullParserException
- occurs if there is an exception with the parsingjava.lang.IllegalStateException
- if the tag encountered is not the correct tagpublic static ZipVirtualFile findDocumentKML(java.io.File kmzFile)
kmzFile
- KMZ file