Package com.attivio.sdk.client
Interface InputStreamBuilder
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
ByteArrayInputStreamBuilder,FileInputStreamBuilder,NonRestartableInputStreamBuilder
public interface InputStreamBuilder extends java.io.CloseableProvides the ability to recreate anInputStreamon demand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Cleanup any temporary resources associated with the last returned stream.java.io.InputStreamcreateInputStream()Return a stream in a state where no bytes have been read from it yet.
-
-
-
Method Detail
-
createInputStream
java.io.InputStream createInputStream() throws java.io.IOExceptionReturn a stream in a state where no bytes have been read from it yet. For example a newly created stream meets these criteria. The caller should handle closing the stream.- Throws:
java.io.IOException
-
close
void close() throws java.io.IOExceptionCleanup any temporary resources associated with the last returned stream.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-