Module openj9.dtfj
Package com.ibm.j9ddr

Class StructureHeader


  • public class StructureHeader
    extends Object
    Represents the header for the blob
    • Constructor Detail

      • StructureHeader

        public StructureHeader​(byte configVersion)
        Allow the use of partial header reading by creating a StructureHeader which is just identified by it's version. Fragments of the header can then be read in. The primary use for this function is when loading just a blob identifier from the core file which is then used to match an entry in the blob library.
        Parameters:
        configVersion -
      • StructureHeader

        public StructureHeader​(StructureHeader.BlobID id,
                               int blobVersion,
                               String packageID)
        Configure a structure header which is just identified by a blob type and version. This will be used when a blob is determined by heuristics rather than directly being read from the core. This information is then typically used to retrieve the blob from the BlobFactory.
        Parameters:
        id -
        blobVersion -
        packageID -
      • StructureHeader

        public StructureHeader​(InputStream in)
        Use this constructor if the header is coming from a superset file. Warning : as this file does not contain any header information all the defaults will be used in this instance.
        Parameters:
        in -
    • Method Detail

      • getCoreVersion

        public int getCoreVersion()
      • getSizeofBool

        public byte getSizeofBool()
      • getSizeofUDATA

        public byte getSizeofUDATA()
      • getBitfieldFormat

        public byte getBitfieldFormat()
      • getStructDataSize

        public int getStructDataSize()
      • getStringTableDataSize

        public int getStringTableDataSize()
      • getStructureCount

        public int getStructureCount()
      • getConfigVersion

        public byte getConfigVersion()
      • getBlobVersion

        public int getBlobVersion()
      • getBlobVersionArray

        public int[] getBlobVersionArray()
      • getPackageID

        public String getPackageID()
      • getHeaderSize

        public long getHeaderSize()