public static class ImageRawStream.ByteArrayStreamFactory extends java.lang.Object implements ImageRawStream.InputStreamFactory
Constructor and Description |
---|
ImageRawStream.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 ImageRawStream.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-2012 The Apache Software Foundation. All Rights Reserved.