/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 29 package java.nio.charset; 37 java.nio.charset.Charset cs, in CharsetEncoder() 45 java.nio.charset.Charset cs, in CharsetEncoder() 54 java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar) { in CharsetEncoder() 58 public final java.nio.charset.Charset charset() { in charset() method in CharsetEncoder 66 public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) { in replaceWith() 78 public java.nio.charset.CodingErrorAction malformedInputAction() { in malformedInputAction() 82 public final java.nio.charset.CharsetEncoder onMalformedInput( in onMalformedInput() 83 java.nio.charset.CodingErrorAction newAction) { in onMalformedInput() 87 protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { in implOnMalformedInput() [all …]
|
D | Charset.java | 27 package java.nio.charset; 32 public abstract class Charset implements java.lang.Comparable<java.nio.charset.Charset> { 46 private static void cache(java.lang.String charsetName, java.nio.charset.Charset cs) { in cache() 50 private static java.util.Iterator<java.nio.charset.spi.CharsetProvider> providers() { in providers() 54 private static java.nio.charset.Charset lookupViaProviders(java.lang.String charsetName) { in lookupViaProviders() 58 private static java.nio.charset.Charset lookup(java.lang.String charsetName) { in lookup() 62 private static java.nio.charset.Charset lookup2(java.lang.String charsetName) { in lookup2() 70 public static java.nio.charset.Charset forName(java.lang.String charsetName) { in forName() 74 public static java.nio.charset.Charset forNameUEE(java.lang.String charsetName) in forNameUEE() 80 java.util.Iterator<java.nio.charset.Charset> i, in put() [all …]
|
/libcore/ojluni/annotations/mmodule/java/nio/charset/ |
D | CharsetEncoder.annotated.java | 30 package java.nio.charset; 35 import java.nio.charset.CoderMalfunctionError; 40 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() 43 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() 45 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() 47 public final java.nio.charset.Charset charset() { throw new RuntimeException("Stub!"); } in charset() method in CharsetEncoder 51 public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) { throw new Runtime… in replaceWith() 57 public java.nio.charset.CodingErrorAction malformedInputAction() { throw new RuntimeException("Stub… in malformedInputAction() 59 public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction ne… in onMalformedInput() 61 protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { throw new Runti… in implOnMalformedInput() [all …]
|
/libcore/ojluni/src/main/resources/sun/nio/cs/ |
D | standard-charsets | 30 # specification of java.nio.charset.Charset. Instead these 33 # which is initialized at startup time by java.nio.charset.Charset, 42 charset US-ASCII US_ASCII 62 charset UTF-8 UTF_8 66 charset UTF-16 UTF_16 72 charset UTF-16BE UTF_16BE 78 charset UTF-16LE UTF_16LE 83 charset x-UTF-16LE-BOM UTF_16LE_BOM 86 charset UTF-32 UTF_32 90 charset UTF-32LE UTF_32LE [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | Charset_TestGenerator.java | 16 package libcore.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 22 import java.nio.charset.CharsetDecoder; 23 import java.nio.charset.CharsetEncoder; 24 import java.nio.charset.CodingErrorAction; 31 Charset charset; field in Charset_TestGenerator 217 static void genEncoded (Charset charset, CharBuffer cb) { in genEncoded() argument 218 System.out.println(charset.name()); in genEncoded() 220 CharsetEncoder encoder = charset.newEncoder(); in genEncoded() [all …]
|
D | StandardCharsetsEncoderTest.java | 17 package libcore.java.nio.charset; 33 import java.nio.charset.Charset; 34 import java.nio.charset.CharsetEncoder; 35 import java.nio.charset.CodingErrorAction; 36 import java.nio.charset.StandardCharsets; 79 public void testCharset(Charset charset) throws Exception { in testCharset() argument 80 String fileName = createFileName(charset); in testCharset() 81 CharsetEncoder encoder = charset.newEncoder(); in testCharset() 130 for (Charset charset : getStandardCharsets()) { in main() 131 CharsetEncoder coreEncoder = charset.newEncoder(); in main() [all …]
|
D | OldCharset_AbstractTest.java | 17 package libcore.java.nio.charset; 21 import java.nio.charset.CharacterCodingException; 22 import java.nio.charset.Charset; 23 import java.nio.charset.CharsetDecoder; 24 import java.nio.charset.CharsetEncoder; 25 import java.nio.charset.CodingErrorAction; 39 static private Charset charset; field in OldCharset_AbstractTest 66 charset = charset.forName(charsetName); in setUp() 67 decoder = charset.newDecoder(); in setUp() 68 encoder = charset.newEncoder(); in setUp() [all …]
|
D | CharsetEncoderTest.java | 17 package libcore.java.nio.charset; 21 import java.nio.charset.Charset; 22 import java.nio.charset.CharsetEncoder; 23 import java.nio.charset.CharsetDecoder; 24 import java.nio.charset.CoderResult; 25 import java.nio.charset.CodingErrorAction; 26 import java.nio.charset.StandardCharsets; 42 private void assertReplacementBytesForEncoder(String charset, byte[] bytes) { in assertReplacementBytesForEncoder() argument 43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder() 175 public boolean contains(Charset charset) { in contains() argument
|
D | CharsetDecoderTest.java | 17 package libcore.java.nio.charset; 21 import java.nio.charset.CharacterCodingException; 22 import java.nio.charset.Charset; 23 import java.nio.charset.CharsetDecoder; 24 import java.nio.charset.CharsetEncoder; 25 import java.nio.charset.CoderResult; 26 import java.nio.charset.CodingErrorAction;
|
D | SettableCharsetProvider.java | 16 package libcore.java.nio.charset; 18 import java.nio.charset.Charset; 19 import java.nio.charset.spi.CharsetProvider;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | ISOCharsetEncoderTest.java | 16 package org.apache.harmony.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 22 import java.nio.charset.CoderResult; 23 import java.nio.charset.CodingErrorAction; 24 import java.nio.charset.MalformedInputException; 25 import java.nio.charset.UnmappableCharacterException;
|
D | CharsetDecoder2Test.java | 17 package org.apache.harmony.tests.java.nio.charset; 23 import java.nio.charset.CharacterCodingException; 24 import java.nio.charset.Charset; 25 import java.nio.charset.CharsetDecoder; 26 import java.nio.charset.CharsetEncoder; 27 import java.nio.charset.CoderMalfunctionError; 28 import java.nio.charset.CoderResult; 29 import java.nio.charset.CodingErrorAction; 30 import java.nio.charset.MalformedInputException; 153 static class MockMalfunctionDecoder extends java.nio.charset.CharsetDecoder { [all …]
|
D | UTF16CharsetDecoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 22 import java.nio.charset.CharacterCodingException; 23 import java.nio.charset.Charset; 24 import java.nio.charset.CoderResult; 25 import java.nio.charset.CodingErrorAction;
|
D | CharsetEncoder2Test.java | 17 package org.apache.harmony.tests.java.nio.charset; 23 import java.nio.charset.Charset; 24 import java.nio.charset.CharsetDecoder; 25 import java.nio.charset.CharsetEncoder; 26 import java.nio.charset.CoderMalfunctionError; 27 import java.nio.charset.CoderResult; 64 assertNull(ech.charset()); in test_ConstructorLjava_nio_charset_CharsetNull() 143 static class MockMalfunctionEncoder extends java.nio.charset.CharsetEncoder {
|
D | UTF16CharsetEncoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 21 import java.nio.charset.CharacterCodingException; 22 import java.nio.charset.Charset; 23 import java.nio.charset.CharsetDecoder;
|
D | GBCharsetEncoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset;
|
D | UTFCharsetEncoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset;
|
D | UTF16LECharsetEncoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset;
|
D | UTF16BECharsetEncoderTest.java | 17 package org.apache.harmony.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset;
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 30 import java.nio.charset.Charset; 31 import java.nio.charset.StandardCharsets; 32 import java.nio.charset.CharsetDecoder; 33 import java.nio.charset.CharsetEncoder; 34 import java.nio.charset.CoderResult; 35 import java.nio.charset.CodingErrorAction; 138 static ZipCoder get(Charset charset) { in get() argument 139 return new ZipCoder(charset); in get()
|
/libcore/ojluni/src/main/java/java/io/ |
D | PrintStream.java | 31 import java.nio.charset.Charset; 32 import java.nio.charset.IllegalCharsetNameException; 33 import java.nio.charset.UnsupportedCharsetException; 74 private Charset charset; field in PrintStream 113 private PrintStream(boolean autoFlush, OutputStream out, Charset charset) { in PrintStream() argument 119 this.charset = charset; in PrintStream() 127 private PrintStream(boolean autoFlush, Charset charset, OutputStream out) in PrintStream() argument 130 this(autoFlush, out, charset); in PrintStream() 358 charOut = charset != null ? new OutputStreamWriter(this, charset) : in getTextOut()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLEncoder.java | 34 import java.nio.charset.Charset; 35 import java.nio.charset.IllegalCharsetNameException; 36 import java.nio.charset.UnsupportedCharsetException ; 205 Charset charset; in encode() local 212 charset = Charset.forName(enc); in encode() 269 byte[] ba = str.getBytes(charset); in encode()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | ThreadLocalCoders.java | 29 import java.nio.charset.*; 91 return (((CharsetDecoder)ob).charset().name().equals(name)); 93 return ((CharsetDecoder)ob).charset().equals(name); 115 return (((CharsetEncoder)ob).charset().name().equals(name)); 117 return ((CharsetEncoder)ob).charset().equals(name);
|
/libcore/libart/src/main/java/java/lang/ |
D | StringFactory.java | 25 import java.nio.charset.Charset; 69 … public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { in newStringFromBytes() argument 78 String canonicalCharsetName = charset.name(); in newStringFromBytes() 90 CharBuffer cb = charset.decode(ByteBuffer.wrap(data, offset, byteCount)); in newStringFromBytes() 100 public static String newStringFromBytes(byte[] data, Charset charset) { in newStringFromBytes() argument 101 return newStringFromBytes(data, 0, data.length, charset); in newStringFromBytes()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 29 package java.nio.charset; 37 import java.nio.charset.CoderMalfunctionError; // javadoc 140 private final Charset charset; field in CharsetDecoder 192 this.charset = cs; in CharsetDecoder() 245 public final Charset charset() { in charset() method in CharsetDecoder 246 return charset; in charset()
|