private static class ImageRawStream.SingleStreamFactory extends java.lang.Object implements ImageRawStream.InputStreamFactory
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
in |
Constructor and Description |
---|
SingleStreamFactory(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the factory and releases any resources held open during the lifetime of this
object.
|
java.io.InputStream |
createInputStream()
Creates and returns a new InputStream.
|
protected void |
finalize() |
boolean |
isUsedOnceOnly()
Indicates whether this factory is only usable once or many times.
|
public java.io.InputStream createInputStream()
ImageRawStream.InputStreamFactory
createInputStream
in interface ImageRawStream.InputStreamFactory
public void close()
ImageRawStream.InputStreamFactory
close
in interface ImageRawStream.InputStreamFactory
public boolean isUsedOnceOnly()
ImageRawStream.InputStreamFactory
isUsedOnceOnly
in interface ImageRawStream.InputStreamFactory
protected void finalize()
finalize
in class java.lang.Object