ImageRawStream.InputStreamFactory
public 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.InputStreamFactory
public void close()
close
in interface ImageRawStream.InputStreamFactory
public boolean isUsedOnceOnly()
isUsedOnceOnly
in interface ImageRawStream.InputStreamFactory
Copyright © 2018 Apache Software Foundation. All rights reserved.