Home
last modified time | relevance | path

Searched refs:newEncoder (Results 1 – 25 of 26) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DASCIICharsetEncoderTest.java34 private final CharsetEncoder encoder = cs.newEncoder();
152 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Reset() local
154 newEncoder.reset(); in testInternalState_Reset()
157 newEncoder.reset(); in testInternalState_Reset()
163 newEncoder.encode(in, out, false); in testInternalState_Reset()
164 newEncoder.reset(); in testInternalState_Reset()
171 newEncoder.encode(in, out, true); in testInternalState_Reset()
172 newEncoder.reset(); in testInternalState_Reset()
178 newEncoder.encode(in, out, true); in testInternalState_Reset()
179 newEncoder.flush(out); in testInternalState_Reset()
[all …]
DISOCharsetTest.java42 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal()
43 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
DASCCharsetTest.java43 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal()
44 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
DCharsetEncoder2Test.java135 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetEncoder2Test.MockMalfunctionCharset
159 CharsetEncoder encoder = utf8.newEncoder(); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()
DCharsetTest.java51 CharsetEncoder enc = cs.newEncoder(); in test_allAvailableCharsets()
627 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg");
660 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg");
692 byte[] replacement = c1.newEncoder().replacement();
732 public CharsetEncoder newEncoder() {
750 public CharsetEncoder newEncoder() {
DCharsetDecoder2Test.java145 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetDecoder2Test.MockMalfunctionCharset
DCharsetEncoderTest.java66 encoder = cs.newEncoder(); in setUp()
587 CharsetEncoder encoder = cs.newEncoder(); in testEncodeCharBuffer()
1124 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetEncoderTest.MockCharset
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetEncoderTest.java33 CharsetEncoder e = ascii.newEncoder(); in test_replaceWith()
43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder()
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() method in CharsetEncoderTest.MockCharset
205 CharsetEncoder e = MockCharset.INSTANCE.newEncoder();
222 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();
DOldCharsetEncoderDecoderBufferTest.java96 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderOutputBuffer()
128 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderInputBuffer()
DStandardCharsetsEncoderTest.java81 CharsetEncoder encoder = charset.newEncoder(); in testCharset()
131 CharsetEncoder coreEncoder = charset.newEncoder(); in main()
DCharset_TestGenerator.java220 CharsetEncoder encoder = charset.newEncoder(); in genEncoded()
DCharsetDecoderTest.java87 CharsetEncoder encoder = Charset.forName(charsetName).newEncoder(); in encode()
DOldCharset_AbstractTest.java68 encoder = charset.newEncoder(); in setUp()
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java122 return Charset.forName((String)name).newEncoder();
124 return ((Charset)name).newEncoder();
DStreamEncoder.java176 cs.newEncoder() in StreamEncoder()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java380 .newEncoder(), -1); in testnewWriterCharsetError()
509 … Writer testWriter = Channels.newWriter(null, Charset.forName(CODE_SET).newEncoder(), -1); in testNewWriterWritableByteChannelString_internalBufZero()
531 CODE_SET).newEncoder(), //$NON-NLS-1$ in testNewWriterWritableByteChannelString_InputNull()
554 CODE_SET).newEncoder(), //$NON-NLS-1$ in testNewWriterWritableByteChannelString()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java153 enc = cs.newEncoder() in encoder()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java118 public abstract java.nio.charset.CharsetEncoder newEncoder(); in newEncoder() method in Charset
/libcore/luni/src/test/java/libcore/java/util/
DLibcoreIoDerivedBase64Test.java243 CharsetEncoder encoder = StandardCharsets.US_ASCII.newEncoder(); in asciiToBytes()
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java608 return newWriter(ch, Charset.forName(csName).newEncoder(), -1);
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java807 public abstract CharsetEncoder newEncoder();
/libcore/luni/src/test/java/libcore/java/io/
DOldOutputStreamWriterTest.java153 CharsetEncoder enc = cs.newEncoder(); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder()
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2859 CharsetEncoder encoder = cs.newEncoder();
3350 CharsetEncoder encoder = cs.newEncoder();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamWriterTest.java375 CharsetEncoder enc = cs.newEncoder(); in testOutputStreamWriterOutputStreamCharsetEncoder()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java123 ce = Util.jnuEncoding().newEncoder() in encode()

12