public final class CentralDirectoryEndRecord extends Object
| 构造器和说明 |
|---|
CentralDirectoryEndRecord(RandomAccessData data)
Create a new
CentralDirectoryEndRecord instance from the specified
RandomAccessData, searching backwards from the end until a valid block is
located. |
| 限定符和类型 | 方法和说明 |
|---|---|
RandomAccessData |
getCentralDirectory(RandomAccessData data)
Return the bytes of the "Central directory" based on the offset indicated in this
record.
|
int |
getNumberOfRecords()
Return the number of ZIP entries in the file.
|
long |
getStartOfArchive(RandomAccessData data)
Returns the location in the data that the archive actually starts.
|
boolean |
isValid() |
public CentralDirectoryEndRecord(RandomAccessData data) throws IOException
CentralDirectoryEndRecord instance from the specified
RandomAccessData, searching backwards from the end until a valid block is
located.data - the source dataIOException - in case of I/O errorspublic boolean isValid()
public long getStartOfArchive(RandomAccessData data)
data - the source datapublic RandomAccessData getCentralDirectory(RandomAccessData data)
data - the source datapublic int getNumberOfRecords()
Copyright © 2019. All rights reserved.