Sleuth Kit Java Bindings (JNI)  4.11.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 
21 import java.util.Collections;
27 
31 public class Directory extends FsContent {
32 
81  long objId,
82  long dataSourceObjectId,
83  long fsObjId,
85  String name,
86  long metaAddr, int metaSeq,
89  long size,
90  long ctime, long crtime, long atime, long mtime,
91  short modes, int uid, int gid,
92  String md5Hash, String sha256Hash, FileKnown knownState, String parentPath,
93  String ownerUid, Long osAccountObjId ) {
94  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, sha256Hash, knownState, parentPath, null, null, ownerUid, osAccountObjId, Collections.emptyList());
95  }
96 
105  @Override
106  public <T> T accept(SleuthkitItemVisitor<T> v) {
107  return v.visit(this);
108  }
109 
118  @Override
119  public <T> T accept(ContentVisitor<T> v) {
120  return v.visit(this);
121  }
122 
132  @Override
133  public String toString(boolean preserveState) {
134  return super.toString(preserveState) + "Directory [\t" + "]\t"; //NON-NLS
135  }
136 
176  @Deprecated
177  @SuppressWarnings("deprecation")
178  protected Directory(SleuthkitCase db,
179  long objId,
180  long fsObjId,
181  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
182  String name,
183  long metaAddr, int metaSeq,
185  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
186  long size,
187  long ctime, long crtime, long atime, long mtime,
188  short modes, int uid, int gid,
189  String md5Hash, FileKnown knownState, String parentPath) {
190  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);
191  }
192 
240  @Deprecated
241  @SuppressWarnings("deprecation")
243  long objId,
244  long dataSourceObjectId,
245  long fsObjId,
246  TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
247  String name,
248  long metaAddr, int metaSeq,
250  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags,
251  long size,
252  long ctime, long crtime, long atime, long mtime,
253  short modes, int uid, int gid,
254  String md5Hash, FileKnown knownState, String parentPath) {
255  this(db, objId, dataSourceObjectId, fsObjId, attrType, (int) attrId, name, metaAddr, metaSeq, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, null, knownState, parentPath, OsAccount.NO_OWNER_ID, OsAccount.NO_ACCOUNT);
256  }
257 }
FS
File that can be found in file system tree.
Definition: TskData.java:685
final TSK_FS_NAME_TYPE_ENUM dirType
final TskData.TSK_FS_ATTR_TYPE_ENUM attrType
Set< TSK_FS_META_FLAG_ENUM > metaFlags
final Set< TskData.TSK_FS_META_MODE_ENUM > modes
String toString(boolean preserveState)
Definition: Directory.java:133
final TSK_FS_META_TYPE_ENUM metaType

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.