org.apache.myfaces.shared_tomahawk.util
Class StreamCharBuffer.StreamCharBufferReader
java.lang.Object
java.io.Reader
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCharBuffer.StreamCharBufferReader
public StreamCharBuffer.StreamCharBufferReader(boolean removeAfterReading)
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.