Class XMLByteLocation

java.lang.Object
com.thirdpartylabs.xmlscalpel.entity.XMLByteLocation

public class XMLByteLocation
extends java.lang.Object
Defines the location in a file of a specific XML node.
  • Constructor Summary

    Constructors 
    Constructor Description
    XMLByteLocation​(int index, long offset, long length)  
  • Method Summary

    Modifier and Type Method Description
    int getIndex()  
    long getLength()  
    long getOffset()  
    void setByte​(long length)  
    void setIndex​(int index)  
    void setOffset​(long offset)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XMLByteLocation

      public XMLByteLocation​(int index, long offset, long length)
      Parameters:
      index - Sequence of the node within the document
      offset - Location of the first byte of the string that contains the XML for a node
      length - Number of bytes in the string
  • Method Details

    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex​(int index)
    • getOffset

      public long getOffset()
    • setOffset

      public void setOffset​(long offset)
    • getLength

      public long getLength()
    • setByte

      public void setByte​(long length)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object