Class CollectedCallbacksSerializer
java.lang.Object
soot.jimple.infoflow.android.callbacks.xml.CollectedCallbacksSerializer
Class for serializing collected callbacks to disk for later re-use
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectedCallbacksdeserialize(File callbackFile) Deserializes the callback file for this applicationstatic CollectedCallbacksDeserializes the callback file for this applicationprotected static com.esotericsoftware.kryo.KryoInitializes the Kryo serializerstatic voidserialize(CollectedCallbacks callbacks, InfoflowAndroidConfiguration.CallbackConfiguration config) Serializes the given data object
-
Constructor Details
-
CollectedCallbacksSerializer
public CollectedCallbacksSerializer()
-
-
Method Details
-
serialize
public static void serialize(CollectedCallbacks callbacks, InfoflowAndroidConfiguration.CallbackConfiguration config) throws IOException Serializes the given data object- Parameters:
callbacks- The object to serializeconfig- The configuration that defines how and where to store the data- Throws:
IOException
-
deserialize
public static CollectedCallbacks deserialize(File callbackFile) throws com.esotericsoftware.kryo.KryoException, FileNotFoundException Deserializes the callback file for this application- Parameters:
callbackFile- The file with the collected callbacks- Returns:
- The deserialized callback object
- Throws:
FileNotFoundExceptioncom.esotericsoftware.kryo.KryoException
-
deserialize
public static CollectedCallbacks deserialize(InfoflowAndroidConfiguration.CallbackConfiguration config) throws com.esotericsoftware.kryo.KryoException, FileNotFoundException Deserializes the callback file for this application- Parameters:
config- The configuration that defines how and where to store the data- Returns:
- The deserialized callback object
- Throws:
FileNotFoundExceptioncom.esotericsoftware.kryo.KryoException
-
initializeKryo
protected static com.esotericsoftware.kryo.Kryo initializeKryo()Initializes the Kryo serializer- Returns:
- The Kryo serializer
-