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 ReadContentInputStream.java.

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 ReadContentInputStream.java.

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

Get current position in the stream

Returns
current offset in bytes

Definition at line 161 of file ReadContentInputStream.java.

References org.sleuthkit.datamodel.ReadContentInputStream.currentOffset.

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

additional methods to facilitate stream seeking

Get total length of the stream

Returns
number of bytes that can be read from this stream

Definition at line 152 of file ReadContentInputStream.java.

References org.sleuthkit.datamodel.ReadContentInputStream.contentSize.

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

Definition at line 142 of file ReadContentInputStream.java.

int org.sleuthkit.datamodel.ReadContentInputStream.read ( ) throws IOException
int org.sleuthkit.datamodel.ReadContentInputStream.read ( byte[]  b) throws IOException
int org.sleuthkit.datamodel.ReadContentInputStream.read ( byte[]  b,
int  off,
int  len 
) throws IOException
long org.sleuthkit.datamodel.ReadContentInputStream.seek ( long  newPosition)

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

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

Definition at line 173 of file ReadContentInputStream.java.

References org.sleuthkit.datamodel.ReadContentInputStream.currentOffset.

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

Definition at line 126 of file ReadContentInputStream.java.

Member Data Documentation

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

Definition at line 34 of file ReadContentInputStream.java.


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.