Top Description Fields Constructors Methods
org.apache.tools.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 PKWARE's 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
text
,
final byte[]
the bytes actually written to the archive
bytes
,
final int
The offset of the encoded filename in bytes.
off
,
final int
The length of the encoded filename 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.

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.

Method Summary

Modifier and TypeMethod and Description
public ZipShort
Inherited from org.apache.tools.zip.AbstractUnicodeExtraField:
getCentralDirectoryDatagetCentralDirectoryLengthgetLocalFileDataDatagetLocalFileDataLengthgetNameCRC32getUnicodeNameparseFromLocalFileDatasetNameCRC32setUnicodeName

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 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 filename in bytes.

len:int

The length of the encoded filename or comment in bytes.

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

Method Detail

getHeaderIdback to summary
public ZipShort getHeaderId()

Implements org.apache.tools.zip.ZipExtraField.getHeaderId.

Doc from org.apache.tools.zip.ZipExtraField.getHeaderId.

The Header-ID.

Returns:ZipShort

the header id