Class XMLStringSource

java.lang.Object
de.pdark.decentxml.XMLStringSource
All Implemented Interfaces:
XMLSource
Direct Known Subclasses:
XMLIOSource

public class XMLStringSource extends Object implements XMLSource
  • Field Details

  • Constructor Details

    • XMLStringSource

      public XMLStringSource(String data)
  • Method Details

    • 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 String substring(int start, int end)
      Description copied from interface: XMLSource
      A piece of text between two offsets.

      Note: start invalid input: '<'= end

      Specified by:
      substring in interface XMLSource