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.image.loader.impl
Interface ImageRawStream.InputStreamFactory

All Known Implementing Classes:
  ImageRawStream.ByteArrayStreamFactory

Enclosing class:
  ImageRawStream

    public static interface ImageRawStream.InputStreamFactory

Represents a factory for InputStream objects. Make sure the class is thread-safe!

Method Summary
`void` | `close()` Closes the factory and releases any resources held open during the lifetime of this object.
`InputStream` | `createInputStream()` Creates and returns a new InputStream.
`boolean` | `isUsedOnceOnly()` Indicates whether this factory is only usable once or many times.

Method Detail

### isUsedOnceOnly

    boolean isUsedOnceOnly()

  Indicates whether this factory is only usable once or many times.

  Returns:
    true if the factory can only be used once

### createInputStream

    InputStream createInputStream()

  Creates and returns a new InputStream.

  Returns:
    the new InputStream

### close

    void close()

  Closes the factory and releases any resources held open during the lifetime of this object.

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.