Sleuth Kit Java Bindings (JNI)
4.12.1
Java bindings for using The Sleuth Kit
|
Classes | |
class | InvalidJsonException |
Static Public Member Functions | |
static< T > T | fromAttribute (BlackboardAttribute attr, Class< T > clazz) throws InvalidJsonException |
static< T > BlackboardAttribute | toAttribute (BlackboardAttribute.Type attrType, String moduleName, T attrValue) |
A utility for converting between JSON and artifact attributes of value type TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON.
Definition at line 29 of file BlackboardJsonAttrUtil.java.
|
static |
Creates an object of type T from the JSON in the string value of a BlackboardAttribute with a value type of TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON.
T The type of the object to be created from the JSON.
attr | The attribute. |
clazz | The class object for class T. |
InvalidJsonException | Thrown the JSON in an artifact attribute cannot be deserialized to an object of the specified type. |
Definition at line 67 of file BlackboardJsonAttrUtil.java.
References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON.
|
static |
Creates an attribute of a given type with the string value set to an object of type T serialized to JSON.
T The type of the attribute value object to be serialized.
attrType | The type of attribute to create. |
moduleName | The name of the module creating the attribute. |
attrValue | The attribute value object. |
Definition at line 44 of file BlackboardJsonAttrUtil.java.
References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON.
Referenced by org.sleuthkit.datamodel.blackboardutils.GeoArtifactsHelper.addArea(), org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addAttachments(), org.sleuthkit.datamodel.blackboardutils.GeoArtifactsHelper.addRoute(), and org.sleuthkit.datamodel.blackboardutils.GeoArtifactsHelper.addTrack().
Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.