Sleuth Kit Java Bindings (JNI)  4.6.0
Java bindings for using The Sleuth Kit
LocalDirectory.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 
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 package org.sleuthkit.datamodel;
21 
27 
32 public class LocalDirectory extends SpecialDirectory {
33 
57  long objId,
58  long dataSourceObjectId,
59  String name,
63  String parentPath) {
64  super(db, objId, dataSourceObjectId, TSK_FS_ATTR_TYPE_ENUM.TSK_FS_ATTR_TYPE_DEFAULT, 0, name,
65  TskData.TSK_DB_FILES_TYPE_ENUM.LOCAL_DIR, 0L, 0, dirType, metaType, dirFlag,
66  metaFlags, 0L, 0L, 0L, 0L, 0L, (short) 0, 0, 0, md5Hash, knownState, parentPath, null);
67  }
68 
74  public boolean isDataSource() {
75  return false;
76  }
77 
86  @Override
87  public <T> T accept(ContentVisitor<T> visitor) {
88  return visitor.visit(this);
89  }
90 
99  @Override
100  public <T> T accept(SleuthkitItemVisitor<T> visitor) {
101  return visitor.visit(this);
102  }
103 
114  @Override
115  public String toString(boolean preserveState) {
116  return super.toString(preserveState) + "LocalDirectory [\t" + "]\t"; //NON-NLS
117  }
118 }
final TSK_FS_NAME_TYPE_ENUM dirType
final TSK_FS_NAME_FLAG_ENUM dirFlag
final Set< TSK_FS_META_FLAG_ENUM > metaFlags
LOCAL_DIR
Local directory that was added (not from a disk image)
Definition: TskData.java:678
String toString(boolean preserveState)
final TSK_FS_META_TYPE_ENUM metaType

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