Code example for Charset

Methods: newDecoder

0
	{ 
		 
		 
		 
		 
		return new InputStreamReader(in, body.newDecoder());
	} 
 
	public Writer getTextWriter(OutputStream out) throws IOException
	{ 
		 
		 
		return new OutputStreamWriter(out, body.newEncoder());
	} 
 
	public Reader getPermissiveTextReader(InputStream in) throws IOException
	{ 
		 
		 
		CharsetDecoder permissive = body.newDecoder();
		permissive.onMalformedInput(CodingErrorAction.REPLACE);