Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
Directory.java
Go to the documentation of this file.
1/*
2 * SleuthKit Java Bindings
3 *
4 * Copyright 2011-2022 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 */
19package org.sleuthkit.datamodel;
20
21import java.util.Collections;
22import org.sleuthkit.datamodel.TskData.FileKnown;
23import org.sleuthkit.datamodel.TskData.TSK_FS_ATTR_TYPE_ENUM;
24import org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM;
25import org.sleuthkit.datamodel.TskData.TSK_FS_NAME_FLAG_ENUM;
26import org.sleuthkit.datamodel.TskData.TSK_FS_NAME_TYPE_ENUM;
27
31public class Directory extends FsContent {
32
82 Directory(SleuthkitCase db,
83 long objId,
84 long dataSourceObjectId,
85 long fsObjId,
87 String name,
88 long metaAddr, int metaSeq,
91 long size,
92 long ctime, long crtime, long atime, long mtime,
93 short modes, int uid, int gid,
94 String md5Hash, String sha256Hash, String sha1Hash,
96 String ownerUid, Long osAccountObjId) {
97 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, sha1Hash, knownState, parentPath, null, null, ownerUid, osAccountObjId, TskData.CollectedStatus.UNKNOWN, Collections.emptyList());
98 }
99
108 @Override
109 public <T> T accept(SleuthkitItemVisitor<T> v) {
110 return v.visit(this);
111 }
112
121 @Override
122 public <T> T accept(ContentVisitor<T> v) {
123 return v.visit(this);
124 }
125
135 @Override
136 public String toString(boolean preserveState) {
137 return super.toString(preserveState) + "Directory [\t" + "]\t"; //NON-NLS
138 }
139
179 @Deprecated
180 @SuppressWarnings("deprecation")
181 protected Directory(SleuthkitCase db,
182 long objId,
183 long fsObjId,
185 String name,
186 long metaAddr, int metaSeq,
189 long size,
190 long ctime, long crtime, long atime, long mtime,
191 short modes, int uid, int gid,
192 String md5Hash, FileKnown knownState, String parentPath) {
193 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);
194 }
195
243 @Deprecated
244 @SuppressWarnings("deprecation")
246 long objId,
247 long dataSourceObjectId,
248 long fsObjId,
250 String name,
251 long metaAddr, int metaSeq,
254 long size,
255 long ctime, long crtime, long atime, long mtime,
256 short modes, int uid, int gid,
257 String md5Hash, FileKnown knownState, String parentPath) {
258 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, null, knownState, parentPath, OsAccount.NO_OWNER_ID, OsAccount.NO_ACCOUNT);
259 }
260}
Set< TSK_FS_META_FLAG_ENUM > metaFlags
final TSK_FS_NAME_TYPE_ENUM dirType
final TSK_FS_META_TYPE_ENUM metaType
final TskData.TSK_FS_ATTR_TYPE_ENUM attrType
final Set< TskData.TSK_FS_META_MODE_ENUM > modes
String toString(boolean preserveState)
FS
File that can be found in file system tree.
Definition TskData.java:695

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