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 shortgetFirstInvalid()shortgetFirstValid()longgetObjectId()Gibt die Objekt-ID zurückbyte[]getPackedBytes()Gibt die gepackten Bytes zurück.intgetPidHashCode()Gibt den Pid-Hashcode zurücklonggetTypeId()Gibt die ID des Objekttyps zuückConfigurationObjectInformationtoSystemObjectInfo(ConfigAreaFile file, long position)intwrite(java.io.DataOutput output)Schreibt das Objekt in den Ausgabe-StreamMethods inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
fromDataInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BinaryConfigObject
public BinaryConfigObject(long objectId, int pidHashCode, long typeId, short firstInvalid, short firstValid, byte[] packedBytes)
-
-
Method Details
-
write
public int write(java.io.DataOutput output) throws java.io.IOExceptionDescription copied from class:BinaryObjectSchreibt das Objekt in den Ausgabe-Stream- Specified by:
writein classBinaryObject- Parameters:
output- Ausgabe- Returns:
- Anzahl geschriebener Bytes
- Throws:
java.io.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 java.io.IOException, de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException- Specified by:
toSystemObjectInfoin classBinaryObject- Throws:
java.io.IOExceptionde.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException
-