public interface SitemeshBuffer
Modifier and Type | Method and Description |
---|---|
int |
getBufferLength()
Get the length of the buffered content.
|
char[] |
getCharArray()
Get the char array for this buffer.
|
int |
getTotalLength()
Get the total length of the buffered content, including the length of any chained buffers.
|
int |
getTotalLength(int start,
int length)
Get the total length of the buffered content, including chained buffers from start to length
|
boolean |
hasFragments()
Whether the buffer has fragments or not
|
void |
writeTo(java.io.Writer writer,
int start,
int length)
Write this buffer, and any chained sub buffers in the given range, out to the given writer
|
char[] getCharArray()
int getBufferLength()
int getTotalLength()
int getTotalLength(int start, int length)
start
- Where to start counting the length fromlength
- Where to finishvoid writeTo(java.io.Writer writer, int start, int length) throws java.io.IOException
start
- The position to start writing fromlength
- The length to writewriter
- The writer to write tojava.io.IOException
- If an error occurredboolean hasFragments()