de.pdark.decentxml
Class XMLStringBufferSource

java.lang.Object
  extended by de.pdark.decentxml.XMLStringBufferSource
All Implemented Interfaces:
XMLSource

public class XMLStringBufferSource
extends java.lang.Object
implements XMLSource


Constructor Summary
XMLStringBufferSource(java.lang.StringBuffer data)
           
 
Method Summary
 char charAt(int offset)
          A character at a specific offset in the source
 int length()
          The length (number of characters) in the source
 java.lang.String substring(int start, int end)
          A piece of text between two offsets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStringBufferSource

public XMLStringBufferSource(java.lang.StringBuffer data)
Method Detail

length

public int length()
Description copied from interface: XMLSource
The length (number of characters) in the source

Specified by:
length in interface XMLSource

charAt

public char charAt(int offset)
Description copied from interface: XMLSource
A character at a specific offset in the source

Specified by:
charAt in interface XMLSource

substring

public java.lang.String substring(int start,
                                  int end)
Description copied from interface: XMLSource
A piece of text between two offsets.

Note: start <= end

Specified by:
substring in interface XMLSource


Copyright © 2008-2011. All Rights Reserved.