org.apache.xmlgraphics.io
Class Resource
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.xmlgraphics.io.Resource
- All Implemented Interfaces:
- Closeable
public class Resource
- extends FilterInputStream
This class represents a resolved resource. The type property is used by XGC to identify the
resource content.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource(String type,
InputStream inputStream)
- Parameters:
type
- resource typeinputStream
- input stream of the resource
Resource
public Resource(InputStream inputStream)
- Constructs a resource of 'unknown' type.
- Parameters:
inputStream
- input stream of the resource
getType
public String getType()
- Returns:
- the resource type
Copyright 1999-2015 The Apache Software Foundation. All Rights Reserved.