Class CloseableByteSourceFromOutputStreamBuilder
- java.lang.Object
-
- java.io.OutputStream
-
- com.android.tools.build.apkzlib.bytestorage.CloseableByteSourceFromOutputStreamBuilder
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public abstract class CloseableByteSourceFromOutputStreamBuilder extends java.io.OutputStreamOutput stream that creates aCloseableByteSourcefrom the data that was written to it. CallingOutputStream.close()is optional asbuild()will also close the output stream.
-
-
Constructor Summary
Constructors Constructor Description CloseableByteSourceFromOutputStreamBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CloseableByteSourcebuild()Creates the source from the data that has been written to the stream.
-
-
-
Method Detail
-
build
public abstract CloseableByteSource build() throws java.io.IOException
Creates the source from the data that has been written to the stream. No more data can be written to the output stream after this method has been called.- Returns:
- a source that will provide the data that was written to the stream before this method is invoked; where this data is stored is not specified by this interface
- Throws:
java.io.IOException- failed to build the byte source
-
-