Package org.apache.xmlgraphics.io
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
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionResource
(InputStream inputStream) Constructs a resource of 'unknown' type.Resource
(String type, InputStream inputStream) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
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
-