Class Serializer_v4
java.lang.Object
com.pnfsoftware.jeb.util.serialization.Serializer_v4
- All Implemented Interfaces:
IInternalSerializer
Legacy serializer version, deprecated by the current version (5). This type is left here for
reference and testing purpose.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
int
-
Constructor Summary
ConstructorsConstructorDescriptionSerializer_v4
(ITypeIdProvider customTypeIdProvider, OutputStream stream, boolean generateStringPool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
debugEnable
(boolean enableObjectCounting, boolean enableObjectStoring) <C> List<C>
debugGetObjectStores
(Class<C> clazz) int
int
long
int
void
void
void
writeFields
(Object o, Class<?> targetClass)
-
Field Details
-
dbgObjectCounts
-
dbgObjectStores
-
writtenStringCount
public int writtenStringCount -
writtenStringBytesCount
public long writtenStringBytesCount -
writtenStringPool
-
collectionSizes
-
-
Constructor Details
-
Serializer_v4
public Serializer_v4(ITypeIdProvider customTypeIdProvider, OutputStream stream, boolean generateStringPool)
-
-
Method Details
-
getStream
- Specified by:
getStream
in interfaceIInternalSerializer
-
getObjectCount
public int getObjectCount() -
getMaxDepthReached
public int getMaxDepthReached() -
getStringPool
-
serialize
- Throws:
IOException
-
close
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIInternalSerializer
- Throws:
IOException
-
writeFields
- Specified by:
writeFields
in interfaceIInternalSerializer
- Throws:
IOException
-
debugEnable
public void debugEnable(boolean enableObjectCounting, boolean enableObjectStoring) -
debugGetObjectCounts
-
debugGetObjectStores
-
debugGetObjectStores
-
getWrittenStringCount
public int getWrittenStringCount() -
getWrittenStringBytesCount
public long getWrittenStringBytesCount() -
getWrittenStringPool
-