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 TypeMethodDescriptionvoidclose()Closes the factory and releases any resources held open during the lifetime of this object.Creates and returns a new InputStream.booleanIndicates 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
-
close
void close()Closes the factory and releases any resources held open during the lifetime of this object.
-