decodeText implementation is reformatted
This commit is contained in:
parent
750aab063e
commit
da1ac659fb
|
@ -39,10 +39,7 @@ public class CharacterEncodingExamples {
|
|||
CharsetDecoder charsetDecoder = charset.newDecoder();
|
||||
charsetDecoder.onMalformedInput(codingErrorAction);
|
||||
return new BufferedReader(
|
||||
new InputStreamReader(
|
||||
new ByteArrayInputStream(input.getBytes()),
|
||||
charsetDecoder))
|
||||
.readLine();
|
||||
|
||||
new InputStreamReader(
|
||||
new ByteArrayInputStream(input.getBytes()), charsetDecoder)).readLine();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue