java.lang.Object
com.ibm.j9ddr.StructureHeader
Represents the header for the blob
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Identifies the type of blob by its name -
Constructor Summary
ConstructorDescriptionStructureHeader
(byte configVersion) Allow the use of partial header reading by creating a StructureHeader which is just identified by it's version.StructureHeader
(StructureHeader.BlobID id, int blobVersion, String packageID) Configure a structure header which is just identified by a blob type and version.Use this constructor if the header is coming from a superset file.StructureHeader
(ImageInputStream ddrStream) -
Method Summary
Modifier and TypeMethodDescriptionbyte
int
int[]
byte
int
long
byte
byte
int
int
int
void
readBlobVersion
(ImageInputStream ddrStream)
-
Constructor Details
-
StructureHeader
- Throws:
IOException
-
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
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
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 Details
-
readBlobVersion
- Throws:
IOException
-
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() -
getBlobID
-
getBlobVersion
public int getBlobVersion() -
getBlobVersionArray
public int[] getBlobVersionArray() -
getPackageID
-
getHeaderSize
public long getHeaderSize()
-