de.pdark.decentxml
Class Location.ReusableXMLSource

java.lang.Object
  extended by de.pdark.decentxml.Location.ReusableXMLSource
All Implemented Interfaces:
XMLSource
Enclosing class:
Location

public static class Location.ReusableXMLSource
extends java.lang.Object
implements XMLSource


Field Summary
 java.lang.String source
           
 
Constructor Summary
Location.ReusableXMLSource()
           
 
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
 

Field Detail

source

public java.lang.String source
Constructor Detail

Location.ReusableXMLSource

public Location.ReusableXMLSource()
Method Detail

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

length

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

Specified by:
length 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.