Class EntryDescriptor

    • Constructor Detail

      • EntryDescriptor

        public EntryDescriptor​(int entryID,
                               int offset,
                               int length)
    • Method Detail

      • getEntryID

        public int getEntryID()
        Returns the entry's ID. Note: 0 is invalid.
        Returns:
        the entry's ID
      • getOffset

        public int getOffset()
        The offset from the beginning of the file to the beginning of the entry's data.
        Returns:
        the offset to entry's data
      • getLength

        public int getLength()
        Returns the length of the entry's data. The length can be zero (0).
        Returns:
        the length of the entry's data
      • getEntry

        public java.lang.Object getEntry()
      • toDataType

        public DataType toDataType()
                            throws DuplicateNameException,
                                   java.io.IOException
        Description copied from interface: StructConverter
        Returns a structure datatype representing the contents of the implementor of this interface.

        For example, given:

         class A {
             int foo;
             double bar;
         }
         

        The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

        Specified by:
        toDataType in interface StructConverter
        Returns:
        returns a structure datatype representing the implementor of this interface
        Throws:
        DuplicateNameException - when a datatype of the same name already exists
        java.io.IOException
        See Also:
        StructureDataType