Home
last modified time | relevance | path

Searched refs:onMalformedInput (Results 1 – 19 of 19) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetDecoder2Test.java92 decoder2.onMalformedInput(CodingErrorAction.REPORT); in test_decode()
110 cs1.newDecoder().onMalformedInput(CodingErrorAction.REPLACE) in test_decodeLjava_nio_ByteBuffer()
186 decoder.onMalformedInput(CodingErrorAction.REPLACE); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow()
251 decoder.onMalformedInput(CodingErrorAction.REPORT); in testInvalidDecoding()
DCharsetDecoderTest.java150 decoder.onMalformedInput(null); in testOnMalformedInput()
154 decoder.onMalformedInput(CodingErrorAction.IGNORE); in testOnMalformedInput()
241 decoder.onMalformedInput(CodingErrorAction.REPORT); in testDecodeByteBufferException()
254 decoder.onMalformedInput(CodingErrorAction.IGNORE); in testDecodeByteBufferException()
260 decoder.onMalformedInput(CodingErrorAction.REPLACE); in testDecodeByteBufferException()
266 decoder.onMalformedInput(CodingErrorAction.REPORT); in testDecodeByteBufferException()
411 decoder.onMalformedInput(CodingErrorAction.REPORT); in implTestDecodeCharBufferByteBufferUnmappedException()
466 decoder.onMalformedInput(CodingErrorAction.REPORT); in implTestDecodeCharBufferByteBufferMalformedException()
473 decoder.onMalformedInput(CodingErrorAction.IGNORE); in implTestDecodeCharBufferByteBufferMalformedException()
480 decoder.onMalformedInput(CodingErrorAction.REPLACE); in implTestDecodeCharBufferByteBufferMalformedException()
DCharsetEncoderTest.java92 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testDefaultValue()
116 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testCharsetEncoderCharsetfloatfloat()
588 encoder.onMalformedInput(CodingErrorAction.REPLACE); in testEncodeCharBuffer()
631 encoder.onMalformedInput(CodingErrorAction.REPORT); in testEncodeCharBufferException()
643 encoder.onMalformedInput(CodingErrorAction.IGNORE); in testEncodeCharBufferException()
649 encoder.onMalformedInput(CodingErrorAction.REPLACE); in testEncodeCharBufferException()
656 encoder.onMalformedInput(CodingErrorAction.REPORT); in testEncodeCharBufferException()
834 encoder.onMalformedInput(CodingErrorAction.REPORT); in implTestEncodeCharBufferByteBufferbooleanException()
844 encoder.onMalformedInput(CodingErrorAction.IGNORE); in implTestEncodeCharBufferByteBufferbooleanException()
852 encoder.onMalformedInput(CodingErrorAction.REPLACE); in implTestEncodeCharBufferByteBufferbooleanException()
[all …]
DISOCharsetEncoderTest.java84 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
DASCIICharsetEncoderTest.java77 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
/libcore/luni/src/main/java/libcore/icu/
DNativeConverter.java61 …private static native void setCallbackDecode(long converterHandle, int onMalformedInput, int onUnm… in setCallbackDecode() argument
69 …private static native void setCallbackEncode(long converterHandle, int onMalformedInput, int onUnm… in setCallbackEncode() argument
/libcore/luni/src/main/native/
Dlibcore_icu_NativeConverter.cpp50 UConverterToUCallback onMalformedInput; member
57 UConverterFromUCallback onMalformedInput; member
356 ctx->onMalformedInput(ctx, args, codeUnits, length, codePoint, reason, status); in CHARSET_ENCODER_CALLBACK()
388 jint onMalformedInput, jint onUnmappableInput, jbyteArray javaReplacement) { in NativeConverter_setCallbackEncode() argument
405 callbackContext->onMalformedInput = getFromUCallback(onMalformedInput); in NativeConverter_setCallbackEncode()
460 ctx->onMalformedInput(ctx, args, codeUnits, length, reason, status); in CHARSET_DECODER_CALLBACK()
472 jint onMalformedInput, jint onUnmappableInput, jstring javaReplacement) { in NativeConverter_setCallbackDecode() argument
489 callbackContext->onMalformedInput = getToUCallback(onMalformedInput); in NativeConverter_setCallbackDecode()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetEncoder.java199 onMalformedInput(CodingErrorAction.REPORT); in canEncode()
207 onMalformedInput(originalMalformedInputAction); in canEncode()
536 decoder.onMalformedInput(CodingErrorAction.REPORT); in isLegalReplacement()
574 public final CharsetEncoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput() method in CharsetEncoder
DCharset.java443 .onMalformedInput(CodingErrorAction.REPLACE) in encode()
479 .onMalformedInput(CodingErrorAction.REPLACE) in decode()
DCharsetDecoder.java560 public final CharsetDecoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput() method in CharsetDecoder
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_SingleByteAbstractTest.java51 decoder.onMalformedInput(CodingErrorAction.REPLACE); in dumpDecoded()
67 decoder.onMalformedInput(CodingErrorAction.REPLACE); in decodeReplace()
DOldCharset_MultiByte_EUC_JP.java36 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_CodecDynamic()
DOldCharset_AbstractTest.java125 decoder.onMalformedInput(CodingErrorAction.REPORT); in decode()
149 decoder.onMalformedInput(CodingErrorAction.REPORT); in NNtest_CodecDynamicIndividuals()
178 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_CodecDynamic()
DCharsetEncoderTest.java32 e.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith()
118 e.onMalformedInput(cea); in testCharsetEncoderSplitSurrogates()
DCharsetDecoderTest.java33 d.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith()
/libcore/luni/src/main/java/java/io/
DInputStreamReader.java83 decoder = Charset.forName(charsetName).newDecoder().onMalformedInput( in InputStreamReader()
122 decoder = charset.newDecoder().onMalformedInput( in InputStreamReader()
DOutputStreamWriter.java85 encoder.onMalformedInput(CodingErrorAction.REPLACE); in OutputStreamWriter()
103 encoder.onMalformedInput(CodingErrorAction.REPLACE); in OutputStreamWriter()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java382 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/luni/src/test/java/libcore/java/lang/
DStringTest.java348 decoder.onMalformedInput(CodingErrorAction.REPLACE); in test_23831()