com.onewebsql.util.io
Class NoOpSizeLimitReaderMonitor

java.lang.Object
  extended by com.onewebsql.util.io.NoOpSizeLimitReaderMonitor
All Implemented Interfaces:
SizeLimitReaderMonitor

public class NoOpSizeLimitReaderMonitor
extends Object
implements SizeLimitReaderMonitor


Constructor Summary
NoOpSizeLimitReaderMonitor()
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpSizeLimitReaderMonitor

public NoOpSizeLimitReaderMonitor()
Method Detail

close

public void close(long position,
                  boolean proxiesClose)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.close().

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

mark

public void mark(long position,
                 int readAheadLimit)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.mark(int).

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

markSupported

public void markSupported(long position,
                          boolean markSupported)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.markSupported().

Specified by:
markSupported in interface SizeLimitReaderMonitor
Parameters:
position - the position in the stream
markSupported - (result of SizeLimitReader.markSupported())

read

public void read(long position,
                 int read)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.read().

Specified by:
read in interface SizeLimitReaderMonitor
Parameters:
position - the position in the stream
read - the result of SizeLimitReader.read() (the byte read)

read

public void read(long position,
                 char[] buf,
                 int off,
                 int len,
                 int readCount)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.read(char[],int,int).

Specified by:
read in interface SizeLimitReaderMonitor
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

public void read(long position,
                 char[] buf,
                 int readCount)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.read(char[]).

Specified by:
read in interface SizeLimitReaderMonitor
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

public void ready(long position,
                  boolean ready)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.ready().

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

reset

public void reset(long position)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.reset().

Specified by:
reset in interface SizeLimitReaderMonitor
Parameters:
position - the position in the stream after the call to SizeLimitReader.reset().

skip

public void skip(long position,
                 long length,
                 long skipped)
Description copied from interface: SizeLimitReaderMonitor
Callback of SizeLimitReader.skip(long).

Specified by:
skip in interface SizeLimitReaderMonitor
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.