org.sleuthkit.autopsy.datamodel/0 0.0 1

org.sleuthkit.autopsy.datamodel
Interface ContentNode

All Known Implementing Classes:
DirectoryNode, FileNode, ImageNode, VolumeNode

public interface ContentNode

Interface class that all Data nodes inherit from. Provides basic information such as ID, parent ID, etc.


Method Summary
<T> T
accept(ContentNodeVisitor<T> v)
          Visitor pattern support.
 org.sleuthkit.datamodel.Content getContent()
          Returns the content of this node.
 java.lang.String[] getDisplayPath()
          Returns full path to this node.
 int getFileIDColumn()
          Returns the location of the file ID / Metadata address on the columns on the directory table.
 long getID()
          Gets the ID of this node.
 java.lang.String getName()
          Returns the programmatic name for this node.
 java.lang.Object[][] getRowValues(int rows)
          Gets the row values for this node.
 java.lang.String[] getSystemPath()
          Returns full path to this node.
 byte[] read(long offset, long len)
          Reads the content of this node.
 

Method Detail

getName

java.lang.String getName()
Returns the programmatic name for this node. This is NOT the name to display to users, or the plain name of the Content object - use Node.getDisplayName() for that.

Returns:
name the programmatic name for this node

getID

long getID()
Gets the ID of this node.

Returns:
ID the ID of this node

getRowValues

java.lang.Object[][] getRowValues(int rows)
                                  throws java.sql.SQLException
Gets the row values for this node. The main purpose of this method is to get the 'x' number of the row values for this node to set the width of each column of the DataResult Table. Row values is the children and it's properties.

Parameters:
rows - the number of rows we want to show
Returns:
rowValues the row values for this node.
Throws:
java.sql.SQLException

read

byte[] read(long offset,
            long len)
            throws org.sleuthkit.datamodel.TskException
Reads the content of this node.

Parameters:
offset - the starting offset
len - the length
Returns:
the bytes
Throws:
org.sleuthkit.datamodel.TskException

getFileIDColumn

int getFileIDColumn()
Returns the location of the file ID / Metadata address on the columns on the directory table.

Returns:

getContent

org.sleuthkit.datamodel.Content getContent()
Returns the content of this node.

Returns:
content the content of this node (can be image, volume, directory, or file)

getDisplayPath

java.lang.String[] getDisplayPath()
Returns full path to this node.

Returns:
the path of this node

getSystemPath

java.lang.String[] getSystemPath()
Returns full path to this node.

Returns:
the path of this node

accept

<T> T accept(ContentNodeVisitor<T> v)
Visitor pattern support.

Type Parameters:
T - visitor return type
Parameters:
v - visitor
Returns:
visitor return value

org.sleuthkit.autopsy.datamodel/0 0.0 1