public class CRLFInputStream
extends java.io.InputStream
Constructor and Description |
---|
CRLFInputStream(java.io.InputStream in)
Creates the CRLFInputStream
|
CRLFInputStream(java.io.InputStream in,
java.nio.charset.Charset charset)
Creates the CRLFInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
read() |
java.lang.String |
readLine()
Reads a line from the underlying inputstream.
|
void |
switchToCharset(java.lang.String charsetName) |
public CRLFInputStream(java.io.InputStream in)
in
- The input stream underlying this input streampublic CRLFInputStream(java.io.InputStream in, java.nio.charset.Charset charset)
in
- The input stream underlying this input streamcharset
- The charset that was used for character encoding when writing the filepublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
- -public void switchToCharset(java.lang.String charsetName)
charsetName
- -