Package org.apache.xmlgraphics.io
Class Resource
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.xmlgraphics.io.Resource
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class Resource extends java.io.FilterInputStream
This class represents a resolved resource. The type property is used by XGC to identify the resource content.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getType()
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Constructor Detail
-
Resource
public Resource(java.lang.String type, java.io.InputStream inputStream)
- Parameters:
type
- resource typeinputStream
- input stream of the resource
-
Resource
public Resource(java.io.InputStream inputStream)
Constructs a resource of 'unknown' type.- Parameters:
inputStream
- input stream of the resource
-
-