Liferay 6.0.5

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 markIndex
           
protected  int markLimit
           
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()
           
 void mark(int markLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] charArray)
           
 int read(char[] charArray, int offset, int length)
           
 String readLine()
           
protected  void readUnderlyingReader()
           
 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

markIndex

protected int markIndex

markLimit

protected int markLimit

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[] charArray)
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] charArray,
                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

readUnderlyingReader

protected void readUnderlyingReader()
                             throws IOException
Throws:
IOException

Liferay 6.0.5