-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField
public class UnicodePathExtraField extends AbstractUnicodeExtraField
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.
-
-
Constructor Summary
Constructors Constructor Description UnicodePathExtraField()UnicodePathExtraField(String name, Array<byte> bytes)Assemble as unicode path extension from the name given astext as well as the encoded bytes actually written to the archive. UnicodePathExtraField(String text, Array<byte> bytes, int off, int len)Assemble as unicode path extension from the name given astext as well as the encoded bytes actually written to the archive.
-
Method Summary
Modifier and Type Method Description ZipShortgetHeaderId()The Header-ID. -
Methods inherited from class org.readium.r2.shared.util.zip.compress.archivers.zip.AbstractUnicodeExtraField
getCentralDirectoryData, getCentralDirectoryLength, getLocalFileDataData, getLocalFileDataLength, getNameCRC32, getUnicodeName, parseFromCentralDirectoryData, parseFromLocalFileData, setNameCRC32, setUnicodeName -
Methods inherited from class org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField
parseFromCentralDirectoryData, parseFromLocalFileData -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UnicodePathExtraField
UnicodePathExtraField()
-
UnicodePathExtraField
UnicodePathExtraField(String name, Array<byte> bytes)
Assemble as unicode path extension from the name given astext as well as the encoded bytes actually written to the archive.- Parameters:
name- The file namebytes- the bytes actually written to the archive
-
UnicodePathExtraField
UnicodePathExtraField(String text, Array<byte> bytes, int off, int len)
Assemble as unicode path extension from the name given astext as well as the encoded bytes actually written to the archive.- Parameters:
text- The file namebytes- the bytes actually written to the archiveoff- The offset of the encoded file name in{@code bytes}.len- The length of the encoded file name or comment in{@code bytes}.
-
-
Method Detail
-
getHeaderId
ZipShort getHeaderId()
The Header-ID.
-
-
-
-