|
xmlgraphics-commons 2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.apache.xmlgraphics.io.Resource
public class Resource
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 | |
|---|---|
Resource(java.io.InputStream inputStream)
Constructs a resource of 'unknown' type. |
|
Resource(java.lang.String type,
java.io.InputStream inputStream)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getType()
|
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resource(java.lang.String type,
java.io.InputStream inputStream)
type - resource typeinputStream - input stream of the resourcepublic Resource(java.io.InputStream inputStream)
inputStream - input stream of the resource| Method Detail |
|---|
public java.lang.String getType()
|
xmlgraphics-commons 2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||