Sleuth Kit Java Bindings (JNI)  4.6.0
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-2017 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 
26 
30 public class Directory extends FsContent {
31 
77  long objId,
78  long dataSourceObjectId,
79  long fsObjId,
81  String name,
82  long metaAddr, int metaSeq,
85  long size,
86  long ctime, long crtime, long atime, long mtime,
87  short modes, int uid, int gid,
88  String md5Hash, FileKnown knownState, String parentPath) {
89  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, null);
90  }
91 
100  @Override
101  public <T> T accept(SleuthkitItemVisitor<T> v) {
102  return v.visit(this);
103  }
104 
113  @Override
114  public <T> T accept(ContentVisitor<T> v) {
115  return v.visit(this);
116  }
117 
127  @Override
128  public String toString(boolean preserveState) {
129  return super.toString(preserveState) + "Directory [\t" + "]\t"; //NON-NLS
130  }
131 
171  @Deprecated
172  @SuppressWarnings("deprecation")
173  protected Directory(SleuthkitCase db,
174  long objId,
175  long fsObjId,
176  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
177  String name,
178  long metaAddr, int metaSeq,
180  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
181  long size,
182  long ctime, long crtime, long atime, long mtime,
183  short modes, int uid, int gid,
184  String md5Hash, FileKnown knownState, String parentPath) {
185  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);
186  }
187 
235  @Deprecated
236  @SuppressWarnings("deprecation")
238  long objId,
239  long dataSourceObjectId,
240  long fsObjId,
241  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
242  String name,
243  long metaAddr, int metaSeq,
245  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
246  long size,
247  long ctime, long crtime, long atime, long mtime,
248  short modes, int uid, int gid,
249  String md5Hash, FileKnown knownState, String parentPath) {
250  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);
251  }
252 }
FS
File that can be found in file system tree.
Definition: TskData.java:670
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:128
final TSK_FS_META_TYPE_ENUM metaType

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