com.onewebsql.util.io
Class NoOpSizeLimitInputStreamMonitor

java.lang.Object
  extended by com.onewebsql.util.io.NoOpSizeLimitInputStreamMonitor
All Implemented Interfaces:
SizeLimitInputStreamMonitor

public class NoOpSizeLimitInputStreamMonitor
extends Object
implements SizeLimitInputStreamMonitor


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

Constructor Detail

NoOpSizeLimitInputStreamMonitor

public NoOpSizeLimitInputStreamMonitor()
Method Detail

available

public void available(long position,
                      int available)
Description copied from interface: SizeLimitInputStreamMonitor
Callback of SizeLimitInputStream.available().

Specified by:
available in interface SizeLimitInputStreamMonitor
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

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

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

read

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

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

read

public void read(long position,
                 byte[] buf,
                 int off,
                 int len,
                 int readCount)
Description copied from interface: SizeLimitInputStreamMonitor
Callback of SizeLimitInputStream.read(byte[],int,int).

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

public void read(long position,
                 byte[] buf,
                 int readCount)
Description copied from interface: SizeLimitInputStreamMonitor
Callback of SizeLimitInputStream.read(byte[]).

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

public void reset(long beforeResetPosition,
                  long afterResetPosition)
Description copied from interface: SizeLimitInputStreamMonitor
Callback of SizeLimitInputStream.reset().

Specified by:
reset in interface SizeLimitInputStreamMonitor
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

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

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

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

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

markSupported

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

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


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