fr.opensagres.xdocreport.document.preprocessor.sax
Class BufferedRegion

java.lang.Object
  extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegionAdpater
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegion
All Implemented Interfaces:
IBufferedRegion, ISavable
Direct Known Subclasses:
BufferedTagElement

public class BufferedRegion
extends BufferedRegionAdpater

Buffered region.


Field Summary
protected  List<ISavable> regions
           
 
Constructor Summary
BufferedRegion(BufferedElement ownerElement, IBufferedRegion parent)
           
 
Method Summary
 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(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(Writer writer)
          Write the content of the buffer in the given writer.
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegionAdpater
getOwnerElement, getParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regions

protected final List<ISavable> regions
Constructor Detail

BufferedRegion

public BufferedRegion(BufferedElement ownerElement,
                      IBufferedRegion parent)
Method Detail

save

public void save(Writer writer)
          throws IOException
Description copied from interface: ISavable
Write the content of the buffer in the given writer.

Specified by:
save in interface ISavable
Overrides:
save in class BufferedRegionAdpater
Throws:
IOException

addRegion

public void addRegion(ISavable region)
Description copied from interface: IBufferedRegion
Add a the given buffered region to the buffer.

Specified by:
addRegion in interface IBufferedRegion
Overrides:
addRegion in class BufferedRegionAdpater

append

public void append(String content)
Description copied from interface: IBufferedRegion
Append the given content to the buffer.

Specified by:
append in interface IBufferedRegion
Overrides:
append in class BufferedRegionAdpater

append

public void append(char c)
Description copied from interface: IBufferedRegion
Append the given content to the buffer.

Specified by:
append in interface IBufferedRegion
Overrides:
append in class BufferedRegionAdpater

isString

public boolean isString()
Description copied from interface: IBufferedRegion
Returns true if buffered region is a String and false otherwise.

Specified by:
isString in interface IBufferedRegion
Overrides:
isString in class BufferedRegionAdpater
Returns:

append

public void append(char[] ch,
                   int start,
                   int length)
Description copied from interface: IBufferedRegion
Append the given char array to the buffer.

Specified by:
append in interface IBufferedRegion
Overrides:
append in class BufferedRegionAdpater

reset

public void reset()


Copyright © 2013. All rights reserved.