ImageRawStream.InputStreamFactory
public static class ImageRawStream.ByteArrayStreamFactory extends java.lang.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.
|
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.InputStreamFactory
public void close()
close
in interface ImageRawStream.InputStreamFactory
public boolean isUsedOnceOnly()
isUsedOnceOnly
in interface ImageRawStream.InputStreamFactory
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.