Home
last modified time | relevance | path

Searched refs:zipEncoding (Results 1 – 9 of 9) sorted by relevance

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DUTF8ZipFilesTest.java261 final ZipEncoding zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in createTestFile() local
276 && !zipEncoding.canEncode(ze.getName())) { in createTestFile()
278 final ByteBuffer en = zipEncoding.encode(ze.getName()); in createTestFile()
293 && !zipEncoding.canEncode(ze.getName())) { in createTestFile()
295 final ByteBuffer en = zipEncoding.encode(ze.getName()); in createTestFile()
311 && !zipEncoding.canEncode(ze.getName())) { in createTestFile()
313 final ByteBuffer en = zipEncoding.encode(ze.getName()); in createTestFile()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/
DTarArchiveInputStream.java75 private final ZipEncoding zipEncoding; field in TarArchiveInputStream
146 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in TarArchiveInputStream()
283 currEntry = new TarArchiveEntry(headerBuf, zipEncoding); in getNextTarEntry()
299 currEntry.setLinkName(zipEncoding.decode(longLinkData)); in getNextTarEntry()
310 currEntry.setName(zipEncoding.decode(longNameData)); in getNextTarEntry()
DTarArchiveOutputStream.java116 private final ZipEncoding zipEncoding; field in TarArchiveOutputStream
222 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in TarArchiveOutputStream()
348 entry.writeEntryHeader(recordBuf, zipEncoding, bigNumberMode == BIGNUMBER_STAR); in putArchiveEntry()
388 entry.writeEntryHeader(recordBuf, zipEncoding, bigNumberMode == BIGNUMBER_STAR); in putArchiveEntry()
663 final ByteBuffer encodedName = zipEncoding.encode(name); in handleLongName()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/dump/
DDumpArchiveInputStream.java77 private final ZipEncoding zipEncoding; field in DumpArchiveInputStream
107 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in DumpArchiveInputStream()
118 summary = new DumpArchiveSummary(headerBytes, this.zipEncoding); in DumpArchiveInputStream()
360 … final String name = DumpArchiveUtil.decode(zipEncoding, blockBuffer, i + 8, blockBuffer[i + 7]); in readDirectoryEntry()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipArchiveOutputStream.java225 private ZipEncoding zipEncoding = field in ZipArchiveOutputStream
352 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in setEncoding()
1032 final boolean encodable = zipEncoding.canEncode(ze.getName()); in writeLocalFileHeader()
1157 final boolean commentEncodable = zipEncoding.canEncode(comm); in addUnicodeExtraFields()
1260 final boolean encodable = zipEncoding.canEncode(ze.getName()); in createCentralFileHeader()
1383 final ByteBuffer data = this.zipEncoding.encode(comment); in writeCentralDirectoryEnd()
1589 final boolean encodable = zipEncoding.canEncode(ze.getName()); in getEntryEncoding()
1591 ? ZipEncodingHelper.UTF8_ZIP_ENCODING : zipEncoding; in getEntryEncoding()
DZipFile.java123 private final ZipEncoding zipEncoding; field in ZipFile
289 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in ZipFile()
556 return zipEncoding.decode(IOUtils.toByteArray(in));
669 hasUTF8Flag ? ZipEncodingHelper.UTF8_ZIP_ENCODING : zipEncoding;
DZipArchiveInputStream.java84 private final ZipEncoding zipEncoding; field in ZipArchiveInputStream
217 zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in ZipArchiveInputStream()
272 … final ZipEncoding entryEncoding = hasUTF8Flag ? ZipEncodingHelper.UTF8_ZIP_ENCODING : zipEncoding; in getNextZipEntry()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveInputStream.java94 private final ZipEncoding zipEncoding; field in CpioArchiveInputStream
157 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in CpioArchiveInputStream()
464 return zipEncoding.decode(tmpBuffer); in readCString()
DCpioArchiveOutputStream.java96 private final ZipEncoding zipEncoding; field in CpioArchiveOutputStream
165 this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding); in CpioArchiveOutputStream()
550 final ByteBuffer buf = zipEncoding.encode(str); in encode()