Go to the documentation of this file.
19package org.sleuthkit.autopsy.ingest;
29 private final IngestJob ingestJob;
30 private boolean closed =
false;
31 private boolean isStopped =
false;
32 private final IngestJobStartResult ingestJobStartResult;
40 IngestJobInputStream(IngestJob ingestJob) {
41 this.ingestJob = ingestJob;
42 ingestJobStartResult = IngestManager.getInstance().startIngestJob(ingestJob);
50 IngestJobStartResult getIngestJobStartResult() {
51 return ingestJobStartResult;
55 public synchronized void addFiles(List<Long> fileObjectIds)
throws IngestStreamClosedException {
57 throw new IngestStreamClosedException(
"Can not add files - ingest stream is closed");
59 ingestJob.addStreamedFiles(fileObjectIds);
68 public synchronized void close() {
70 ingestJob.addStreamedDataSource();
74 public synchronized boolean isClosed() {
79 public synchronized void stop() {
81 this.isStopped =
true;
83 ingestJob.cancel(IngestJob.CancellationReason.USER_CANCELLED);
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.