Package org.apache.catalina.connector
Class CoyoteReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.apache.catalina.connector.CoyoteReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class CoyoteReader extends BufferedReader
Coyote implementation of the buffered reader.- Author:
- Remy Maucherat
-
-
Field Summary
Fields Modifier and Type Field Description protected InputBufferibprotected char[]lineBuffer
-
Constructor Summary
Constructors Constructor Description CoyoteReader(InputBuffer ib)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()Prevent cloning the facade.voidclose()voidmark(int readAheadLimit)booleanmarkSupported()intread()intread(char[] cbuf)intread(char[] cbuf, int off, int len)StringreadLine()booleanready()voidreset()longskip(long n)-
Methods inherited from class java.io.BufferedReader
lines
-
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
-
-
-
Field Detail
-
ib
protected InputBuffer ib
-
lineBuffer
protected char[] lineBuffer
-
-
Constructor Detail
-
CoyoteReader
public CoyoteReader(InputBuffer ib)
-
-
Method Detail
-
clone
protected Object clone() throws CloneNotSupportedException
Prevent cloning the facade.- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classBufferedReader- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classBufferedReader- Throws:
IOException
-
read
public int read(char[] cbuf) throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Overrides:
readin classBufferedReader- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classBufferedReader- Throws:
IOException
-
ready
public boolean ready() throws IOException- Overrides:
readyin classBufferedReader- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classBufferedReader
-
mark
public void mark(int readAheadLimit) throws IOException- Overrides:
markin classBufferedReader- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classBufferedReader- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Overrides:
readLinein classBufferedReader- Throws:
IOException
-
-