public interface InputTransformer
Metacard
from a given InputStream
. Alternatively a Metacard
implementation's constructor can be used to create
Metacard
s.
Implementations of this interface must:
InputTransformer
interface
Include a Service property with name "id" (Constants.SERVICE_ID
) and a
String
value uniquely identifying the particular implementation
Modifier and Type | Method and Description |
---|---|
Metacard |
transform(InputStream input)
Transforms the input into a
Metacard . |
Metacard |
transform(InputStream input,
String id)
|
Metacard transform(InputStream input) throws IOException, CatalogTransformerException
Metacard
.input
- the binary InputStream
to transformMetacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationMetacard transform(InputStream input, String id) throws IOException, CatalogTransformerException
input
- 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.