Sleuth Kit Java Bindings (JNI)  4.2
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 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 
45  public int read(byte[] buf, long offset, long len) throws TskCoreException;
46 
52  public void close();
53 
61  public long getSize();
62 
69  public <T> T accept(ContentVisitor<T> v);
70 
76  public String getName();
77 
83  public String getUniquePath() throws TskCoreException;
84 
91  public long getId();
92 
99  public Content getDataSource() throws TskCoreException;
100 
107  public List<Content> getChildren() throws TskCoreException;
108 
116  public boolean hasChildren() throws TskCoreException;
117 
125  public int getChildrenCount() throws TskCoreException;
126 
132  public Content getParent() throws TskCoreException;
133 
140  public List<Long> getChildrenIds() throws TskCoreException;
141 
151  public BlackboardArtifact newArtifact(int artifactTypeID) throws TskCoreException;
152 
161  public BlackboardArtifact newArtifact(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
162 
171  public ArrayList<BlackboardArtifact> getArtifacts(String artifactTypeName) throws TskCoreException;
172 
180  public BlackboardArtifact getGenInfoArtifact() throws TskCoreException;
181 
193  public BlackboardArtifact getGenInfoArtifact(boolean create) throws TskCoreException;
194 
202  public ArrayList<BlackboardAttribute> getGenInfoAttributes(BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException;
203 
212  public ArrayList<BlackboardArtifact> getArtifacts(int artifactTypeID) throws TskCoreException;
213 
221  public ArrayList<BlackboardArtifact> getArtifacts(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
222 
229  public ArrayList<BlackboardArtifact> getAllArtifacts() throws TskCoreException;
230 
237  public Set<String> getHashSetNames() throws TskCoreException;
238 
247  public long getArtifactsCount(String artifactTypeName) throws TskCoreException;
248 
257  public long getArtifactsCount(int artifactTypeID) throws TskCoreException;
258 
267  public long getArtifactsCount(BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException;
268 
275  public long getAllArtifactsCount() throws TskCoreException;
276 }
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.