public class BufferedRegion extends BufferedRegionAdpater
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ISavable> |
regions |
| Constructor and Description |
|---|
BufferedRegion(BufferedElement ownerElement,
IBufferedRegion parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(ISavable region)
Add a the given buffered region to the buffer.
|
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(java.lang.String content)
Append the given content to the buffer.
|
boolean |
isString()
Returns true if buffered region is a String and false otherwise.
|
void |
reset() |
void |
save(java.io.Writer writer)
Write the content of the buffer in the given writer.
|
getOwnerElement, getParent, toStringprotected final java.util.List<ISavable> regions
public BufferedRegion(BufferedElement ownerElement, IBufferedRegion parent)
public void save(java.io.Writer writer)
throws java.io.IOException
ISavablesave in interface ISavablesave in class BufferedRegionAdpaterjava.io.IOExceptionpublic void addRegion(ISavable region)
IBufferedRegionaddRegion in interface IBufferedRegionaddRegion in class BufferedRegionAdpaterpublic void append(java.lang.String content)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic void append(char c)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic boolean isString()
IBufferedRegionisString in interface IBufferedRegionisString in class BufferedRegionAdpaterpublic void append(char[] ch,
int start,
int length)
IBufferedRegionappend in interface IBufferedRegionappend in class BufferedRegionAdpaterpublic void reset()
Copyright © 2024. All Rights Reserved.