public static class ImageRawStream.ByteArrayStreamFactory extends java.lang.Object implements ImageRawStream.InputStreamFactory
| Constructor and Description |
|---|
ByteArrayStreamFactory(byte[] data)
Main constructor.
|
| 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.
|
boolean |
isUsedOnceOnly()
Indicates whether this factory is only usable once or many times.
|
public ByteArrayStreamFactory(byte[] data)
data - the byte arraypublic java.io.InputStream createInputStream()
createInputStream in interface ImageRawStream.InputStreamFactorypublic void close()
close in interface ImageRawStream.InputStreamFactorypublic boolean isUsedOnceOnly()
isUsedOnceOnly in interface ImageRawStream.InputStreamFactoryCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.