Sleuth Kit Java Bindings (JNI)  4.11.1
Java bindings for using The Sleuth Kit
CarvingResult.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2011-2016 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.ArrayList;
22 import java.util.List;
23 
28 public final class CarvingResult {
29 
30  private final Content parent;
31  private final List<CarvedFile> carvedFiles;
32 
41  public CarvingResult(Content parent, List<CarvedFile> carvedFiles) {
42  this.parent = parent;
43  this.carvedFiles = new ArrayList<CarvedFile>(carvedFiles);
44  }
45 
51  final Content getParent() {
52  return parent;
53  }
54 
60  final List<CarvedFile> getCarvedFiles() {
61  return carvedFiles;
62  }
63 
67  public final static class CarvedFile {
68 
69  private final String name;
70  private final long sizeInBytes;
71  private final List<TskFileRange> layoutInParent;
72 
80  public CarvedFile(String name, long sizeInBytes, List<TskFileRange> layoutInParent) {
81  this.name = name;
82  this.sizeInBytes = sizeInBytes;
83  this.layoutInParent = layoutInParent;
84  }
85 
91  final String getName() {
92  return name;
93  }
94 
100  final long getSizeInBytes() {
101  return sizeInBytes;
102  }
103 
110  final List<TskFileRange> getLayoutInParent() {
111  return layoutInParent;
112  }
113 
114  }
115 
116 }
CarvedFile(String name, long sizeInBytes, List< TskFileRange > layoutInParent)
CarvingResult(Content parent, List< CarvedFile > carvedFiles)

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.