Home
last modified time | relevance | path

Searched refs:CodingErrorAction (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCodingErrorActionTest.java19 import java.nio.charset.CodingErrorAction;
46 assertNotNull(CodingErrorAction.IGNORE); in testIGNORE()
47 assertNotNull(CodingErrorAction.REPLACE); in testIGNORE()
48 assertNotNull(CodingErrorAction.REPORT); in testIGNORE()
49 assertNotSame(CodingErrorAction.IGNORE, CodingErrorAction.REPLACE); in testIGNORE()
50 assertNotSame(CodingErrorAction.IGNORE, CodingErrorAction.REPORT); in testIGNORE()
51 assertNotSame(CodingErrorAction.REPLACE, CodingErrorAction.REPORT); in testIGNORE()
58 assertTrue(CodingErrorAction.IGNORE.toString().indexOf("IGNORE") != -1); in testToString()
59 assertTrue(CodingErrorAction.REPLACE.toString().indexOf("REPLACE") != -1); in testToString()
60 assertTrue(CodingErrorAction.REPORT.toString().indexOf("REPORT") != -1); in testToString()
DCharsetDecoderTest.java25 import java.nio.charset.CodingErrorAction;
82 assertSame(CodingErrorAction.REPORT, decoder.malformedInputAction()); in testDefaultValues()
83 assertSame(CodingErrorAction.REPORT, decoder in testDefaultValues()
148 assertSame(CodingErrorAction.REPORT, decoder.malformedInputAction()); in testOnMalformedInput()
154 decoder.onMalformedInput(CodingErrorAction.IGNORE); in testOnMalformedInput()
155 assertSame(CodingErrorAction.IGNORE, decoder.malformedInputAction()); in testOnMalformedInput()
162 assertSame(CodingErrorAction.REPORT, decoder in testOnUnmappableCharacter()
169 decoder.onUnmappableCharacter(CodingErrorAction.IGNORE); in testOnUnmappableCharacter()
170 assertSame(CodingErrorAction.IGNORE, decoder in testOnUnmappableCharacter()
241 decoder.onMalformedInput(CodingErrorAction.REPORT); in testDecodeByteBufferException()
[all …]
DCharsetDecoder2Test.java29 import java.nio.charset.CodingErrorAction;
92 decoder2.onMalformedInput(CodingErrorAction.REPORT); in test_decode()
93 decoder2.onUnmappableCharacter(CodingErrorAction.REPORT); in test_decode()
110 cs1.newDecoder().onMalformedInput(CodingErrorAction.REPLACE) in test_decodeLjava_nio_ByteBuffer()
111 .onUnmappableCharacter(CodingErrorAction.REPLACE).decode( in test_decodeLjava_nio_ByteBuffer()
186 decoder.onMalformedInput(CodingErrorAction.REPLACE); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow()
251 decoder.onMalformedInput(CodingErrorAction.REPORT); in testInvalidDecoding()
252 decoder.onUnmappableCharacter(CodingErrorAction.REPORT); in testInvalidDecoding()
DCharsetEncoderTest.java25 import java.nio.charset.CodingErrorAction;
90 assertEquals(CodingErrorAction.REPORT, encoder.malformedInputAction()); in testDefaultValue()
91 assertEquals(CodingErrorAction.REPORT, encoder.unmappableCharacterAction()); in testDefaultValue()
92 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testDefaultValue()
93 assertSame(encoder, encoder.onUnmappableCharacter(CodingErrorAction.IGNORE)); in testDefaultValue()
111 assertEquals(CodingErrorAction.REPORT, encoder.malformedInputAction()); in testCharsetEncoderCharsetfloatfloat()
112 assertEquals(CodingErrorAction.REPORT, encoder in testCharsetEncoderCharsetfloatfloat()
116 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testCharsetEncoderCharsetfloatfloat()
118 .onUnmappableCharacter(CodingErrorAction.IGNORE)); in testCharsetEncoderCharsetfloatfloat()
588 encoder.onMalformedInput(CodingErrorAction.REPLACE); in testEncodeCharBuffer()
[all …]
DISOCharsetEncoderTest.java23 import java.nio.charset.CodingErrorAction;
84 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
85 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in testMultiStepEncode()
DUTF16CharsetDecoderTest.java25 import java.nio.charset.CodingErrorAction;
DASCIICharsetEncoderTest.java26 import java.nio.charset.CodingErrorAction;
77 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
78 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in testMultiStepEncode()
/libcore/ojluni/src/main/java/java/nio/charset/
DCodingErrorAction.java43 public class CodingErrorAction { class
47 private CodingErrorAction(String name) { in CodingErrorAction() method in CodingErrorAction
55 public static final CodingErrorAction IGNORE
56 = new CodingErrorAction("IGNORE");
63 public static final CodingErrorAction REPLACE
64 = new CodingErrorAction("REPLACE");
72 public static final CodingErrorAction REPORT
73 = new CodingErrorAction("REPORT");
DCharsetDecoder.java145 private CodingErrorAction malformedInputAction
146 = CodingErrorAction.REPORT;
147 private CodingErrorAction unmappableCharacterAction
148 = CodingErrorAction.REPORT;
366 public CodingErrorAction malformedInputAction() { in malformedInputAction()
383 public final CharsetDecoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput()
400 protected void implOnMalformedInput(CodingErrorAction newAction) { } in implOnMalformedInput()
408 public CodingErrorAction unmappableCharacterAction() { in unmappableCharacterAction()
425 public final CharsetDecoder onUnmappableCharacter(CodingErrorAction in onUnmappableCharacter()
444 protected void implOnUnmappableCharacter(CodingErrorAction newAction) { } in implOnUnmappableCharacter()
[all …]
DCharset.java854 .onMalformedInput(CodingErrorAction.REPLACE)
855 .onUnmappableCharacter(CodingErrorAction.REPLACE)
890 .onMalformedInput(CodingErrorAction.REPLACE)
891 .onUnmappableCharacter(CodingErrorAction.REPLACE)
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharsetEncoder.java78 public java.nio.charset.CodingErrorAction malformedInputAction() { in malformedInputAction()
83 java.nio.charset.CodingErrorAction newAction) { in onMalformedInput()
87 protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { in implOnMalformedInput()
91 public java.nio.charset.CodingErrorAction unmappableCharacterAction() { in unmappableCharacterAction()
96 java.nio.charset.CodingErrorAction newAction) { in onUnmappableCharacter()
100 protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { in implOnUnmappableCharacter()
180 private java.nio.charset.CodingErrorAction malformedInputAction;
194 private java.nio.charset.CodingErrorAction unmappableCharacterAction;
/libcore/ojluni/annotations/mmodule/java/nio/charset/
DCharsetEncoder.annotated.java57 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()
63 public java.nio.charset.CodingErrorAction unmappableCharacterAction() { throw new RuntimeException(… in unmappableCharacterAction()
65 …a.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) {… in onUnmappableCharacter()
67 protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { throw new … in implOnUnmappableCharacter()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_SingleByteAbstractTest.java21 import java.nio.charset.CodingErrorAction;
51 decoder.onMalformedInput(CodingErrorAction.REPLACE); in dumpDecoded()
67 decoder.onMalformedInput(CodingErrorAction.REPLACE); in decodeReplace()
68 decoder.onUnmappableCharacter(CodingErrorAction.REPLACE); in decodeReplace()
107 encoder.onUnmappableCharacter(CodingErrorAction.REPLACE); in test_Encode()
DOldCharset_AbstractTest.java25 import java.nio.charset.CodingErrorAction;
116 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in test_dumpEncoded()
130 decoder.onMalformedInput(CodingErrorAction.REPORT); in decode()
143 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in test_Encode()
153 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in NNtest_CodecDynamicIndividuals()
154 decoder.onMalformedInput(CodingErrorAction.REPORT); in NNtest_CodecDynamicIndividuals()
202 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in test_CodecDynamic()
207 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_CodecDynamic()
DCharsetEncoderTest.java25 import java.nio.charset.CodingErrorAction;
34 e.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith()
35 e.onUnmappableCharacter(CodingErrorAction.REPLACE); in test_replaceWith()
92 testCharsetEncoderSplitSurrogates(CodingErrorAction.IGNORE); in testCharsetEncoderSplitSurrogates_IGNORE()
96 testCharsetEncoderSplitSurrogates(CodingErrorAction.REPORT); in testCharsetEncoderSplitSurrogates_REPORT()
100 testCharsetEncoderSplitSurrogates(CodingErrorAction.REPLACE); in testCharsetEncoderSplitSurrogates_REPLACE()
103 private void testCharsetEncoderSplitSurrogates(CodingErrorAction cea) throws Exception { in testCharsetEncoderSplitSurrogates()
DCharsetDecoderTest.java26 import java.nio.charset.CodingErrorAction;
33 d.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith()
34 d.onUnmappableCharacter(CodingErrorAction.REPLACE); in test_replaceWith()
DStandardCharsetsEncoderTest.java35 import java.nio.charset.CodingErrorAction;
142 encoder.onMalformedInput(CodingErrorAction.IGNORE); in dumpEncodings()
143 encoder.onUnmappableCharacter(CodingErrorAction.IGNORE); in dumpEncodings()
DCharset_TestGenerator.java24 import java.nio.charset.CodingErrorAction;
221 encoder.onUnmappableCharacter(CodingErrorAction.REPLACE); in genEncoded()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java35 import java.nio.charset.CodingErrorAction;
145 .onMalformedInput(CodingErrorAction.REPORT) in decoder()
146 .onUnmappableCharacter(CodingErrorAction.REPORT); in decoder()
154 .onMalformedInput(CodingErrorAction.REPORT) in encoder()
155 .onUnmappableCharacter(CodingErrorAction.REPORT); in encoder()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSNIHostName.java30 import java.nio.charset.CodingErrorAction;
172 .onMalformedInput(CodingErrorAction.REPORT) in SNIHostName()
173 .onUnmappableCharacter(CodingErrorAction.REPORT); in SNIHostName()
/libcore/luni/src/test/java/libcore/java/util/
DLibcoreIoDerivedBase64Test.java25 import java.nio.charset.CodingErrorAction;
225 decoder.onMalformedInput(CodingErrorAction.REPORT); in bytesToAscii()
226 decoder.onUnmappableCharacter(CodingErrorAction.REPORT); in bytesToAscii()
244 encoder.onMalformedInput(CodingErrorAction.REPORT); in asciiToBytes()
245 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in asciiToBytes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java31 import java.nio.charset.CodingErrorAction;
382 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_read_1()
393 decoder2.onMalformedInput(CodingErrorAction.IGNORE); in test_read_1()
399 decoder3.onMalformedInput(CodingErrorAction.REPLACE); in test_read_1()
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamDecoder.java236 .onMalformedInput(CodingErrorAction.REPLACE) in StreamDecoder()
237 .onUnmappableCharacter(CodingErrorAction.REPLACE)); in StreamDecoder()
DStreamEncoder.java177 .onMalformedInput(CodingErrorAction.REPLACE) in StreamEncoder()
178 .onUnmappableCharacter(CodingErrorAction.REPLACE)); in StreamEncoder()
/libcore/ojluni/src/main/java/sun/net/www/
DParseUtil.java41 import java.nio.charset.CodingErrorAction;
182 .onMalformedInput(CodingErrorAction.REPORT) in decode()
183 .onUnmappableCharacter(CodingErrorAction.REPORT); in decode()

12