Class Location.ReusableXMLSource

  • All Implemented Interfaces:
    XMLSource
    Enclosing class:
    Location

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

      Fields 
      Modifier and Type Field Description
      java.lang.String source  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • ReusableXMLSource

        public 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