Class SerializationConverter
java.lang.Object
com.helger.commons.serialize.convert.SerializationConverter
A utility class for converting objects from and to serializable format.
All converters are registered in the
All converters are registered in the
SerializationConverterRegistry.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic <DSTTYPE> DSTTYPEreadConvertedObject(ObjectInputStream aOIS, Class<DSTTYPE> aDstClass) static <T> voidwriteConvertedObject(T aObject, ObjectOutputStream aOOS)
-
Method Details
-
writeConvertedObject
public static <T> void writeConvertedObject(@Nullable T aObject, @Nonnull ObjectOutputStream aOOS) throws IOException - Throws:
IOException
-
readConvertedObject
@Nullable public static <DSTTYPE> DSTTYPE readConvertedObject(@Nonnull ObjectInputStream aOIS, @Nonnull Class<DSTTYPE> aDstClass) throws IOException - Throws:
IOException
-