public class ZipIndexFileSource extends Object implements IndexFileSource, Closeable, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCAL_HEADER_EXTRA_FIELD_LENGTH_OFFSET |
static int |
LOCAL_HEADER_FILENAME_LENGTH_OFFSET |
static int |
LOCAL_HEADER_FIXED_DATA_SIZE |
static int |
LOCAL_HEADER_SIGNATURE |
| Constructor and Description |
|---|
ZipIndexFileSource(DataInputSource dataInputSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
readFile(String fileName)
Reads file inside a zip archive
|
void |
readFile(String fileName,
long position,
byte[] buffer) |
public static final int LOCAL_HEADER_SIGNATURE
public static final int LOCAL_HEADER_FIXED_DATA_SIZE
public static final int LOCAL_HEADER_FILENAME_LENGTH_OFFSET
public static final int LOCAL_HEADER_EXTRA_FIELD_LENGTH_OFFSET
public ZipIndexFileSource(DataInputSource dataInputSource)
public byte[] readFile(String fileName) throws IOException
readFile in interface IndexFileSourceIOExceptionpublic final void readFile(String fileName, long position, byte[] buffer) throws IOException
readFile in interface IndexFileSourceIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2022. All rights reserved.