Sleuth Kit Java Bindings (JNI)  4.3
Java bindings for using The Sleuth Kit
Directory.java
Go to the documentation of this file.
1 /*
2  * SleuthKit Java Bindings
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.List;
27 
31 public class Directory extends FsContent {
32 
78  long objId,
79  long dataSourceObjectId,
80  long fsObjId,
82  String name,
83  long metaAddr, int metaSeq,
86  long size,
87  long ctime, long crtime, long atime, long mtime,
88  short modes, int uid, int gid,
89  String md5Hash, FileKnown knownState, String parentPath) {
90  super(db, objId, dataSourceObjectId, fsObjId, attrType, attrId, name, TskData.TSK_DB_FILES_TYPE_ENUM.FS, metaAddr, metaSeq, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath, null);
91  }
92 
101  @Override
102  public List<Content> getChildren() throws TskCoreException {
103  return getSleuthkitCase().getAbstractFileChildren(this);
104  }
105 
115  @Override
116  public List<Long> getChildrenIds() throws TskCoreException {
117  return getSleuthkitCase().getAbstractFileChildrenIds(this);
118  }
119 
128  @Override
129  public <T> T accept(SleuthkitItemVisitor<T> v) {
130  return v.visit(this);
131  }
132 
141  @Override
142  public <T> T accept(ContentVisitor<T> v) {
143  return v.visit(this);
144  }
145 
155  @Override
156  public String toString(boolean preserveState) {
157  return super.toString(preserveState) + "Directory [\t" + "]\t"; //NON-NLS
158  }
159 
199  @Deprecated
200  @SuppressWarnings("deprecation")
201  protected Directory(SleuthkitCase db,
202  long objId,
203  long fsObjId,
204  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
205  String name,
206  long metaAddr, int metaSeq,
208  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
209  long size,
210  long ctime, long crtime, long atime, long mtime,
211  short modes, int uid, int gid,
212  String md5Hash, FileKnown knownState, String parentPath) {
213  this(db, objId, db.getDataSourceObjectId(objId), fsObjId, attrType, attrId, name, metaAddr, metaSeq, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);
214  }
215 
262  @Deprecated
263  @SuppressWarnings("deprecation")
265  long objId,
266  long dataSourceObjectId,
267  long fsObjId,
268  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
269  String name,
270  long metaAddr, int metaSeq,
272  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
273  long size,
274  long ctime, long crtime, long atime, long mtime,
275  short modes, int uid, int gid,
276  String md5Hash, FileKnown knownState, String parentPath) {
277  this(db, objId, dataSourceObjectId, fsObjId, attrType, (int) attrId, name, metaAddr, metaSeq, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);
278  }
279 }
FS
File that can be found in file system tree.
Definition: TskData.java:656
final TSK_FS_NAME_TYPE_ENUM dirType
final TSK_FS_NAME_FLAG_ENUM dirFlag
final TskData.TSK_FS_ATTR_TYPE_ENUM attrType
final Set< TSK_FS_META_FLAG_ENUM > metaFlags
final Set< TskData.TSK_FS_META_MODE_ENUM > modes
String toString(boolean preserveState)
Definition: Directory.java:156
final TSK_FS_META_TYPE_ENUM metaType

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.