|
||||||||||
| 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.
| Field Summary | |
|---|---|
private byte[] |
m_centralData
Extra field data in central directory - without Header-ID or length specifier. |
private ZipShort |
m_headerID
The Header-ID. |
private byte[] |
m_localData
Extra field data in local file data - without Header-ID or length specifier. |
| 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 |
| Field Detail |
|---|
private byte[] m_centralData
private ZipShort m_headerID
private byte[] m_localData
| 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 ZipExtraFieldpublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength in interface ZipExtraFieldpublic ZipShort getHeaderID()
getHeaderID in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData in interface ZipExtraFieldpublic ZipShort getLocalFileDataLength()
getLocalFileDataLength in interface ZipExtraField
public void parseFromLocalFileData(byte[] buffer,
int offset,
int length)
parseFromLocalFileData in interface ZipExtraFieldbuffer - 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 | |||||||||