public class KmlInputTransformer extends Object implements InputTransformer
Constructor and Description |
---|
KmlInputTransformer(MetacardType metacardType) |
Modifier and Type | Method and Description |
---|---|
Metacard |
transform(InputStream inputStream)
Transforms the input into a
Metacard . |
Metacard |
transform(InputStream inputStream,
String id)
|
public KmlInputTransformer(MetacardType metacardType)
public Metacard transform(InputStream inputStream) throws IOException, CatalogTransformerException
InputTransformer
Metacard
.transform
in interface InputTransformer
inputStream
- the binary InputStream
to transformMetacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationpublic Metacard transform(InputStream inputStream, String id) throws IOException, CatalogTransformerException
InputTransformer
transform
in interface InputTransformer
inputStream
- the binary InputStream
to transformid
- the attribute value for the Metacard.ID
attribute that should be set in the
generated Metacard
Metacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationThis work is licensed under a Creative Commons Attribution 4.0 International License.