Class Resource
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.xmlgraphics.io.Resource
- All Implemented Interfaces:
Closeable, AutoCloseable
This class represents a resolved resource. The type property is used by XGC to identify the
resource content.
-
Field Summary
FieldsFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionResource(InputStream inputStream) Constructs a resource of 'unknown' type.Resource(String type, InputStream inputStream) -
Method Summary
Methods inherited from class FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
type
-
-
Constructor Details
-
Resource
- Parameters:
type- resource typeinputStream- input stream of the resource
-
Resource
Constructs a resource of 'unknown' type.- Parameters:
inputStream- input stream of the resource
-
-
Method Details
-
getType
- Returns:
- the resource type
-