|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.compress.archivers.zip.UnrecognizedExtraField
public class UnrecognizedExtraField
Simple placeholder for all those extra fields we don't want to deal with.
Assumes local file data and central directory entries are identical - unless told the opposite.
Constructor Summary | |
---|---|
UnrecognizedExtraField()
|
Method Summary | |
---|---|
byte[] |
getCentralDirectoryData()
Get the central directory data. |
ZipShort |
getCentralDirectoryLength()
Get the length of the central directory in bytes. |
ZipShort |
getHeaderID()
Get the HeaderID. |
byte[] |
getLocalFileDataData()
Get the local file data. |
ZipShort |
getLocalFileDataLength()
Get the length of local file data in bytes. |
void |
parseFromLocalFileData(byte[] buffer,
int offset,
int length)
Parse LocalFiledata out of supplied buffer. |
void |
setCentralDirectoryData(byte[] centralData)
Set the central directory data |
void |
setHeaderID(ZipShort headerID)
Set the header ID. |
void |
setLocalFileDataData(byte[] localData)
Set the local file data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnrecognizedExtraField()
Method Detail |
---|
public void setCentralDirectoryData(byte[] centralData)
centralData
- the central directory datapublic void setHeaderID(ZipShort headerID)
headerID
- the header IDpublic void setLocalFileDataData(byte[] localData)
localData
- the local file datapublic byte[] getCentralDirectoryData()
getCentralDirectoryData
in interface ZipExtraField
public ZipShort getCentralDirectoryLength()
getCentralDirectoryLength
in interface ZipExtraField
public ZipShort getHeaderID()
getHeaderID
in interface ZipExtraField
public byte[] getLocalFileDataData()
getLocalFileDataData
in interface ZipExtraField
public ZipShort getLocalFileDataLength()
getLocalFileDataLength
in interface ZipExtraField
public void parseFromLocalFileData(byte[] buffer, int offset, int length)
parseFromLocalFileData
in interface ZipExtraField
buffer
- the buffer to useoffset
- the offset into bufferlength
- then length of data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |