com.sun.grizzly.tcp.http11
Class GrizzlyReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by com.sun.grizzly.tcp.http11.GrizzlyReader
All Implemented Interfaces:
Closeable, Readable

public class GrizzlyReader
extends BufferedReader

Coyote implementation of the buffred reader.

Author:
Remy Maucherat

Field Summary
protected  GrizzlyInputBuffer ib
           
protected  char[] lineBuffer
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
GrizzlyReader(GrizzlyInputBuffer ib)
           
 
Method Summary
protected  Object clone()
          Prevent cloning the facade.
 void close()
           
 GrizzlyInputBuffer getInputBuffer()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int off, int len)
           
 String readLine()
           
 boolean ready()
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ib

protected GrizzlyInputBuffer ib

lineBuffer

protected char[] lineBuffer
Constructor Detail

GrizzlyReader

public GrizzlyReader(GrizzlyInputBuffer ib)
Method Detail

clone

protected Object clone()
                throws CloneNotSupportedException
Prevent cloning the facade.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class BufferedReader
Throws:
IOException

read

public int read()
         throws IOException
Overrides:
read in class BufferedReader
Throws:
IOException

read

public int read(char[] cbuf)
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Overrides:
read in class BufferedReader
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class BufferedReader
Throws:
IOException

ready

public boolean ready()
              throws IOException
Overrides:
ready in class BufferedReader
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class BufferedReader

mark

public void mark(int readAheadLimit)
          throws IOException
Overrides:
mark in class BufferedReader
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class BufferedReader
Throws:
IOException

readLine

public String readLine()
                throws IOException
Overrides:
readLine in class BufferedReader
Throws:
IOException

getInputBuffer

public GrizzlyInputBuffer getInputBuffer()


Copyright © 2013 Oracle Corporation. All Rights Reserved.