org.apache.myfaces.shared_tomahawk.util
Class StreamCharBuffer.StreamCharBufferReader

java.lang.Object
  extended by java.io.Reader
      extended by org.apache.myfaces.shared_tomahawk.util.StreamCharBuffer.StreamCharBufferReader
All Implemented Interfaces:
Closeable, Readable
Enclosing class:
StreamCharBuffer

public final class StreamCharBuffer.StreamCharBufferReader
extends Reader

This is the java.io.Reader implementation for StreamCharBuffer

Author:
Lari Hotari, Sagire Software Oy

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
StreamCharBuffer.StreamCharBufferReader(boolean removeAfterReading)
           
 
Method Summary
 void close()
           
 StreamCharBuffer getBuffer()
           
 int getReadLenLimit(int askedAmount)
           
 int read(char[] b, int off, int len)
           
 boolean ready()
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamCharBuffer.StreamCharBufferReader

public StreamCharBuffer.StreamCharBufferReader(boolean removeAfterReading)
Method Detail

ready

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

read

public final int read(char[] b,
                      int off,
                      int len)
               throws IOException
Specified by:
read in class Reader
Throws:
IOException

close

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

getBuffer

public final StreamCharBuffer getBuffer()

getReadLenLimit

public int getReadLenLimit(int askedAmount)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.