Interface ImageRawStream.InputStreamFactory
- All Known Implementing Classes:
ImageRawStream.ByteArrayStreamFactory
- Enclosing class:
ImageRawStream
public static interface ImageRawStream.InputStreamFactory
Represents a factory for InputStream objects. Make sure the class is thread-safe!
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the factory and releases any resources held open during the lifetime of this object.Creates and returns a new InputStream.boolean
Indicates whether this factory is only usable once or many times.
-
Method Details
-
isUsedOnceOnly
boolean isUsedOnceOnly()Indicates whether this factory is only usable once or many times.- Returns:
- true if the factory can only be used once
-
createInputStream
InputStream createInputStream()Creates and returns a new InputStream.- Returns:
- the new InputStream
-
close
void close()Closes the factory and releases any resources held open during the lifetime of this object.
-