public class StringBufferedRegion extends BufferedRegionAdpater
| Constructor and Description |
|---|
StringBufferedRegion(BufferedElement ownerElement,
IBufferedRegion parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(char c)
Append the given content to the buffer.
|
void |
append(char[] ch,
int start,
int length)
Append the given char array to the buffer.
|
void |
append(String content)
Append the given content to the buffer.
|
void |
clear() |
boolean |
isString()
Returns true if buffered region is a String and false otherwise.
|
void |
save(Writer writer)
Write the content of the buffer in the given writer.
|
String |
toString() |
addRegion, getOwnerElement, getParentpublic StringBufferedRegion(BufferedElement ownerElement, IBufferedRegion parent)
public boolean isString()
IBufferedRegionisString in interface IBufferedRegionisString in class BufferedRegionAdpaterpublic void save(Writer writer) throws IOException
ISavablesave in interface ISavablesave in class BufferedRegionAdpaterIOExceptionpublic void append(String content)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic void append(char[] ch,
int start,
int length)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic void append(char c)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic String toString()
toString in class BufferedRegionAdpaterpublic void clear()
Copyright © 2015. All Rights Reserved.