We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc28751 commit 795cba3Copy full SHA for 795cba3
android/guava/src/com/google/common/io/ReaderInputStream.java
@@ -74,7 +74,7 @@ final class ReaderInputStream extends InputStream {
74
75
/**
76
* Creates a new input stream that will encode the characters from {@code reader} into bytes using
77
- * the given character set. Malformed input and unmappable characters will be replaced.
+ * the given character set.
78
*
79
* @param reader input source
80
* @param charset character set used for encoding chars to bytes
@@ -85,9 +85,7 @@ final class ReaderInputStream extends InputStream {
85
this(
86
reader,
87
charset
88
- .newEncoder()
89
- .onMalformedInput(CodingErrorAction.REPLACE)
90
- .onUnmappableCharacter(CodingErrorAction.REPLACE),
+ .newEncoder(),
91
bufferSize);
92
}
93
0 commit comments