Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Field Summary

Fields inherited from class java.io.FilterInputStream
`in`

Constructor Summary
`Resource(InputStream inputStream)` Constructs a resource of 'unknown' type.
`Resource(String type, InputStream inputStream)`

Method Summary
`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

### Resource

    public Resource(String type,
                    InputStream inputStream)

Parameters:
  `type` - resource type
  `inputStream` - input stream of the resource

### Resource

    public Resource(InputStream inputStream)

  Constructs a resource of 'unknown' type.

  Parameters:
    `inputStream` - input stream of the resource

Method Detail

### getType

    public String getType()

  Returns:
    the resource type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.