Class InflaterByteSource
- java.lang.Object
-
- com.google.common.io.ByteSource
-
- com.android.tools.build.apkzlib.zip.utils.CloseableByteSource
-
- com.android.tools.build.apkzlib.zip.InflaterByteSource
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class InflaterByteSource extends CloseableByteSource
Byte source that inflates another byte source. It assumed the inner byte source has deflated data.
-
-
Constructor Summary
Constructors Constructor Description InflaterByteSource(CloseableByteSource byteSource)Creates a new source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinnerClose()Closes the by source.java.io.InputStreamopenStream()-
Methods inherited from class com.android.tools.build.apkzlib.zip.utils.CloseableByteSource
close
-
-
-
-
Constructor Detail
-
InflaterByteSource
public InflaterByteSource(CloseableByteSource byteSource)
Creates a new source.- Parameters:
byteSource- the factory for deflated data
-
-
Method Detail
-
openStream
public java.io.InputStream openStream() throws java.io.IOException- Specified by:
openStreamin classcom.google.common.io.ByteSource- Throws:
java.io.IOException
-
innerClose
public void innerClose() throws java.io.IOExceptionDescription copied from class:CloseableByteSourceCloses the by source. This method is only invoked once, even ifCloseableByteSource.close()is called multiple times.- Specified by:
innerClosein classCloseableByteSource- Throws:
java.io.IOException- failed to close
-
-