Class BinaryConfigObject
- java.lang.Object
-
- de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
-
- de.bsvrz.puk.config.configFile.fileaccess.BinaryConfigObject
-
public class BinaryConfigObject extends BinaryObject
Binäres Konfigurationsobjekt- See Also:
BinaryObject
-
-
Field Summary
-
Fields inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
CONFIG_OBJ_HEADER_SIZE, CONFIGURATION_OBJECT_TYPE, DYN_OBJ_HEADER_SIZE, DYNAMIC_OBJECT_TYPE
-
-
Constructor Summary
Constructors Constructor Description BinaryConfigObject(long objectId, int pidHashCode, long typeId, short firstInvalid, short firstValid, byte[] packedBytes)
-
Method Summary
Modifier and Type Method Description short
getFirstInvalid()
short
getFirstValid()
long
getObjectId()
Gibt die Objekt-ID zurückbyte[]
getPackedBytes()
Gibt die gepackten Bytes zurück.int
getPidHashCode()
Gibt den Pid-Hashcode zurücklong
getTypeId()
Gibt die ID des Objekttyps zuückConfigurationObjectInformation
toSystemObjectInfo(ConfigAreaFile file, long position)
int
write(java.io.DataOutput output)
Schreibt das Objekt in den Ausgabe-Stream-
Methods inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
fromDataInput
-
-
-
-
Method Detail
-
write
public int write(java.io.DataOutput output) throws java.io.IOException
Description copied from class:BinaryObject
Schreibt das Objekt in den Ausgabe-Stream- Specified by:
write
in classBinaryObject
- Parameters:
output
- Ausgabe- Returns:
- Anzahl geschriebener Bytes
- Throws:
java.io.IOException
-
getObjectId
public long getObjectId()
Description copied from class:BinaryObject
Gibt die Objekt-ID zurück- Specified by:
getObjectId
in classBinaryObject
- Returns:
- die Objekt-ID oder 0 falls es sich um eine Lücke handelt
-
getPidHashCode
public int getPidHashCode()
Description copied from class:BinaryObject
Gibt den Pid-Hashcode zurück- Specified by:
getPidHashCode
in classBinaryObject
- Returns:
- den Pid-Hashcode
-
getTypeId
public long getTypeId()
Description copied from class:BinaryObject
Gibt die ID des Objekttyps zuück- Specified by:
getTypeId
in classBinaryObject
- Returns:
- die ID des Objekttyps
-
getFirstInvalid
public short getFirstInvalid()
-
getFirstValid
public short getFirstValid()
-
getPackedBytes
public byte[] getPackedBytes()
Description copied from class:BinaryObject
Gibt die gepackten Bytes zurück. Die gepackten Bytes enthalten weitere Objektinformationen wie die Name, Pid, Konfigurationsdaten usw.- Specified by:
getPackedBytes
in classBinaryObject
- Returns:
- die gepackten Bytes
-
toSystemObjectInfo
public ConfigurationObjectInformation toSystemObjectInfo(ConfigAreaFile file, long position) throws java.io.IOException, de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException
- Specified by:
toSystemObjectInfo
in classBinaryObject
- Throws:
java.io.IOException
de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException
-
-