T - classpublic abstract class FixedSizeObjectSerializer<T> extends ObjectSerializer<T>
 Copyright (c) 2019-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Constructor and Description | 
|---|
FixedSizeObjectSerializer(byte fieldType,
                         int serializedDataSize,
                         String dataClassName)
Construct the FixedSizeSerializer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
size(Object object)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
 of type T is next in the data stream). 
 | 
getNumberOfDimensions, serializeWithPrefix, sizeWithPrefixdataClassName, fieldType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeSerialize, serializepublic FixedSizeObjectSerializer(byte fieldType,
                                 int serializedDataSize,
                                 String dataClassName)
fieldType - byte; the field type (returned by the fieldType method)serializedDataSize - int; number of bytes required for serialized TdataClassName - String; returned by the dataClassName methodpublic final int size(Object object)
Serializerobject - Object; Instance of the object (should be of type T)Copyright © 2018–2019 Delft University of Technology. All rights reserved.