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

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

public class BufferedRegionAdpater
extends Object
implements IBufferedRegion

Base buffered region.


Constructor Summary
BufferedRegionAdpater(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.
 BufferedElement getOwnerElement()
          Returns the owner element.
 IBufferedRegion getParent()
          Returns the parent buffered region.
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedRegionAdpater

public BufferedRegionAdpater(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
Throws:
IOException

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
Returns:

append

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

Specified by:
append in interface IBufferedRegion

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

append

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

Specified by:
append in interface IBufferedRegion

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

getParent

public IBufferedRegion getParent()
Description copied from interface: IBufferedRegion
Returns the parent buffered region.

Specified by:
getParent in interface IBufferedRegion
Returns:

getOwnerElement

public BufferedElement getOwnerElement()
Description copied from interface: ISavable
Returns the owner element.

Specified by:
getOwnerElement in interface ISavable
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All rights reserved.