Sleuth Kit Java Bindings (JNI)  4.10.0
Java bindings for using The Sleuth Kit
File.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 
26 
30 public class File extends FsContent {
31 
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, FileKnown knownState, String parentPath, String mimeType,
93  String extension) {
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, knownState, parentPath, mimeType, extension);
95  }
96 
105  @Override
106  public <T> T accept(SleuthkitItemVisitor<T> visitor) {
107  return visitor.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) + "File [\t" + "]\t"; //NON-NLS
135  }
136 
176  @Deprecated
177  @SuppressWarnings("deprecation")
178  protected File(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, null);
191  }
192 
242  @Deprecated
243  @SuppressWarnings("deprecation")
244  File(SleuthkitCase db, long objId, long dataSourceObjectId, long fsObjId, TSK_FS_ATTR_TYPE_ENUM attrType, short attrId,
245  String name, long metaAddr, int metaSeq, TSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType,
246  TSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, long size, long ctime, long crtime, long atime, long mtime,
247  short modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath, String mimeType) {
248  this(db, objId, dataSourceObjectId, fsObjId, attrType, (int) attrId, name, metaAddr, metaSeq, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath, mimeType, null);
249  }
250 }
FS
File that can be found in file system tree.
Definition: TskData.java:676
final TSK_FS_NAME_TYPE_ENUM dirType
final TSK_FS_NAME_FLAG_ENUM dirFlag
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
String toString(boolean preserveState)
Definition: File.java:133

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.