Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
CommandLineProgressIndicator.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2020 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 */
19package org.sleuthkit.autopsy.commandlineingest;
20
21import org.sleuthkit.autopsy.progress.LoggingProgressIndicator;
22import org.sleuthkit.autopsy.progress.ProgressIndicator;
23
29
31
32 @Override
33 public void start(String message, int totalWorkUnits) {
34 loggingIndicator.start(message, totalWorkUnits);
35 System.out.println(message);
36 }
37
38 @Override
39 public void start(String message) {
40 loggingIndicator.start(message);
41 System.out.println(message);
42 }
43
44 @Override
45 public void switchToIndeterminate(String message) {
46 loggingIndicator.switchToIndeterminate(message);
47 }
48
49 @Override
50 public void switchToDeterminate(String message, int workUnitsCompleted, int totalWorkUnits) {
51 loggingIndicator.switchToDeterminate(message, workUnitsCompleted, totalWorkUnits);
52 }
53
54 @Override
55 public void progress(String message) {
56 loggingIndicator.progress(message);
57 System.out.println(message);
58 }
59
60 @Override
61 public void progress(int workUnitsCompleted) {
62 loggingIndicator.progress(workUnitsCompleted);
63 }
64
65 @Override
66 public void progress(String message, int workUnitsCompleted) {
67 loggingIndicator.progress(message);
68 System.out.println(message);
69 }
70
71 @Override
72 public void finish() {
73 loggingIndicator.finish();
74 }
75}
void switchToDeterminate(String message, int workUnitsCompleted, int totalWorkUnits)

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.