public class CRLFTerminatedReader extends Reader
Modifier and Type | Class and Description |
---|---|
class |
CRLFTerminatedReader.MaxLineLengthException |
class |
CRLFTerminatedReader.TerminationException |
Constructor and Description |
---|
CRLFTerminatedReader(InputStream in) |
CRLFTerminatedReader(InputStream in,
String enc) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
String |
readLine()
Read a line of text which is terminated by CRLF.
|
boolean |
ready() |
public CRLFTerminatedReader(InputStream in)
public CRLFTerminatedReader(InputStream in, String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
public String readLine() throws IOException
IOException
- if an I/O error occurs.public int read() throws IOException
read
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2006–2019. All rights reserved.