- java.lang.Object
-
- com.ibm.j9ddr.StructureHeader
-
public class StructureHeader extends Object
Represents the header for the blob
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructureHeader.BlobID
Identifies the type of blob by its name
-
Constructor Summary
Constructors Constructor Description StructureHeader(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.StructureHeader(InputStream in)
Use this constructor if the header is coming from a superset file.StructureHeader(ImageInputStream ddrStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getBitfieldFormat()
StructureHeader.BlobID
getBlobID()
int
getBlobVersion()
int[]
getBlobVersionArray()
byte
getConfigVersion()
int
getCoreVersion()
long
getHeaderSize()
String
getPackageID()
byte
getSizeofBool()
byte
getSizeofUDATA()
int
getStringTableDataSize()
int
getStructDataSize()
int
getStructureCount()
void
readBlobVersion(ImageInputStream ddrStream)
-
-
-
Constructor Detail
-
StructureHeader
public StructureHeader(ImageInputStream ddrStream) throws IOException
- 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
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
-
readBlobVersion
public void readBlobVersion(ImageInputStream ddrStream) throws IOException
- 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
public StructureHeader.BlobID getBlobID()
-
getBlobVersion
public int getBlobVersion()
-
getBlobVersionArray
public int[] getBlobVersionArray()
-
getPackageID
public String getPackageID()
-
getHeaderSize
public long getHeaderSize()
-
-