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

Inherits InputStream.

Public Member Functions

 ReadContentInputStream (Content content)
int available () throws IOException
void close () throws IOException
long getCurPosition ()
long getLength ()
 additional methods to facilitate stream seeking More...
boolean markSupported ()
int read () throws IOException
int read (byte[] b) throws IOException
int read (byte[] b, int off, int len) throws IOException
long seek (long newPosition)
long skip (long n) throws IOException

Private Attributes

Content content
long contentSize
long currentOffset

Static Private Attributes

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

Detailed Description

InputStream to read bytes from a Content object's data

Definition at line 29 of file

Constructor & Destructor Documentation

org.sleuthkit.datamodel.ReadContentInputStream.ReadContentInputStream ( Content  content)

Member Function Documentation

int org.sleuthkit.datamodel.ReadContentInputStream.available ( ) throws IOException
void org.sleuthkit.datamodel.ReadContentInputStream.close ( ) throws IOException

Definition at line 136 of file

long org.sleuthkit.datamodel.ReadContentInputStream.getCurPosition ( )

Get current position in the stream

current offset in bytes

Definition at line 161 of file

References org.sleuthkit.datamodel.ReadContentInputStream.currentOffset.

long org.sleuthkit.datamodel.ReadContentInputStream.getLength ( )

additional methods to facilitate stream seeking

Get total length of the stream

number of bytes that can be read from this stream

Definition at line 152 of file

References org.sleuthkit.datamodel.ReadContentInputStream.contentSize.

boolean org.sleuthkit.datamodel.ReadContentInputStream.markSupported ( )

Definition at line 142 of file

int ( ) throws IOException
int ( byte[]  b) throws IOException
int ( byte[]  b,
int  off,
int  len 
) throws IOException
long ( long  newPosition)

Set new current position in the stream, up to and including EOF

newPositionnew position in the stream to be set
the actual position set, which can be less than position passed in if EOF has been reached

Definition at line 173 of file

References org.sleuthkit.datamodel.ReadContentInputStream.currentOffset.

long org.sleuthkit.datamodel.ReadContentInputStream.skip ( long  n) throws IOException

Definition at line 126 of file

Member Data Documentation

Content org.sleuthkit.datamodel.ReadContentInputStream.content
long org.sleuthkit.datamodel.ReadContentInputStream.contentSize
final Logger org.sleuthkit.datamodel.ReadContentInputStream.logger = Logger.getLogger(ReadContentInputStream.class.getName())

Definition at line 34 of file

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.