Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedReader

java.lang.Object
  extended by java.io.Reader
      extended by com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader
All Implemented Interfaces:
Closeable, Readable

public class UnsyncBufferedReader
extends Reader

See http://issues.liferay.com/browse/LPS-6648.


Field Summary
protected  char[] buffer
           
protected  int firstInvalidIndex
           
protected  int index
           
protected  int markLimitIndex
           
protected  Reader reader
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnsyncBufferedReader(Reader reader)
           
UnsyncBufferedReader(Reader reader, int size)
           
 
Method Summary
 void close()
           
protected  void fillInBuffer()
           
 void mark(int markLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] chars)
           
 int read(char[] chars, int offset, int length)
           
 String readLine()
           
protected  int readOnce(char[] chars, int offset, int length)
           
 boolean ready()
           
 void reset()
           
 long skip(long skip)
           
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected char[] buffer

firstInvalidIndex

protected int firstInvalidIndex

index

protected int index

markLimitIndex

protected int markLimitIndex

reader

protected Reader reader
Constructor Detail

UnsyncBufferedReader

public UnsyncBufferedReader(Reader reader)

UnsyncBufferedReader

public UnsyncBufferedReader(Reader reader,
                            int size)
Method Detail

close

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

mark

public void mark(int markLimit)
          throws IOException
Overrides:
mark in class Reader
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class Reader

read

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

read

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

read

public int read(char[] chars,
                int offset,
                int length)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

readLine

public String readLine()
                throws IOException
Throws:
IOException

ready

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

reset

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

skip

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

fillInBuffer

protected void fillInBuffer()
                     throws IOException
Throws:
IOException

readOnce

protected int readOnce(char[] chars,
                       int offset,
                       int length)
                throws IOException
Throws:
IOException

Liferay 6.1.2-ce-ga3