Sleuth Kit Java Bindings (JNI)
4.11.1
Java bindings for using The Sleuth Kit
|
Inherits BufferedOutputStream.
Public Member Functions | |
EncodedFileOutputStream (OutputStream out, TskData.EncodingType type) throws IOException | |
EncodedFileOutputStream (OutputStream out, int size, TskData.EncodingType type) throws IOException | |
long | getBytesWritten () |
void | write (int b) throws IOException |
void | write (byte[] b, int off, int len) throws IOException |
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.
org.sleuthkit.datamodel.EncodedFileOutputStream.EncodedFileOutputStream | ( | OutputStream | out, |
TskData.EncodingType | type | ||
) | throws IOException |
Create an encoded output stream using the specified encoding.
out | |
type |
IOException |
Definition at line 44 of file EncodedFileOutputStream.java.
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.
out | |
size | |
type |
IOException |
Definition at line 61 of file EncodedFileOutputStream.java.
long org.sleuthkit.datamodel.EncodedFileOutputStream.getBytesWritten | ( | ) |
Get the number of bytes written to the file, excluding header bytes. This is needed for storing the original length of the file in the tsk_files table in cases where we don't know the size in advance.
Definition at line 100 of file EncodedFileOutputStream.java.
void org.sleuthkit.datamodel.EncodedFileOutputStream.write | ( | int | b | ) | throws IOException |
Definition at line 74 of file EncodedFileOutputStream.java.
void org.sleuthkit.datamodel.EncodedFileOutputStream.write | ( | byte[] | b, |
int | off, | ||
int | len | ||
) | throws IOException |
Definition at line 80 of file EncodedFileOutputStream.java.
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.