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

Inherits InputStream.


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

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

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

Definition at line 130 of file

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

Get current position in the stream

current offset in bytes

Definition at line 155 of file

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 146 of file

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

Definition at line 136 of file

int ( ) throws ReadContentInputStreamException
int ( byte[]  b) throws ReadContentInputStreamException
int ( byte[]  b,
int  off,
int  len 
) throws ReadContentInputStreamException
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 167 of file

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

Definition at line 120 of file

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

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.