jist.swans.app.io
Class BufferedReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by jist.swans.app.io.BufferedReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class BufferedReader
extends java.io.BufferedReader

A functionally identical port of java.io.BufferedReader, primarily brought into jist.swans.app.io package so that it could be dynamically rewritten.

Since:
SWANS1.0

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
BufferedReader(Reader in)
           
BufferedReader(Reader in, int sz)
           
 
Method Summary
 void close()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 java.lang.String readLine()
           
 boolean ready()
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedReader

public BufferedReader(Reader in,
                      int sz)
See Also:
BufferedReader

BufferedReader

public BufferedReader(Reader in)
See Also:
BufferedReader
Method Detail

read

public int read()
         throws java.io.IOException,
                JistAPI.Continuable
Overrides:
read in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException,
                JistAPI.Continuable
Overrides:
read in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

readLine

public java.lang.String readLine()
                          throws java.io.IOException,
                                 JistAPI.Continuable
Overrides:
readLine in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

skip

public long skip(long n)
          throws java.io.IOException,
                 JistAPI.Continuable
Overrides:
skip in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

ready

public boolean ready()
              throws java.io.IOException,
                     JistAPI.Continuable
Overrides:
ready in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

markSupported

public boolean markSupported()
                      throws JistAPI.Continuable
Overrides:
markSupported in class java.io.BufferedReader
Throws:
JistAPI.Continuable
See Also:
BufferedReader

mark

public void mark(int readAheadLimit)
          throws java.io.IOException,
                 JistAPI.Continuable
Overrides:
mark in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

reset

public void reset()
           throws java.io.IOException,
                  JistAPI.Continuable
Overrides:
reset in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader

close

public void close()
           throws java.io.IOException,
                  JistAPI.Continuable
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.BufferedReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
BufferedReader