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

Inherits InputStream.

Classes

class  ReadContentInputStreamException
 

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 ReadContentInputStreamException
 
int read (byte[] b) throws ReadContentInputStreamException
 
int read (byte[] b, int off, int len) throws ReadContentInputStreamException
 
long seek (long newPosition)
 
long skip (long n) throws IOException
 

Detailed Description

InputStream to read bytes from a Content object's data

Definition at line 27 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

Definition at line 111 of file ReadContentInputStream.java.

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

Definition at line 130 of file ReadContentInputStream.java.

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

Get current position in the stream

Returns
current offset in bytes

Definition at line 155 of file ReadContentInputStream.java.

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 146 of file ReadContentInputStream.java.

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

Definition at line 136 of file ReadContentInputStream.java.

int org.sleuthkit.datamodel.ReadContentInputStream.read ( ) throws ReadContentInputStreamException
int org.sleuthkit.datamodel.ReadContentInputStream.read ( byte[]  b) throws ReadContentInputStreamException
int org.sleuthkit.datamodel.ReadContentInputStream.read ( byte[]  b,
int  off,
int  len 
) throws ReadContentInputStreamException
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 167 of file ReadContentInputStream.java.

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

Definition at line 120 of file ReadContentInputStream.java.


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

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