/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CodingErrorActionTest.java | 19 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()
|
D | CharsetDecoderTest.java | 25 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 …]
|
D | CharsetDecoder2Test.java | 29 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()
|
D | CharsetEncoderTest.java | 25 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 …]
|
D | ISOCharsetEncoderTest.java | 23 import java.nio.charset.CodingErrorAction; 84 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode() 85 encoder.onUnmappableCharacter(CodingErrorAction.REPORT); in testMultiStepEncode()
|
D | UTF16CharsetDecoderTest.java | 25 import java.nio.charset.CodingErrorAction;
|
D | ASCIICharsetEncoderTest.java | 26 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/ |
D | CodingErrorAction.java | 43 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");
|
D | CharsetDecoder.java | 145 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 …]
|
D | Charset.java | 854 .onMalformedInput(CodingErrorAction.REPLACE) 855 .onUnmappableCharacter(CodingErrorAction.REPLACE) 890 .onMalformedInput(CodingErrorAction.REPLACE) 891 .onUnmappableCharacter(CodingErrorAction.REPLACE)
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 78 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/ |
D | CharsetEncoder.annotated.java | 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() 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/ |
D | OldCharset_SingleByteAbstractTest.java | 21 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()
|
D | OldCharset_AbstractTest.java | 25 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()
|
D | CharsetEncoderTest.java | 25 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()
|
D | CharsetDecoderTest.java | 26 import java.nio.charset.CodingErrorAction; 33 d.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith() 34 d.onUnmappableCharacter(CodingErrorAction.REPLACE); in test_replaceWith()
|
D | StandardCharsetsEncoderTest.java | 35 import java.nio.charset.CodingErrorAction; 142 encoder.onMalformedInput(CodingErrorAction.IGNORE); in dumpEncodings() 143 encoder.onUnmappableCharacter(CodingErrorAction.IGNORE); in dumpEncodings()
|
D | Charset_TestGenerator.java | 24 import java.nio.charset.CodingErrorAction; 221 encoder.onUnmappableCharacter(CodingErrorAction.REPLACE); in genEncoded()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 35 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/ |
D | SNIHostName.java | 30 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/ |
D | LibcoreIoDerivedBase64Test.java | 25 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/ |
D | InputStreamReaderTest.java | 31 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/ |
D | StreamDecoder.java | 236 .onMalformedInput(CodingErrorAction.REPLACE) in StreamDecoder() 237 .onUnmappableCharacter(CodingErrorAction.REPLACE)); in StreamDecoder()
|
D | StreamEncoder.java | 177 .onMalformedInput(CodingErrorAction.REPLACE) in StreamEncoder() 178 .onUnmappableCharacter(CodingErrorAction.REPLACE)); in StreamEncoder()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | ParseUtil.java | 41 import java.nio.charset.CodingErrorAction; 182 .onMalformedInput(CodingErrorAction.REPORT) in decode() 183 .onUnmappableCharacter(CodingErrorAction.REPORT); in decode()
|