public final class CRLFTerminatedReader extends Reader
| Modifier and Type | Class and Description |
|---|---|
static class |
CRLFTerminatedReader.MaxLineLengthException |
static class |
CRLFTerminatedReader.TerminationException |
| Constructor and Description |
|---|
CRLFTerminatedReader(InputStream in)
Constructs this CRLFTerminatedReader.
|
| 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)
in - an InputStreamUnsupportedEncodingException - if the named charset is not supportedpublic String readLine() throws IOException
IOException - if an I/O error occurs.public int read()
throws IOException
read in class ReaderIOExceptionpublic boolean ready()
throws IOException
ready in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2006–2024. All rights reserved.