Liferay 6.1.2-ce-ga3

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

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

public class UnsyncCharArrayReader
extends Reader


Field Summary
protected  char[] buffer
           
protected  int capacity
           
protected  int index
           
protected  int markIndex
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnsyncCharArrayReader(char[] chars)
           
UnsyncCharArrayReader(char[] chars, int offset, int length)
           
 
Method Summary
 void close()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] chars)
           
 int read(char[] chars, int offset, int length)
           
 int read(CharBuffer charBuffer)
           
 boolean ready()
           
 void reset()
           
 long skip(long skip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected char[] buffer

capacity

protected int capacity

index

protected int index

markIndex

protected int markIndex
Constructor Detail

UnsyncCharArrayReader

public UnsyncCharArrayReader(char[] chars)

UnsyncCharArrayReader

public UnsyncCharArrayReader(char[] chars,
                             int offset,
                             int length)
Method Detail

close

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

mark

public void mark(int readAheadLimit)
          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

read

public int read(CharBuffer charBuffer)
         throws IOException
Specified by:
read in interface Readable
Overrides:
read in class Reader
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

Liferay 6.1.2-ce-ga3