org.codehaus.groovy.grails.web.util
Class StreamCharBuffer.StringChunk

java.lang.Object
  extended by 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

Constructor Summary
StreamCharBuffer.StringChunk(String str, int off, int len)
           
 
Method Summary
 int getUnreadChars()
           
 int read(char[] ch, int off, int len)
           
 int writeTo(Writer target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamCharBuffer.StringChunk

public StreamCharBuffer.StringChunk(String str,
                                    int off,
                                    int len)
Method Detail

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