Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by java.io.Reader
      extended by com.liferay.portal.kernel.io.unsync.UnsyncStringReader
All Implemented Interfaces:
Closeable, Readable
Direct Known Subclasses:
XMLSafeReader

public class UnsyncStringReader
extends Reader

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


Field Summary
protected  int index
           
protected  int markIndex
           
protected  String string
           
protected  int stringLength
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnsyncStringReader(String string)
           
 
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

index

protected int index

markIndex

protected int markIndex

string

protected String string

stringLength

protected int stringLength
Constructor Detail

UnsyncStringReader

public UnsyncStringReader(String string)
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)
Overrides:
skip in class Reader

Liferay 6.1.2-ce-ga3