Package io.deephaven.io.streams
Class SevenZipInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.deephaven.io.streams.SevenZipInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SevenZipInputStream extends java.io.InputStreamInputStreamthat can read 7zip archives (.7z) (partial implementation).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSevenZipInputStream.Behaviorstatic classSevenZipInputStream.Entry
-
Field Summary
Fields Modifier and Type Field Description static longSIGNATURE_AS_LONGstatic intSTART_HEADER_CRC_LENGTHstatic intSTART_HEADER_LENGTHstatic intUBYTE_TO_INTstatic longUBYTE_TO_LONGstatic longUINT_TO_LONGstatic intUSHORT_TO_INT
-
Constructor Summary
Constructors Constructor Description SevenZipInputStream(InputStreamFactory inputStreamFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SevenZipInputStream.EntrygetNextEntry(SevenZipInputStream.Behavior behavior)intread()intread(byte[] bytes, int nOffset, int nLength)
-
-
-
Field Detail
-
UBYTE_TO_INT
public static final int UBYTE_TO_INT
- See Also:
- Constant Field Values
-
UBYTE_TO_LONG
public static final long UBYTE_TO_LONG
- See Also:
- Constant Field Values
-
USHORT_TO_INT
public static final int USHORT_TO_INT
- See Also:
- Constant Field Values
-
UINT_TO_LONG
public static final long UINT_TO_LONG
- See Also:
- Constant Field Values
-
SIGNATURE_AS_LONG
public static final long SIGNATURE_AS_LONG
-
START_HEADER_LENGTH
public static final int START_HEADER_LENGTH
- See Also:
- Constant Field Values
-
START_HEADER_CRC_LENGTH
public static final int START_HEADER_CRC_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SevenZipInputStream
public SevenZipInputStream(InputStreamFactory inputStreamFactory)
-
-
Method Detail
-
getNextEntry
public SevenZipInputStream.Entry getNextEntry(SevenZipInputStream.Behavior behavior) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int nOffset, int nLength) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
-