| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.zip.UnparseableExtraFieldData
public final class UnparseableExtraFieldData
Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data.
The header-id is artificial (and not listed as a known ID in APPNOTE.TXT). Since it isn't used anywhere except to satisfy the ZipExtraField contract it shouldn't matter anyway.
| Constructor Summary | |
|---|---|
| UnparseableExtraFieldData() | |
| Method Summary | |
|---|---|
|  byte[] | getCentralDirectoryData()The actual data to put into central directory. | 
|  ZipShort | getCentralDirectoryLength()Length of the complete extra field in the central directory. | 
|  ZipShort | getHeaderId()The Header-ID. | 
|  byte[] | getLocalFileDataData()The actual data to put into local file data. | 
|  ZipShort | getLocalFileDataLength()Length of the complete extra field in the local file data. | 
|  void | parseFromCentralDirectoryData(byte[] buffer,
                              int offset,
                              int length)Populate data from this array as if it was in central directory data. | 
|  void | parseFromLocalFileData(byte[] buffer,
                       int offset,
                       int length)Populate data from this array as if it was in local file data. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UnparseableExtraFieldData()
| Method Detail | 
|---|
public ZipShort getHeaderId()
getHeaderId in interface ZipExtraFieldpublic ZipShort getLocalFileDataLength()
getLocalFileDataLength in interface ZipExtraFieldpublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData in interface ZipExtraFieldpublic byte[] getCentralDirectoryData()
getCentralDirectoryData in interface ZipExtraField
public void parseFromLocalFileData(byte[] buffer,
                                   int offset,
                                   int length)
parseFromLocalFileData in interface ZipExtraFieldbuffer - the buffer to read data fromoffset - offset into buffer to read datalength - the length of data
public void parseFromCentralDirectoryData(byte[] buffer,
                                          int offset,
                                          int length)
parseFromCentralDirectoryData in interface CentralDirectoryParsingZipExtraFieldbuffer - the buffer to read data fromoffset - offset into buffer to read datalength - the length of data| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||