Package com.diffplug.gradle
Class SerializableMisc
java.lang.Object
com.diffplug.gradle.SerializableMisc
Utilities for manipulating
Serializable objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Serializable>
TReads an object from the given file.static <T extends Serializable>
voidWrites the given object to the given file.static voidwriteThrowable(File file, Throwable object) Writes an exception to file, even if that exception isn't serializable.
-
Constructor Details
-
SerializableMisc
public SerializableMisc()
-
-
Method Details
-
write
Writes the given object to the given file.- Throws:
IOException
-
read
Reads an object from the given file.- Throws:
ClassNotFoundExceptionIOException
-
writeThrowable
Writes an exception to file, even if that exception isn't serializable.- Throws:
IOException
-