org.codehaus.groovy.grails.web.util
Class StreamCharBuffer.AllocatedBuffer
java.lang.Object
org.codehaus.groovy.grails.web.util.StreamCharBuffer.AllocatedBuffer
- Enclosing class:
- StreamCharBuffer
final class StreamCharBuffer.AllocatedBuffer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCharBuffer.AllocatedBuffer
public StreamCharBuffer.AllocatedBuffer(int size)
charsUsed
public int charsUsed()
writeTo
public void writeTo(Writer target)
throws IOException
- Throws:
IOException
reuseBuffer
public void reuseBuffer()
chunkSize
public int chunkSize()
spaceLeft
public int spaceLeft()
write
public boolean write(char ch)
write
public final void write(char[] ch,
int off,
int len)
writeString
public final void writeString(String str,
int off,
int len)
writeStringBuilder
public final void writeStringBuilder(StringBuilder stringBuilder,
int off,
int len)
writeStringBuffer
public final void writeStringBuffer(StringBuffer stringBuffer,
int off,
int len)
createChunk
public StreamCharBuffer.CharBufferChunk createChunk()
- creates a new chunk from the content written to the buffer (used before adding StringChunk or StreamCharBufferChunk)
- Returns:
hasChunk
public boolean hasChunk()
Copyright (c) 2005-2009 The Grails project