com.onewebsql.util.io
Interface SizeLimitInputStreamMonitor

All Known Implementing Classes:
NoOpSizeLimitInputStreamMonitor

public interface SizeLimitInputStreamMonitor

Monitors the behavior of the class SizeLimitInputStream.


Method Summary
 void available(long position, int available)
          Callback of SizeLimitInputStream.available().
 void close(long position, boolean proxiesClose)
          Callback of SizeLimitInputStream.close().
 void mark(long position, int readAheadLimit)
          Callback of SizeLimitInputStream.mark(int).
 void markSupported(long position, boolean markSupported)
          Callback of SizeLimitInputStream.markSupported().
 void read(long position, byte[] buf, int readCount)
          Callback of SizeLimitInputStream.read(byte[]).
 void read(long position, byte[] buf, int off, int len, int readCount)
          Callback of SizeLimitInputStream.read(byte[],int,int).
 void read(long position, int read)
          Callback of SizeLimitInputStream.read().
 void reset(long beforeResetPosition, long afterResetPosition)
          Callback of SizeLimitInputStream.reset().
 void skip(long position, long length, long skipped)
          Callback of SizeLimitInputStream.skip(long).
 

Method Detail

available

void available(long position,
               int available)
Callback of SizeLimitInputStream.available().

Parameters:
position - the position in the stream
available - the result of an estimate of the number of bytes that can be read (an estimate of the number of bytes that can be read)

mark

void mark(long position,
          int readAheadLimit)
Callback of SizeLimitInputStream.mark(int).

Parameters:
position - the position in the stream
readAheadLimit - the parameter of SizeLimitInputStream.mark(int) (read ahead limit)

read

void read(long position,
          int read)
Callback of SizeLimitInputStream.read().

Parameters:
position - the position in the stream
read - the result of SizeLimitInputStream.read() (the byte read)

read

void read(long position,
          byte[] buf,
          int off,
          int len,
          int readCount)
Callback of SizeLimitInputStream.read(byte[],int,int).

Parameters:
position - the position in the stream
buf - the buffer to read the bytes into (parameter of SizeLimitInputStream.read(byte[],int,int))
off - the start offset (parameter of SizeLimitInputStream.read(byte[],int,int))
len - the number of bytes to read (parameter of SizeLimitInputStream.read(byte[],int,int))
readCount - the result of SizeLimitInputStream.read(byte[],int,int) (number of bytes read)

read

void read(long position,
          byte[] buf,
          int readCount)
Callback of SizeLimitInputStream.read(byte[]).

Parameters:
position - the position in the stream
buf - the buffer to read the bytes into (parameter of SizeLimitInputStream.read(byte[],int,int))
readCount - the result of SizeLimitInputStream.read(byte[]) (number of bytes read)

reset

void reset(long beforeResetPosition,
           long afterResetPosition)
Callback of SizeLimitInputStream.reset().

Parameters:
beforeResetPosition - the position in the stream before the call to SizeLimitInputStream#reset()).
afterResetPosition - the position in the stream after the call to SizeLimitInputStream#reset()).

skip

void skip(long position,
          long length,
          long skipped)
Callback of SizeLimitInputStream.skip(long).

Parameters:
position - the position in the stream
length - the number of bytes to skip (parameter of SizeLimitInputStream#skip(long)))
skipped - the number of bytes to skipped (result of SizeLimitInputStream#skip(long)))

close

void close(long position,
           boolean proxiesClose)
Callback of SizeLimitInputStream.close().

Parameters:
position - the position in the stream
proxiesClose - the value of SizeLimitInputStream#proxiesClose) at the time of SizeLimitInputStream#close()).

markSupported

void markSupported(long position,
                   boolean markSupported)
Callback of SizeLimitInputStream.markSupported().

Parameters:
position - the position in the stream
markSupported - (result of SizeLimitInputStream.markSupported())


Copyright © 2011-2013 e-point SA. All Rights Reserved.