Sleuth Kit Java Bindings (JNI)  4.3
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.ContentVisitor< T > Interface Template Reference

Inherited by org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Classes

class  Default
 

Public Member Functions

visit (Directory d)
 
visit (File f)
 
visit (FileSystem fs)
 
visit (Image i)
 
visit (Volume v)
 
visit (VolumeSystem vs)
 
visit (LayoutFile lf)
 
visit (VirtualDirectory ld)
 
visit (DerivedFile lf)
 
visit (LocalFile df)
 
visit (SlackFile sf)
 

Detailed Description

Interface for implementing a visitor pattern on all Content implementations. Visitor implements an algorithm on the content object. The algorithm is completely decoupled from the content object. The visitor pattern emulates double dispatch mechanism. It allows to act differently depending on the instance type, without need to test what the actual type is. E.g. it allows for processing a Content object hierarchy without using instanceof statements. Generic type parameter T is a return type from the visit methods.

Parameters
<T>return type of visit methods

Definition at line 32 of file ContentVisitor.java.

Member Function Documentation

Act on (visit) a Directory content object

Parameters
dthe directory to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a File content object

Parameters
fFile to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a FileSystem content object

Parameters
fsfile system to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) an Image content object

Parameters
iimage to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a Volume content object

Parameters
vvolume to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a VolumeSystem content object

Parameters
vsvolume system to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a LayoutFile content object

Parameters
lflayout file to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a LayoutDirectory content object

Parameters
ldlayout dir to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a DerivedFile content object

Parameters
lflocal file to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a LocalFile content object

Parameters
dfderived file to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.

Act on (visit) a SlackFile content object

Parameters
sfslack file to visit / act on
Returns
result of the visit

Implemented in org.sleuthkit.datamodel.ContentVisitor< T >.Default< T >.


The documentation for this interface was generated from the following file:

Copyright © 2011-2015 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.