|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.file.impl.zip.provider.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.
--------------------------------------------------------------------------------------------------------------
This class is based off the org.apache.tools.zip package of the Apache Ant project. The Ant
code has been modified under the terms of the Apache License which you can find in the bundled muCommander license
file. It was forked at version 1.7.0 of Ant.
| Constructor Summary | |
|---|---|
UnrecognizedExtraField()
|
|
| Method Summary | |
|---|---|
byte[] |
getCentralDirectoryData()
Get the central data. |
ZipShort |
getCentralDirectoryLength()
Get the central data length. |
ZipShort |
getHeaderId()
Get the header id. |
byte[] |
getLocalFileDataData()
Get the local data. |
ZipShort |
getLocalFileDataLength()
Get the length of the local data. |
void |
parseFromLocalFileData(byte[] data,
int offset,
int length)
Populate data from this array as if it was in local file data. |
void |
setCentralDirectoryData(byte[] data)
Set the extra field data in central directory. |
void |
setHeaderId(ZipShort headerId)
Set the header id. |
void |
setLocalFileDataData(byte[] data)
Set the extra field data in the local file data - without Header-ID or length specifier. |
| 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 setHeaderId(ZipShort headerId)
headerId - the header id to usepublic ZipShort getHeaderId()
getHeaderId in interface ZipExtraFieldpublic void setLocalFileDataData(byte[] data)
data - the field data to usepublic ZipShort getLocalFileDataLength()
getLocalFileDataLength in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData in interface ZipExtraFieldpublic void setCentralDirectoryData(byte[] data)
data - the data to usepublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength in interface ZipExtraFieldpublic byte[] getCentralDirectoryData()
getCentralDirectoryData in interface ZipExtraField
public void parseFromLocalFileData(byte[] data,
int offset,
int length)
ZipExtraField
parseFromLocalFileData in interface ZipExtraFielddata - the array of bytes.offset - the source location in the data array.length - the number of bytes to use in the data array.ZipExtraField.parseFromLocalFileData(byte[], int, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard