Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect Class Reference

Inherits Thread.

Public Member Functions

final void run ()
 
void stopRun ()
 

Private Attributes

volatile boolean doRun = false
 
final InputStream is
 
Writer writer = null
 

Static Private Attributes

static final Logger logger = Logger.getLogger(StreamToStringRedirect.class.getName())
 

Detailed Description

Asynchronously read the output of a given input stream and write to a file writer passed in by the client. Client is responsible for closing the writer.

Any exception during execution of the command is managed in this thread.

Definition at line 481 of file ExecUtil.java.

Member Function Documentation

final void org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.run ( )

Asynchronous read of the input stream.
Will report output as its its displayed.

See also
java.lang.Thread::run()

Definition at line 501 of file ExecUtil.java.

void org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.stopRun ( )

Stop running the stream redirect. The thread will exit out gracefully after the current readLine() on stream unblocks

Definition at line 533 of file ExecUtil.java.

Member Data Documentation

volatile boolean org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.doRun = false
private

Definition at line 485 of file ExecUtil.java.

final InputStream org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.is
private

Definition at line 484 of file ExecUtil.java.

final Logger org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.logger = Logger.getLogger(StreamToStringRedirect.class.getName())
staticprivate

Definition at line 483 of file ExecUtil.java.

Writer org.sleuthkit.autopsy.coreutils.ExecUtil.StreamToWriterRedirect.writer = null
private

Definition at line 486 of file ExecUtil.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2019 Basis Technology. Generated on: Tue Jan 7 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.