Package org.apache.catalina.connector
Class CoyoteReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.apache.catalina.connector.CoyoteReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class CoyoteReader extends java.io.BufferedReader
Coyote implementation of the buffered reader.- Author:
- Remy Maucherat
-
-
Field Summary
Fields Modifier and Type Field Description protected InputBuffer
ib
protected char[]
lineBuffer
-
Constructor Summary
Constructors Constructor Description CoyoteReader(InputBuffer ib)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
clone()
Prevent cloning the facade.void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cbuf)
int
read(char[] cbuf, int off, int len)
java.lang.String
readLine()
boolean
ready()
void
reset()
long
skip(long n)
-
-
-
Field Detail
-
ib
protected InputBuffer ib
-
lineBuffer
protected char[] lineBuffer
-
-
Constructor Detail
-
CoyoteReader
public CoyoteReader(InputBuffer ib)
-
-
Method Detail
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
Prevent cloning the facade.- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf) throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
ready
public boolean ready() throws java.io.IOException
- Overrides:
ready
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.BufferedReader
-
mark
public void mark(int readAheadLimit) throws java.io.IOException
- Overrides:
mark
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException
- Overrides:
readLine
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
-