Sleuth Kit Java Bindings (JNI)  4.3
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.EncodedFileOutputStream Class Reference

Inherits BufferedOutputStream.

Public Member Functions

 EncodedFileOutputStream (OutputStream out, TskData.EncodingType type) throws IOException
 
 EncodedFileOutputStream (OutputStream out, int size, TskData.EncodingType type) throws IOException
 
void write (int b) throws IOException
 
void write (byte[] b, int off, int len) throws IOException
 

Private Member Functions

void writeHeader () throws IOException
 

Private Attributes

TskData.EncodingType type
 

Detailed Description

Output stream wrapper for encoding files being written to disk. The idea is to prevent malicious files from getting extracted onto the user's hard drive in their original form. The encoding type used here should match the one used to create the derived file database entry for this file.

Definition at line 31 of file EncodedFileOutputStream.java.

Constructor & Destructor Documentation

org.sleuthkit.datamodel.EncodedFileOutputStream.EncodedFileOutputStream ( OutputStream  out,
TskData.EncodingType  type 
) throws IOException

Create an encoded output stream using the specified encoding.

Parameters
out
type
Exceptions
IOException

Definition at line 40 of file EncodedFileOutputStream.java.

References org.sleuthkit.datamodel.EncodedFileOutputStream.type, and org.sleuthkit.datamodel.EncodedFileOutputStream.writeHeader().

org.sleuthkit.datamodel.EncodedFileOutputStream.EncodedFileOutputStream ( OutputStream  out,
int  size,
TskData.EncodingType  type 
) throws IOException

Create an encoded output stream using the specified encoding and buffer size.

Parameters
out
size
type
Exceptions
IOException

Definition at line 53 of file EncodedFileOutputStream.java.

References org.sleuthkit.datamodel.EncodedFileOutputStream.type, and org.sleuthkit.datamodel.EncodedFileOutputStream.writeHeader().

Member Function Documentation

void org.sleuthkit.datamodel.EncodedFileOutputStream.write ( int  b) throws IOException
void org.sleuthkit.datamodel.EncodedFileOutputStream.write ( byte[]  b,
int  off,
int  len 
) throws IOException
void org.sleuthkit.datamodel.EncodedFileOutputStream.writeHeader ( ) throws IOException
private

Member Data Documentation


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

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