public interface ProcessResource
A ProcessResource represents a local or remote resource that will be used during
processing by the ProcessingFramework.
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is used to close the input stream.
|
InputStream |
getInputStream()
Return the input stream containing the
ProcessResource's actual data content. |
String |
getMimeType()
Return the mime type raw data for the
ProcessResource, e.g., image/nitf or
application/json;id=geojson |
String |
getName()
A human friendly readable name.
|
String |
getQualifier()
An optional field to provide additional information about a
ProcessResource, that if
present, indicates that this ProcessResource is derived from another Resource. |
long |
getSize()
Return the total number of bytes in the
ProcessResource's input stream. |
URI |
getUri()
Gets a URI that represents the resource in the catalog.
|
boolean |
isModified()
Determines if the
ProcessResource has been modified or created by any of the PostProcessPlugins during processing by the ProcessingFramework. |
static final int UNKNOWN_SIZE
URI getUri()
ProcessResourceString getName()
ProcessResourceString getQualifier()
ProcessResource, that if
present, indicates that this ProcessResource is derived from another Resource. The parent content of this ProcessResource is this
ProcessResource's URI without the qualifier.ProcessResourceString getMimeType()
ProcessResource, e.g., image/nitf or
application/json;id=geojsonProcessResourceInputStream getInputStream() throws IOException
ProcessResource's actual data content.ProcessResource's input streamIOException - if the input stream is not availablelong getSize()
ProcessResource's input stream.UNKNOWN_SIZE if the total number of bytes is unknown or not applicable (e.g., in the case
of a live stream)boolean isModified()
ProcessResource has been modified or created by any of the PostProcessPlugins during processing by the ProcessingFramework. This is used to
determine whether or not a UpdateStorageRequest for this
ProcessResource needs to be made back to the CatalogFramework.true if modified, false otherwisevoid close()
Look into having the ProcessResource implement InputStream
This work is licensed under a Creative Commons Attribution 4.0 International License.