Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
SpecialDirectory.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 java.util.List;
23import org.sleuthkit.datamodel.TskData.FileKnown;
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 abstract class SpecialDirectory extends AbstractFile {
32
33 SpecialDirectory(SleuthkitCase db,
34 long objId,
35 long dataSourceObjectId,
38 String name,
40 long metaAddr, int metaSeq,
43 long size,
44 long ctime, long crtime, long atime, long mtime,
45 short modes,
46 int uid, int gid,
47 String md5Hash, String sha256Hash, String sha1Hash,
49 String parentPath,
50 String mimeType) {
51 super(db, objId, dataSourceObjectId, fileSystemObjectId, attrType, attrId, name,
53 metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, sha256Hash, sha1Hash, knownState, parentPath, mimeType, null, OsAccount.NO_OWNER_ID, OsAccount.NO_ACCOUNT, TskData.CollectedStatus.UNKNOWN, Collections.emptyList());
54 }
55
65 @Override
66 public List<TskFileRange> getRanges() throws TskCoreException {
67 return Collections.<TskFileRange>emptyList();
68 }
69
75 public boolean isDataSource() {
76 return (this.getDataSourceObjectId() == this.getId());
77 }
78
82 @Override
83 public void close() {
84 }
85
92 @Override
93 public boolean isRoot() {
94 return false;
95 }
96}
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 TskData.TSK_DB_FILES_TYPE_ENUM fileType
final Set< TskData.TSK_FS_META_MODE_ENUM > modes

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.