public class

Serializer_v4

extends Object
implements IInternalSerializer
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.serialization.Serializer_v4

Class Overview

Legacy serializer version, deprecated by the current version (5). This type is left here for reference and testing purpose.

Summary

Fields
public ReferenceCounter<Integer> collectionSizes
public ReferenceCounter<String> dbgObjectCounts
public Map<String, List<Object>> dbgObjectStores
public long writtenStringBytesCount
public int writtenStringCount
public Set<String> writtenStringPool
Public Constructors
Serializer_v4(ITypeIdProvider customTypeIdProvider, OutputStream stream, boolean generateStringPool)
Public Methods
void close()
void debugEnable(boolean enableObjectCounting, boolean enableObjectStoring)
ReferenceCounter<String> debugGetObjectCounts()
Map<String, List<Object>> debugGetObjectStores()
<C> List<C> debugGetObjectStores(Class<C> clazz)
int getMaxDepthReached()
int getObjectCount()
OutputStream getStream()
List<String> getStringPool()
long getWrittenStringBytesCount()
int getWrittenStringCount()
Set<String> getWrittenStringPool()
void serialize(Object root)
void write(Object o)
void writeFields(Object o, Class<?> targetClass)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.serialization.IInternalSerializer

Fields

public ReferenceCounter<Integer> collectionSizes

public ReferenceCounter<String> dbgObjectCounts

public Map<String, List<Object>> dbgObjectStores

public long writtenStringBytesCount

public int writtenStringCount

public Set<String> writtenStringPool

Public Constructors

public Serializer_v4 (ITypeIdProvider customTypeIdProvider, OutputStream stream, boolean generateStringPool)

Public Methods

public void close ()

Throws
IOException

public void debugEnable (boolean enableObjectCounting, boolean enableObjectStoring)

public ReferenceCounter<String> debugGetObjectCounts ()

public Map<String, List<Object>> debugGetObjectStores ()

public List<C> debugGetObjectStores (Class<C> clazz)

public int getMaxDepthReached ()

public int getObjectCount ()

public OutputStream getStream ()

public List<String> getStringPool ()

public long getWrittenStringBytesCount ()

public int getWrittenStringCount ()

public Set<String> getWrittenStringPool ()

public void serialize (Object root)

Throws
IOException

public void write (Object o)

Throws
IOException

public void writeFields (Object o, Class<?> targetClass)

Throws
IOException