Home
last modified time | relevance | path

Searched refs:CharsetEncoder (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharsetEncoder.java34 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/
DCharsetEncoder2Test.java25 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()
DASCIICharsetEncoderTest.java24 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()
DCharsetDecoder2Test.java26 import java.nio.charset.CharsetEncoder;
145 public CharsetEncoder newEncoder() { in newEncoder()
167 static class MockMalfunctionEncoder extends java.nio.charset.CharsetEncoder {
DCharsetEncoderTest.java23 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()
DCharsetTest.java24 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/
DCharsetEncoderTest.java22 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();
DStandardCharsetsEncoderTest.java34 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()
DOldCharsetEncoderDecoderBufferTest.java23 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()
DCharset_TestGenerator.java23 import java.nio.charset.CharsetEncoder;
33 CharsetEncoder encoder;
220 CharsetEncoder encoder = charset.newEncoder(); in genEncoded()
DOldCharset_AbstractTest.java24 import java.nio.charset.CharsetEncoder;
41 static CharsetEncoder encoder;
214 private static boolean encodesToNothing(CharsetEncoder encoder, char[] codeChars) in encodesToNothing()
DCharsetDecoderTest.java24 import java.nio.charset.CharsetEncoder;
87 CharsetEncoder encoder = Charset.forName(charsetName).newEncoder(); in encode()
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java115 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()
DStreamEncoder.java73 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/
DCharsetEncoder.java138 public abstract class CharsetEncoder { class
187 CharsetEncoder(Charset cs, in CharsetEncoder() method in CharsetEncoder
201 CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, in CharsetEncoder() method in CharsetEncoder
248 protected CharsetEncoder(Charset cs, in CharsetEncoder() method in CharsetEncoder
306 public final CharsetEncoder replaceWith(byte[] newReplacement) { in replaceWith()
400 public final CharsetEncoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput()
442 public final CharsetEncoder onUnmappableCharacter(CodingErrorAction in onUnmappableCharacter()
727 public final CharsetEncoder reset() { in reset()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java33 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/
DOutputStreamWriter.java29 import java.nio.charset.CharsetEncoder;
148 public OutputStreamWriter(OutputStream out, CharsetEncoder enc) { in OutputStreamWriter()
/libcore/luni/src/main/java/libcore/icu/
DNativeConverter.java16 import java.nio.charset.CharsetEncoder;
72 public static void setCallbackEncode(long converterHandle, CharsetEncoder encoder) { in setCallbackEncode()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetICU.java29 public CharsetEncoder newEncoder() { in newEncoder()
/libcore/ojluni/annotations/hiddenapi/sun/nio/cs/
DThreadLocalCoders.java42 public static java.nio.charset.CharsetEncoder encoderFor(java.lang.Object name) { in encoderFor()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java46 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/
DOldOutputStreamWriterTest.java27 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/
DLibcoreIoDerivedBase64Test.java24 import java.nio.charset.CharsetEncoder;
243 CharsetEncoder encoder = StandardCharsets.US_ASCII.newEncoder(); in asciiToBytes()
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java39 import java.nio.charset.CharsetEncoder;
568 final CharsetEncoder enc,
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamWriterTest.java32 import java.nio.charset.CharsetEncoder;
375 CharsetEncoder enc = cs.newEncoder(); in testOutputStreamWriterOutputStreamCharsetEncoder()
383 writer = new OutputStreamWriter(out, (CharsetEncoder) null); in testOutputStreamWriterOutputStreamCharsetEncoder()

12