/libcore/ojluni/annotations/mmodule/java/nio/charset/ |
D | CharsetEncoder.annotated.java | 38 public abstract class CharsetEncoder { class 40 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() method in CharsetEncoder 43 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() method in CharsetEncoder 45 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerC… in CharsetEncoder() method in CharsetEncoder 51 public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) { throw new Runtime… in replaceWith() 59 public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction ne… in onMalformedInput() 65 public final java.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorActi… in onUnmappableCharacter() 79 public final java.nio.charset.CharsetEncoder reset() { throw new RuntimeException("Stub!"); } in reset()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 34 public abstract class CharsetEncoder { class 36 protected CharsetEncoder( in CharsetEncoder() method in CharsetEncoder 44 CharsetEncoder( in CharsetEncoder() method in CharsetEncoder 53 protected CharsetEncoder( in CharsetEncoder() method in CharsetEncoder 66 public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) { in replaceWith() 82 public final java.nio.charset.CharsetEncoder onMalformedInput( in onMalformedInput() 95 public final java.nio.charset.CharsetEncoder onUnmappableCharacter( in onUnmappableCharacter() 125 public final java.nio.charset.CharsetEncoder reset() { in reset()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoder2Test.java | 25 import java.nio.charset.CharsetEncoder; 63 CharsetEncoder ech = new MockCharsetEncoderForHarmony491(null, 1, 1); in test_ConstructorLjava_nio_charset_CharsetNull() 71 public static class MockCharsetEncoderForHarmony141 extends CharsetEncoder { 89 public static class MockCharsetEncoderForHarmony491 extends CharsetEncoder { 135 public CharsetEncoder newEncoder() { in newEncoder() 143 static class MockMalfunctionEncoder extends java.nio.charset.CharsetEncoder { 159 CharsetEncoder encoder = utf8.newEncoder(); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()
|
D | ASCIICharsetEncoderTest.java | 24 import java.nio.charset.CharsetEncoder; 34 private final CharsetEncoder encoder = cs.newEncoder(); 152 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Reset() 185 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Encoding() 242 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Encoding_END() 297 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Flushed() 362 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Encode() 409 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_from_Encode()
|
D | CharsetDecoder2Test.java | 26 import java.nio.charset.CharsetEncoder; 145 public CharsetEncoder newEncoder() { in newEncoder() 167 static class MockMalfunctionEncoder extends java.nio.charset.CharsetEncoder {
|
D | CharsetEncoderTest.java | 23 import java.nio.charset.CharsetEncoder; 48 CharsetEncoder encoder; 121 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES); in testCharsetEncoderCharsetfloatfloat() 177 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 587 CharsetEncoder encoder = cs.newEncoder(); in testEncodeCharBuffer() 1020 public static class MockCharsetEncoder extends CharsetEncoder { 1124 public CharsetEncoder newEncoder() { in newEncoder()
|
D | CharsetTest.java | 24 import java.nio.charset.CharsetEncoder; 51 CharsetEncoder enc = cs.newEncoder(); in test_allAvailableCharsets() 732 public CharsetEncoder newEncoder() { 750 public CharsetEncoder newEncoder() { 755 static class MockEncoder extends java.nio.charset.CharsetEncoder {
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 22 import java.nio.charset.CharsetEncoder; 33 CharsetEncoder e = ascii.newEncoder(); in test_replaceWith() 70 CharsetEncoder e = cs.newEncoder(); in testSurrogatePairAllAtOnce() 84 CharsetEncoder e = cs.newEncoder(); in testMalformedSurrogatePair() 119 CharsetEncoder e = cs.newEncoder(); in testCharsetEncoderSplitSurrogates() 145 CharsetEncoder e = cs.newEncoder(); in testFlushWithoutEndOfInput() 179 public CharsetEncoder newEncoder() { in newEncoder() 180 return new CharsetEncoder(INSTANCE, 1.f, 1.f) { in newEncoder() 205 CharsetEncoder e = MockCharset.INSTANCE.newEncoder(); 222 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();
|
D | StandardCharsetsEncoderTest.java | 34 import java.nio.charset.CharsetEncoder; 81 CharsetEncoder encoder = charset.newEncoder(); in testCharset() 131 CharsetEncoder coreEncoder = charset.newEncoder(); in main() 140 private static void dumpEncodings(CharsetEncoder encoder, String fileName) in dumpEncodings() 164 private static String createCodePointInfo(CharsetEncoder encoder, int codePoint) { in createCodePointInfo()
|
D | OldCharsetEncoderDecoderBufferTest.java | 23 import java.nio.charset.CharsetEncoder; 96 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderOutputBuffer() 128 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderInputBuffer()
|
D | Charset_TestGenerator.java | 23 import java.nio.charset.CharsetEncoder; 33 CharsetEncoder encoder; 220 CharsetEncoder encoder = charset.newEncoder(); in genEncoded()
|
D | OldCharset_AbstractTest.java | 24 import java.nio.charset.CharsetEncoder; 41 static CharsetEncoder encoder; 214 private static boolean encodesToNothing(CharsetEncoder encoder, char[] codeChars) in encodesToNothing()
|
D | CharsetDecoderTest.java | 24 import java.nio.charset.CharsetEncoder; 87 CharsetEncoder encoder = Charset.forName(charsetName).newEncoder(); in encode()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | ThreadLocalCoders.java | 115 return (((CharsetEncoder)ob).charset().name().equals(name)); 117 return ((CharsetEncoder)ob).charset().equals(name); 130 public static CharsetEncoder encoderFor(Object name) { in encoderFor() 131 CharsetEncoder ce = (CharsetEncoder)encoderCache.forName(name); in encoderFor()
|
D | StreamEncoder.java | 73 CharsetEncoder enc) in forOutputStreamWriter() 82 CharsetEncoder enc, in forEncoder() 162 private CharsetEncoder encoder; 181 private StreamEncoder(OutputStream out, Object lock, CharsetEncoder enc) { in StreamEncoder() 199 private StreamEncoder(WritableByteChannel ch, CharsetEncoder enc, int mbc) { in StreamEncoder()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 138 public abstract class CharsetEncoder { class 187 CharsetEncoder(Charset cs, in CharsetEncoder() method in CharsetEncoder 202 …protected CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] repl… in CharsetEncoder() method in CharsetEncoder 249 protected CharsetEncoder(Charset cs, in CharsetEncoder() method in CharsetEncoder 307 public final CharsetEncoder replaceWith(byte[] newReplacement) { in replaceWith() 401 public final CharsetEncoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput() 443 public final CharsetEncoder onUnmappableCharacter(CodingErrorAction in onUnmappableCharacter() 728 public final CharsetEncoder reset() { in reset()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 33 import java.nio.charset.CharsetEncoder; 77 CharsetEncoder ce = encoder().reset(); in getBytes() 129 private CharsetEncoder enc; 151 private CharsetEncoder encoder() { in encoder()
|
/libcore/ojluni/src/main/java/java/io/ |
D | OutputStreamWriter.java | 29 import java.nio.charset.CharsetEncoder; 148 public OutputStreamWriter(OutputStream out, CharsetEncoder enc) { in OutputStreamWriter()
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/cs/ |
D | ThreadLocalCoders.java | 40 public static java.nio.charset.CharsetEncoder encoderFor(java.lang.Object name) { in encoderFor()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 46 private static ThreadLocal<SoftReference<CharsetEncoder>> encoder = 47 new ThreadLocal<SoftReference<CharsetEncoder>>(); 120 SoftReference<CharsetEncoder> ref = encoder.get(); in encode() 121 CharsetEncoder ce = (ref != null) ? ref.get() : null; in encode() 126 encoder.set(new SoftReference<CharsetEncoder>(ce)); in encode()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldOutputStreamWriterTest.java | 27 import java.nio.charset.CharsetEncoder; 153 CharsetEncoder enc = cs.newEncoder(); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder() 163 writer = new OutputStreamWriter(out, (CharsetEncoder) null); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LibcoreIoDerivedBase64Test.java | 24 import java.nio.charset.CharsetEncoder; 243 CharsetEncoder encoder = StandardCharsets.US_ASCII.newEncoder(); in asciiToBytes()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 39 import java.nio.charset.CharsetEncoder; 568 final CharsetEncoder enc,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamWriterTest.java | 32 import java.nio.charset.CharsetEncoder; 375 CharsetEncoder enc = cs.newEncoder(); in testOutputStreamWriterOutputStreamCharsetEncoder() 383 writer = new OutputStreamWriter(out, (CharsetEncoder) null); in testOutputStreamWriterOutputStreamCharsetEncoder()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringTest.java | 29 import java.nio.charset.CharsetEncoder; 69 private static final class EvilCharsetEncoder extends CharsetEncoder { 85 public CharsetEncoder newEncoder() { return new EvilCharsetEncoder(this); }
|