Class BinaryConfigObject
java.lang.Object
de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
de.bsvrz.puk.config.configFile.fileaccess.BinaryConfigObject
Binäres Konfigurationsobjekt
- See Also:
-
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
ConstructorsConstructorDescriptionBinaryConfigObject(long objectId, int pidHashCode, long typeId, short firstInvalid, short firstValid, byte[] packedBytes) -
Method Summary
Modifier and TypeMethodDescriptionshortshortlongGibt die Objekt-ID zurückbyte[]Gibt die gepackten Bytes zurück.intGibt den Pid-Hashcode zurücklongGibt die ID des Objekttyps zuücktoSystemObjectInfo(ConfigAreaFile file, long position) intwrite(DataOutput output) Schreibt das Objekt in den Ausgabe-StreamMethods inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
fromDataInput
-
Constructor Details
-
BinaryConfigObject
public BinaryConfigObject(long objectId, int pidHashCode, long typeId, short firstInvalid, short firstValid, byte[] packedBytes)
-
-
Method Details
-
write
Description copied from class:BinaryObjectSchreibt das Objekt in den Ausgabe-Stream- Specified by:
writein classBinaryObject- Parameters:
output- Ausgabe- Returns:
- Anzahl geschriebener Bytes
- Throws:
IOException
-
getObjectId
public long getObjectId()Description copied from class:BinaryObjectGibt die Objekt-ID zurück- Specified by:
getObjectIdin classBinaryObject- Returns:
- die Objekt-ID oder 0 falls es sich um eine Lücke handelt
-
getPidHashCode
public int getPidHashCode()Description copied from class:BinaryObjectGibt den Pid-Hashcode zurück- Specified by:
getPidHashCodein classBinaryObject- Returns:
- den Pid-Hashcode
-
getTypeId
public long getTypeId()Description copied from class:BinaryObjectGibt die ID des Objekttyps zuück- Specified by:
getTypeIdin classBinaryObject- Returns:
- die ID des Objekttyps
-
getFirstInvalid
public short getFirstInvalid() -
getFirstValid
public short getFirstValid() -
getPackedBytes
public byte[] getPackedBytes()Description copied from class:BinaryObjectGibt die gepackten Bytes zurück. Die gepackten Bytes enthalten weitere Objektinformationen wie die Name, Pid, Konfigurationsdaten usw.- Specified by:
getPackedBytesin classBinaryObject- Returns:
- die gepackten Bytes
-
toSystemObjectInfo
public ConfigurationObjectInformation toSystemObjectInfo(ConfigAreaFile file, long position) throws IOException, de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException - Specified by:
toSystemObjectInfoin classBinaryObject- Throws:
IOExceptionde.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException
-