Sleuth Kit Java Bindings (JNI)  4.4.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.List;
23 import java.util.Set;
24 
32 public interface Content extends SleuthkitVisitableItem {
33 
47  public int read(byte[] buf, long offset, long len) throws TskCoreException;
48 
54  public void close();
55 
63  public long getSize();
64 
72  public <T> T accept(ContentVisitor<T> v);
73 
79  public String getName();
80 
86  public String getUniquePath() throws TskCoreException;
87 
94  public long getId();
95 
104  public Content getDataSource() throws TskCoreException;
105 
113  public List<Content> getChildren() throws TskCoreException;
114 
123  public boolean hasChildren() throws TskCoreException;
124 
133  public int getChildrenCount() throws TskCoreException;
134 
141  public Content getParent() throws TskCoreException;
142 
150  public List<Long> getChildrenIds() throws TskCoreException;
151 
163  public BlackboardArtifact newArtifact(int artifactTypeID) throws TskCoreException;
164 
175  public BlackboardArtifact newArtifact(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
176 
187  public ArrayList<BlackboardArtifact> getArtifacts(String artifactTypeName) throws TskCoreException;
188 
197  public BlackboardArtifact getGenInfoArtifact() throws TskCoreException;
198 
212  public BlackboardArtifact getGenInfoArtifact(boolean create) throws TskCoreException;
213 
222  public ArrayList<BlackboardAttribute> getGenInfoAttributes(BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException;
223 
234  public ArrayList<BlackboardArtifact> getArtifacts(int artifactTypeID) throws TskCoreException;
235 
245  public ArrayList<BlackboardArtifact> getArtifacts(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
246 
254  public ArrayList<BlackboardArtifact> getAllArtifacts() throws TskCoreException;
255 
263  public Set<String> getHashSetNames() throws TskCoreException;
264 
275  public long getArtifactsCount(String artifactTypeName) throws TskCoreException;
276 
287  public long getArtifactsCount(int artifactTypeID) throws TskCoreException;
288 
299  public long getArtifactsCount(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
300 
308  public long getAllArtifactsCount() throws TskCoreException;
309 }
BlackboardArtifact newArtifact(int artifactTypeID)
long getArtifactsCount(String artifactTypeName)
int read(byte[] buf, long offset, long len)
ArrayList< BlackboardArtifact > getArtifacts(String artifactTypeName)
List< Content > getChildren()
ArrayList< BlackboardArtifact > getAllArtifacts()
public< T > T accept(ContentVisitor< T > v)
BlackboardArtifact getGenInfoArtifact()
ArrayList< BlackboardAttribute > getGenInfoAttributes(BlackboardAttribute.ATTRIBUTE_TYPE attr_type)

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.