/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | UTF8ZipFilesTest.java | 33 import org.apache.commons.compress.utils.CharsetNames; 46 testFileRoundtrip(CharsetNames.UTF_8, true, true); in testUtf8FileRoundtripExplicitUnicodeExtra() 52 testFileRoundtrip(CharsetNames.UTF_8, false, true); in testUtf8FileRoundtripNoEFSExplicitUnicodeExtra() 64 testFileRoundtrip(CharsetNames.US_ASCII, false, true); in testASCIIFileRoundtripExplicitUnicodeExtra() 70 testFileRoundtrip(CharsetNames.UTF_8, true, false); in testUtf8FileRoundtripImplicitUnicodeExtra() 76 testFileRoundtrip(CharsetNames.UTF_8, false, false); in testUtf8FileRoundtripNoEFSImplicitUnicodeExtra() 88 testFileRoundtrip(CharsetNames.US_ASCII, false, false); in testASCIIFileRoundtripImplicitUnicodeExtra() 181 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipFileReadsUnicodeFields() 183 zi = new ZipArchiveInputStream(archive, CharsetNames.US_ASCII, true); in testZipFileReadsUnicodeFields() 202 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipArchiveInputStreamReadsUnicodeFields() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/ |
D | TarUtilsTest.java | 28 import org.apache.commons.compress.utils.CharsetNames; 61 buffer = maxOctal.getBytes(CharsetNames.UTF_8); in testParseOctal() 96 buffer = "abcdef ".getBytes(CharsetNames.UTF_8); // Invalid input in testParseOctalInvalid() 102 buffer = " 0 07 ".getBytes(CharsetNames.UTF_8); // Invalid - embedded space in testParseOctalInvalid() 108 buffer = " 0\00007 ".getBytes(CharsetNames.UTF_8); // Invalid - embedded NUL in testParseOctalInvalid() 191 assertEquals("1777777777777777777777", new String(buffer, CharsetNames.UTF_8)); in testNegative() 198 assertEquals("7777777", new String(buffer, CharsetNames.UTF_8)); in testOverflow() 217 final ZipEncoding enc = ZipEncodingHelper.getZipEncoding(CharsetNames.ISO_8859_1); in testRoundEncoding()
|
D | TarArchiveInputStreamTest.java | 45 import org.apache.commons.compress.utils.CharsetNames; 57 .getBytes(CharsetNames.UTF_8))); in readSimplePaxHeader() 69 .getBytes(CharsetNames.UTF_8))); in secondEntryWinsWhenPaxHeaderContainsDuplicateKey() 81 .getBytes(CharsetNames.UTF_8))); in paxHeaderEntryWithEmptyValueRemovesKey() 92 .getBytes(CharsetNames.UTF_8))); in readPaxHeaderWithEmbeddedNewline() 102 assertEquals(11, line.getBytes(CharsetNames.UTF_8).length); in readNonAsciiPaxHeader() 106 .parsePaxHeaders(new ByteArrayInputStream(line.getBytes(CharsetNames.UTF_8))); in readNonAsciiPaxHeader() 175 final String encoding = CharsetNames.UTF_16; in shouldUseSpecifiedEncodingWhenReadingGNULongNames()
|
D | TarArchiveOutputStreamTest.java | 47 import org.apache.commons.compress.utils.CharsetNames; 141 CharsetNames.UTF_8)); in testBigNumberPosixMode() 162 CharsetNames.UTF_8)); in testWriteSimplePaxHeaders() 163 assertEquals("6 a=b\n", new String(data, 512, 6, CharsetNames.UTF_8)); in testWriteSimplePaxHeaders() 179 CharsetNames.UTF_8)); in testPaxHeadersWithLength99() 182 + "012\n", new String(data, 512, 99, CharsetNames.UTF_8)); in testPaxHeadersWithLength99() 198 CharsetNames.UTF_8)); in testPaxHeadersWithLength101() 201 + "0123\n", new String(data, 512, 101, CharsetNames.UTF_8)); in testPaxHeadersWithLength101() 236 new String(data, 512, 160, CharsetNames.UTF_8)); in testWriteLongFileNamePosixMode() 295 CharsetNames.UTF_8)); in testOldEntryPosixMode() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | ArchiveUtils.java | 76 buffer1 = expected.getBytes(CharsetNames.US_ASCII); in matchAsciiBuffer() 104 return inputString.getBytes(CharsetNames.US_ASCII); in toAsciiBytes() 119 return new String(inputBytes, CharsetNames.US_ASCII); in toAsciiString() 136 return new String(inputBytes, offset, length, CharsetNames.US_ASCII); in toAsciiString()
|
D | CharsetNames.java | 54 public class CharsetNames { class
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/gzip/ |
D | GzipCompressorOutputStream.java | 31 import org.apache.commons.compress.utils.CharsetNames; 114 out.write(filename.getBytes(CharsetNames.ISO_8859_1)); in writeHeader() 119 out.write(comment.getBytes(CharsetNames.ISO_8859_1)); in writeHeader()
|
D | GzipCompressorInputStream.java | 35 import org.apache.commons.compress.utils.CharsetNames; 243 CharsetNames.ISO_8859_1)); in init() 249 CharsetNames.ISO_8859_1)); in init()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | AbstractUnicodeExtraField.java | 25 import org.apache.commons.compress.utils.CharsetNames; 57 unicodeName = text.getBytes(CharsetNames.UTF_8); in AbstractUnicodeExtraField()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/ |
D | TarArchiveOutputStream.java | 35 import org.apache.commons.compress.utils.CharsetNames; 491 int actualLength = line.getBytes(CharsetNames.UTF_8).length; in encodeExtendedPaxHeadersContents() 500 actualLength = line.getBytes(CharsetNames.UTF_8).length; in encodeExtendedPaxHeadersContents() 504 return w.toString().getBytes(CharsetNames.UTF_8); in encodeExtendedPaxHeadersContents()
|
D | TarArchiveInputStream.java | 37 import org.apache.commons.compress.utils.CharsetNames; 469 final String keyword = coll.toString(CharsetNames.UTF_8); in parsePaxHeaders() 486 restLen - 1, CharsetNames.UTF_8); in parsePaxHeaders()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/ |
D | CpioArchiveInputStream.java | 30 import org.apache.commons.compress.utils.CharsetNames; 108 this(in, BLOCK_SIZE, CharsetNames.US_ASCII); in CpioArchiveInputStream() 138 this(in, blockSize, CharsetNames.US_ASCII); in CpioArchiveInputStream()
|
D | CpioArchiveOutputStream.java | 33 import org.apache.commons.compress.utils.CharsetNames; 112 this(out, format, BLOCK_SIZE, CharsetNames.US_ASCII); in CpioArchiveOutputStream() 130 this(out, format, blockSize, CharsetNames.US_ASCII); in CpioArchiveOutputStream()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/ |
D | TarTestCase.java | 34 import org.apache.commons.compress.utils.CharsetNames; 63 final byte[] bytes = name.getBytes(CharsetNames.UTF_8); in testTarArchiveLongNameCreation() 130 CharsetNames.ISO_8859_1); in testCOMPRESS114()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | SeekableInMemoryByteChannelTest.java | 29 import static org.apache.commons.compress.utils.CharsetNames.UTF_8;
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
D | SevenZFile.java | 45 import org.apache.commons.compress.utils.CharsetNames; 792 … files[nextFile++].setName(new String(names, nextName, i-nextName, CharsetNames.UTF_16LE)); in readFilesInfo()
|