Top Description Fields Constructors Methods
org.apache.commons.compress.archivers.zip

public Class UnicodePathExtraField

extends AbstractUnicodeExtraField
Class Inheritance

Info-ZIP Unicode Path Extra Field (0x7075):

Stores the UTF-8 version of the file name field as stored in the local header and central directory header.

See Also
PKWARE APPNOTE.TXT, section 4.6.9

Field Summary

Modifier and TypeField and Description
public static final ZipShort

Constructor Summary

AccessConstructor and Description
public
public
UnicodePathExtraField(final String
The file name
name
,
final byte[]
the bytes actually written to the archive
bytes
)

Assemble as unicode path extension from the name given as text as well as the encoded bytes actually written to the archive.

public
UnicodePathExtraField(final String
The file name
text
,
final byte[]
the bytes actually written to the archive
bytes
,
final int
The offset of the encoded file name in bytes.
off
,
final int
The length of the encoded file name or comment in bytes.
len
)

Assemble as unicode path extension from the name given as text as well as the encoded bytes actually written to the archive.

Method Summary

Modifier and TypeMethod and Description
public ZipShort
Inherited from org.apache.commons.compress.archivers.zip.AbstractUnicodeExtraField:
getCentralDirectoryDatagetCentralDirectoryLengthgetLocalFileDataDatagetLocalFileDataLengthgetNameCRC32getUnicodeNameparseFromCentralDirectoryDataparseFromLocalFileDatasetNameCRC32setUnicodeName

Field Detail

UPATH_IDback to summary
public static final ZipShort UPATH_ID

Constructor Detail

UnicodePathExtraFieldback to summary
public UnicodePathExtraField()
UnicodePathExtraFieldback to summary
public UnicodePathExtraField(final String name, final byte[] bytes)

Assemble as unicode path extension from the name given as text as well as the encoded bytes actually written to the archive.

Parameters
name:String

The file name

bytes:byte[]

the bytes actually written to the archive

UnicodePathExtraFieldback to summary
public UnicodePathExtraField(final String text, final byte[] bytes, final int off, final int len)

Assemble as unicode path extension from the name given as text as well as the encoded bytes actually written to the archive.

Parameters
text:String

The file name

bytes:byte[]

the bytes actually written to the archive

off:int

The offset of the encoded file name in bytes.

len:int

The length of the encoded file name or comment in bytes.

Method Detail

getHeaderIdback to summary
public ZipShort getHeaderId()

Implements org.apache.commons.compress.archivers.zip.ZipExtraField.getHeaderId.

Doc from org.apache.commons.compress.archivers.zip.ZipExtraField.getHeaderId.

The Header-ID.

Returns:ZipShort

The HeaderId value

Annotations
@Override