MOA 12.03
Real Time Analytics for Data Streams
moa.core.InputStreamProgressMonitor Class Reference

Class for monitoring the progress of reading an input stream. More...

Inheritance diagram for moa.core.InputStreamProgressMonitor:
Collaboration diagram for moa.core.InputStreamProgressMonitor:

List of all members.

Public Member Functions

 InputStreamProgressMonitor (InputStream in)
int getBytesRead ()
int getBytesRemaining ()
double getProgressFraction ()
int read () throws IOException
int read (byte[] b) throws IOException
int read (byte[] b, int off, int len) throws IOException
long skip (long n) throws IOException
synchronized void reset () throws IOException

Protected Attributes

int inputByteSize
 The number of bytes to read in total.
int inputBytesRead
 The number of bytes read so far.

Detailed Description

Class for monitoring the progress of reading an input stream.

Author:
Richard Kirkby ([email protected])
Version:
Revision:
7

Definition at line 32 of file InputStreamProgressMonitor.java.


Constructor & Destructor Documentation

moa.core.InputStreamProgressMonitor.InputStreamProgressMonitor ( InputStream  in)

Definition at line 40 of file InputStreamProgressMonitor.java.


Member Function Documentation

int moa.core.InputStreamProgressMonitor.getBytesRead ( )

Definition at line 50 of file InputStreamProgressMonitor.java.

int moa.core.InputStreamProgressMonitor.getBytesRemaining ( )

Definition at line 54 of file InputStreamProgressMonitor.java.

double moa.core.InputStreamProgressMonitor.getProgressFraction ( )
int moa.core.InputStreamProgressMonitor.read ( ) throws IOException

Definition at line 68 of file InputStreamProgressMonitor.java.

int moa.core.InputStreamProgressMonitor.read ( byte[]  b) throws IOException

Definition at line 82 of file InputStreamProgressMonitor.java.

int moa.core.InputStreamProgressMonitor.read ( byte[]  b,
int  off,
int  len 
) throws IOException

Definition at line 96 of file InputStreamProgressMonitor.java.

synchronized void moa.core.InputStreamProgressMonitor.reset ( ) throws IOException

Definition at line 124 of file InputStreamProgressMonitor.java.

long moa.core.InputStreamProgressMonitor.skip ( long  n) throws IOException

Definition at line 110 of file InputStreamProgressMonitor.java.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations