Sleuth Kit Java Bindings (JNI)  4.9.0
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-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;
22 import java.util.List;
27 
31 public abstract class SpecialDirectory extends AbstractFile {
32 
34  long objId,
35  long dataSourceObjectId,
37  String name,
39  long metaAddr, int metaSeq,
42  long size,
43  long ctime, long crtime, long atime, long mtime,
44  short modes,
45  int uid, int gid,
47  String parentPath,
48  String mimeType) {
49  super(db, objId, dataSourceObjectId, attrType, attrId, name,
50  fileType, metaAddr, metaSeq, dirType, metaType, dirFlag,
51  metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath, mimeType, null);
52  }
53 
63  @Override
64  public List<TskFileRange> getRanges() throws TskCoreException {
65  return Collections.<TskFileRange>emptyList();
66  }
67 
73  public boolean isDataSource() {
74  return (this.getDataSourceObjectId() == this.getId());
75  }
76 
80  @Override
81  public void close() {
82  }
83 
90  @Override
91  public boolean isRoot() {
92  return false;
93  }
94 }
final TSK_FS_NAME_TYPE_ENUM dirType
final TSK_FS_NAME_FLAG_ENUM dirFlag
final TskData.TSK_DB_FILES_TYPE_ENUM fileType
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
final TSK_FS_META_TYPE_ENUM metaType

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