Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
org.sleuthkit.datamodel.HostAddress Class Reference

Inherits org.sleuthkit.datamodel.AbstractContent.

Classes

enum  HostAddressType

Public Member Functions

void close ()
boolean equals (Object obj)
String getAddress ()
HostAddressType getAddressType ()
long getId ()
long getSize ()
SleuthkitCase getSleuthkitCase ()
int hashCode ()
int read (byte[] buf, long offset, long len) throws TskCoreException
Public Member Functions inherited from org.sleuthkit.datamodel.AbstractContent
Score getAggregateScore () throws TskCoreException
List< AnalysisResultgetAllAnalysisResults () throws TskCoreException
ArrayList< BlackboardArtifactgetAllArtifacts () throws TskCoreException
long getAllArtifactsCount () throws TskCoreException
List< DataArtifactgetAllDataArtifacts () throws TskCoreException
List< AnalysisResultgetAnalysisResults (BlackboardArtifact.Type artifactType) throws TskCoreException
ArrayList< BlackboardArtifactgetArtifacts (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException
ArrayList< BlackboardArtifactgetArtifacts (int artifactTypeID) throws TskCoreException
ArrayList< BlackboardArtifactgetArtifacts (String artifactTypeName) throws TskCoreException
long getArtifactsCount (ARTIFACT_TYPE type) throws TskCoreException
long getArtifactsCount (int artifactTypeID) throws TskCoreException
long getArtifactsCount (String artifactTypeName) throws TskCoreException
List< ContentgetChildren () throws TskCoreException
int getChildrenCount () throws TskCoreException
List< Long > getChildrenIds () throws TskCoreException
Content getDataSource () throws TskCoreException
BlackboardArtifact getGenInfoArtifact () throws TskCoreException
BlackboardArtifact getGenInfoArtifact (boolean create) throws TskCoreException
ArrayList< BlackboardAttributegetGenInfoAttributes (ATTRIBUTE_TYPE attr_type) throws TskCoreException
Set< String > getHashSetNames () throws TskCoreException
String getName ()
Content getParent () throws TskCoreException
Optional< Long > getParentId () throws TskCoreException
String getUniquePath () throws TskCoreException
boolean hasChildren () throws TskCoreException
AnalysisResultAdded newAnalysisResult (BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection< BlackboardAttribute > attributesList) throws TskCoreException
AnalysisResultAdded newAnalysisResult (BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection< BlackboardAttribute > attributesList, long dataSourceId) throws TskCoreException
BlackboardArtifact newArtifact (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException
BlackboardArtifact newArtifact (int artifactTypeID) throws TskCoreException
DataArtifact newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList) throws TskCoreException
DataArtifact newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList, Long osAccountId) throws TskCoreException
DataArtifact newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList, Long osAccountId, long dataSourceId) throws TskCoreException
String toString ()
String toString (boolean preserveState)
Public Member Functions inherited from org.sleuthkit.datamodel.Content
long getArtifactsCount (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException
ArrayList< BlackboardAttributegetGenInfoAttributes (BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException

Additional Inherited Members

Static Public Attributes inherited from org.sleuthkit.datamodel.AbstractContent
static final long UNKNOWN_ID = -1
Protected Member Functions inherited from org.sleuthkit.datamodel.AbstractContent
 AbstractContent (SleuthkitCase db, long obj_id, String name)
Protected Attributes inherited from org.sleuthkit.datamodel.AbstractContent
long parentId

Detailed Description

Abstracts an address associated with a host. A host may have multiple addressed of different types associated with it at a given time.

Definition at line 27 of file HostAddress.java.

Member Function Documentation

◆ close()

void org.sleuthkit.datamodel.HostAddress.close ( )

Free native resources after read is done on the Content object. After closing, read can be called again on the same Content object, which should result in re-opening of new native resources.

Implements org.sleuthkit.datamodel.Content.

Definition at line 116 of file HostAddress.java.

◆ equals()

boolean org.sleuthkit.datamodel.HostAddress.equals ( Object obj)

Reimplemented from org.sleuthkit.datamodel.AbstractContent.

Definition at line 73 of file HostAddress.java.

◆ getAddress()

String org.sleuthkit.datamodel.HostAddress.getAddress ( )

Definition at line 59 of file HostAddress.java.

◆ getAddressType()

HostAddressType org.sleuthkit.datamodel.HostAddress.getAddressType ( )

Definition at line 55 of file HostAddress.java.

◆ getId()

long org.sleuthkit.datamodel.HostAddress.getId ( )

Returns the unique object ID that was assigned to it in the database. This is a Sleuth Kit database-assigned number.

Returns
object id

Reimplemented from org.sleuthkit.datamodel.AbstractContent.

Definition at line 51 of file HostAddress.java.

Referenced by org.sleuthkit.datamodel.HostAddressManager.hostAddressExists().

◆ getSize()

long org.sleuthkit.datamodel.HostAddress.getSize ( )

Get the (reported) size of the content object and, in theory, how much you should be able to read from it. In some cases, data corruption may mean that you cannot read this much data.

Returns
size of the content in bytes

Implements org.sleuthkit.datamodel.Content.

Definition at line 121 of file HostAddress.java.

◆ getSleuthkitCase()

SleuthkitCase org.sleuthkit.datamodel.HostAddress.getSleuthkitCase ( )

Gets the SleuthKit case database for this account.

Returns
The SleuthKit case object.

Reimplemented from org.sleuthkit.datamodel.AbstractContent.

Definition at line 105 of file HostAddress.java.

◆ hashCode()

int org.sleuthkit.datamodel.HostAddress.hashCode ( )

Reimplemented from org.sleuthkit.datamodel.AbstractContent.

Definition at line 64 of file HostAddress.java.

◆ read()

int org.sleuthkit.datamodel.HostAddress.read ( byte[] buf,
long offset,
long len ) throws TskCoreException

Reads data that this content object is associated with (file contents, volume contents, etc.).

Parameters
bufa character array of data (in bytes) to copy read data to
offsetbyte offset in the content to start reading from
lennumber of bytes to read into buf.
Returns
num of bytes read, or -1 on error
Exceptions
TskCoreExceptionif critical error occurred during read in the tsk core

Implements org.sleuthkit.datamodel.Content.

Definition at line 110 of file HostAddress.java.


The documentation for this class was generated from the following file:
  • /home/carriersleuth/repos/sleuthkit/bindings/java/src/org/sleuthkit/datamodel/HostAddress.java

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