ImageRawStream.InputStreamFactorypublic static class ImageRawStream.ByteArrayStreamFactory extends Object implements ImageRawStream.InputStreamFactory
| Constructor | Description |
|---|---|
ByteArrayStreamFactory(byte[] data) |
Main constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public ByteArrayStreamFactory(byte[] data)
data - the byte arraypublic InputStream createInputStream()
createInputStream in interface ImageRawStream.InputStreamFactorypublic void close()
close in interface ImageRawStream.InputStreamFactorypublic boolean isUsedOnceOnly()
isUsedOnceOnly in interface ImageRawStream.InputStreamFactoryCopyright © 2018 Apache Software Foundation. All rights reserved.