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

java.lang.Object
  extended by org.codehaus.groovy.grails.web.util.StreamCharBuffer.StringChunkGroup
Enclosing class:
StreamCharBuffer

static final class StreamCharBuffer.StringChunkGroup
extends Object

StringChunkGroup is related to a certain position in the StreamCharBufferChunk. At writing time the current index of StreamCharBufferChunk is the "ownerIndex". It's like a bookmark that knows were 1 or more Strings get inserted when the buffer gets read. The contains state information for the StringChunkGroup level (like unreadBuffers, unreadChars, current StringChunk un

Author:
Lari Hotari

Constructor Summary
StreamCharBuffer.StringChunkGroup(int ownerIndex)
           
 
Method Summary
 int appendString(String str, int off, int len)
           
 int getOwnerIndex()
           
 int getUnreadChars()
           
 boolean hasUnreadChars()
           
 boolean prepareReading()
           
 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.StringChunkGroup

public StreamCharBuffer.StringChunkGroup(int ownerIndex)
Method Detail

getOwnerIndex

public int getOwnerIndex()

hasUnreadChars

public boolean hasUnreadChars()

getUnreadChars

public int getUnreadChars()

appendString

public int appendString(String str,
                        int off,
                        int len)

prepareReading

public boolean prepareReading()

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