Sleuth Kit Java Bindings (JNI)  4.12.1
Java bindings for using The Sleuth Kit
Content.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2011-2016 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.datamodel;
20 
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.List;
24 import java.util.Set;
25 
33 public interface Content extends SleuthkitVisitableItem {
34 
48  public int read(byte[] buf, long offset, long len) throws TskCoreException;
49 
55  public void close();
56 
64  public long getSize();
65 
73  public <T> T accept(ContentVisitor<T> v);
74 
80  public String getName();
81 
87  public String getUniquePath() throws TskCoreException;
88 
95  public long getId();
96 
105  public Content getDataSource() throws TskCoreException;
106 
114  public List<Content> getChildren() throws TskCoreException;
115 
124  public boolean hasChildren() throws TskCoreException;
125 
134  public int getChildrenCount() throws TskCoreException;
135 
142  public Content getParent() throws TskCoreException;
143 
151  public List<Long> getChildrenIds() throws TskCoreException;
152 
165  @Deprecated
166  public BlackboardArtifact newArtifact(int artifactTypeID) throws TskCoreException;
167 
179  @Deprecated
180  public BlackboardArtifact newArtifact(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
181 
200  public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList) throws TskCoreException;
201 
221  public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList, long dataSourceId) throws TskCoreException;
222 
236  public DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, Collection<BlackboardAttribute> attributesList) throws TskCoreException;
237 
238 
252  public DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, Collection<BlackboardAttribute> attributesList, Long osAccountId) throws TskCoreException;
253 
268  public DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, Collection<BlackboardAttribute> attributesList, Long osAccountId, long dataSourceId) throws TskCoreException;
269 
277  public Score getAggregateScore() throws TskCoreException;
278 
289  public ArrayList<BlackboardArtifact> getArtifacts(String artifactTypeName) throws TskCoreException;
290 
301  public List<AnalysisResult> getAnalysisResults(BlackboardArtifact.Type artifactType) throws TskCoreException;
302 
311  public BlackboardArtifact getGenInfoArtifact() throws TskCoreException;
312 
326  public BlackboardArtifact getGenInfoArtifact(boolean create) throws TskCoreException;
327 
336  public ArrayList<BlackboardAttribute> getGenInfoAttributes(BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException;
337 
348  public ArrayList<BlackboardArtifact> getArtifacts(int artifactTypeID) throws TskCoreException;
349 
359  public ArrayList<BlackboardArtifact> getArtifacts(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
360 
368  public ArrayList<BlackboardArtifact> getAllArtifacts() throws TskCoreException;
369 
377  public List<DataArtifact> getAllDataArtifacts() throws TskCoreException;
378 
386  public List<AnalysisResult> getAllAnalysisResults() throws TskCoreException;
387 
395  public Set<String> getHashSetNames() throws TskCoreException;
396 
407  public long getArtifactsCount(String artifactTypeName) throws TskCoreException;
408 
419  public long getArtifactsCount(int artifactTypeID) throws TskCoreException;
420 
431  public long getArtifactsCount(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
432 
440  public long getAllArtifactsCount() throws TskCoreException;
441 }
BlackboardArtifact newArtifact(int artifactTypeID)
long getArtifactsCount(String artifactTypeName)
DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList)
List< DataArtifact > getAllDataArtifacts()
int read(byte[] buf, long offset, long len)
ArrayList< BlackboardArtifact > getArtifacts(String artifactTypeName)
List< Content > getChildren()
List< AnalysisResult > getAllAnalysisResults()
List< AnalysisResult > getAnalysisResults(BlackboardArtifact.Type artifactType)
ArrayList< BlackboardArtifact > getAllArtifacts()
AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection< BlackboardAttribute > attributesList)
public< T > T accept(ContentVisitor< T > v)
BlackboardArtifact getGenInfoArtifact()
ArrayList< BlackboardAttribute > getGenInfoAttributes(BlackboardAttribute.ATTRIBUTE_TYPE attr_type)

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.