org.codehaus.groovy.grails.web.util
Class StreamCharBuffer.StringChunk
java.lang.Object
org.codehaus.groovy.grails.web.util.StreamCharBuffer.StringChunk
- Enclosing class:
- StreamCharBuffer
static final class StreamCharBuffer.StringChunk
- extends Object
StringChunk is a wrapper for java.lang.String.
It also keeps state of the read offset and the number of unread characters.
There's methods that StringChunkGroup uses for reading data.
- Author:
- Lari Hotari
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCharBuffer.StringChunk
public StreamCharBuffer.StringChunk(String str,
int off,
int len)
getUnreadChars
public int getUnreadChars()
read
public int read(char[] ch,
int off,
int len)
writeTo
public int writeTo(Writer target)
throws IOException
- Throws:
IOException
Copyright (c) 2005-2009 The Grails project