Sleuth Kit Java Bindings (JNI)  4.12.1
Java bindings for using The Sleuth Kit
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  */
19 package org.sleuthkit.datamodel;
20 
21 import java.util.Collections;
22 import java.util.List;
27 
31 public abstract class SpecialDirectory extends AbstractFile {
32 
34  long objId,
35  long dataSourceObjectId,
36  Long fileSystemObjectId,
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,
52  fileType, metaAddr, metaSeq, dirType, metaType, dirFlag,
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 }
final TSK_FS_NAME_TYPE_ENUM dirType
final TskData.TSK_DB_FILES_TYPE_ENUM fileType
final TskData.TSK_FS_ATTR_TYPE_ENUM attrType
Set< TSK_FS_META_FLAG_ENUM > metaFlags
final Set< TskData.TSK_FS_META_MODE_ENUM > modes
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.