com.onewebsql.util.io
Interface SizeLimitReaderMonitor

All Known Implementing Classes:
NoOpSizeLimitReaderMonitor

public interface SizeLimitReaderMonitor

Monitors the behavior of the class SizeLimitReader.


Method Summary
 void close(long position, boolean proxiesClose)
          Callback of SizeLimitReader.close().
 void mark(long position, int readAheadLimit)
          Callback of SizeLimitReader.mark(int).
 void markSupported(long position, boolean markSupported)
          Callback of SizeLimitReader.markSupported().
 void read(long position, char[] buf, int readCount)
          Callback of SizeLimitReader.read(char[]).
 void read(long position, char[] buf, int off, int len, int readCount)
          Callback of SizeLimitReader.read(char[],int,int).
 void read(long position, int read)
          Callback of SizeLimitReader.read().
 void ready(long position, boolean ready)
          Callback of SizeLimitReader.ready().
 void reset(long position)
          Callback of SizeLimitReader.reset().
 void skip(long position, long length, long skipped)
          Callback of SizeLimitReader.skip(long).
 

Method Detail

close

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

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

mark

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

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

markSupported

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

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

read

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

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

read

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

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

read

void read(long position,
          char[] buf,
          int readCount)
Callback of SizeLimitReader.read(char[]).

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

ready

void ready(long position,
           boolean ready)
Callback of SizeLimitReader.ready().

Parameters:
position - the position in the stream
ready - the result of SizeLimitReader.ready() (true if the stream is ready to be read)

reset

void reset(long position)
Callback of SizeLimitReader.reset().

Parameters:
position - the position in the stream after the call to SizeLimitReader.reset().

skip

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

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


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