org.txt2xml.core
Class SubCharSequence

java.lang.Object
  |
  +--org.txt2xml.core.SubCharSequence
All Implemented Interfaces:
java.lang.CharSequence

public final class SubCharSequence
extends java.lang.Object
implements java.lang.CharSequence

For internal use. A CharSequence that represents a sub-sequence of some parent java.lang.CharSequence.

Author:
Steve Meyfroidt

Constructor Summary
SubCharSequence(java.lang.CharSequence parent, int offset, int length)
           
 
Method Summary
 char charAt(int index)
           
 boolean equals(java.lang.Object obj)
           
 int getOffset()
           
 int length()
           
 java.lang.CharSequence subSequence(int start, int end)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubCharSequence

public SubCharSequence(java.lang.CharSequence parent,
                       int offset,
                       int length)
Method Detail

getOffset

public int getOffset()

length

public int length()
Specified by:
length in interface java.lang.CharSequence
See Also:
CharSequence.length()

charAt

public char charAt(int index)
Specified by:
charAt in interface java.lang.CharSequence
See Also:
CharSequence.charAt(int)

subSequence

public java.lang.CharSequence subSequence(int start,
                                          int end)
Specified by:
subSequence in interface java.lang.CharSequence
See Also:
CharSequence.subSequence(int, int)

toString

public java.lang.String toString()
Specified by:
toString in interface java.lang.CharSequence
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright 2002 Steve Meyfroidt. All Rights Reserved.