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.Closeable
Provides the ability to recreate anInputStream
on demand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Cleanup any temporary resources associated with the last returned stream.java.io.InputStream
createInputStream()
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.IOException
Return 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.IOException
Cleanup any temporary resources associated with the last returned stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-