com.sybase.jdbc2.utils
Class CacheStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--com.sybase.jdbc2.utils.CacheStream

public class CacheStream
extends InputStream


Field Summary
 (package private) com.sybase.jdbc2.utils.CacheManager_cm
           
 (package private) com.sybase.jdbc2.utils.CacheChunk_current
           
 (package private) boolean_dead
           
 (package private) com.sybase.jdbc2.utils.CacheChunk_first
           
 (package private) java.io.InputStream_is
           
 (package private) com.sybase.jdbc2.utils.CacheChunk_last
           
 (package private) int_nextByte
           
 private boolean_reset
           
 (package private) boolean_rewindable
           
 (package private) int_timeout
           
 private final static intLOW_BYTE
           

Constructor Summary
CacheStream(com.sybase.jdbc2.utils.CacheManager , java.io.InputStream , int )
           

Method Summary
 private voidaddChunk(int )
           
 synchronized intavailable()
           
 longcacheSize()
           
 private voidcheckMe()
           
 synchronized voidclose()
           
 synchronized intread()
           
 synchronized intread(byte[] )
           
 synchronized intread(byte[] , int , int )
           
 synchronized voidreset()
           
 synchronized longskip(long )
           

Methods inherited from class java.io.InputStream
mark, markSupported

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

_cm

com.sybase.jdbc2.utils.CacheManager _cm

_current

com.sybase.jdbc2.utils.CacheChunk _current

_dead

boolean _dead

_first

com.sybase.jdbc2.utils.CacheChunk _first

_is

java.io.InputStream _is

_last

com.sybase.jdbc2.utils.CacheChunk _last

_nextByte

int _nextByte

_reset

private boolean _reset

_rewindable

boolean _rewindable

_timeout

int _timeout

LOW_BYTE

private final static int LOW_BYTE
Constructor Detail

CacheStream

public CacheStream(com.sybase.jdbc2.utils.CacheManager , java.io.InputStream , int )
Method Detail

addChunk

private void addChunk(int )

available

public synchronized int available()

cacheSize

public long cacheSize()

checkMe

private void checkMe()

close

public synchronized void close()

read

public synchronized int read()

read

public synchronized int read(byte[] )

read

public synchronized int read(byte[] , int , int )

reset

public synchronized void reset()

skip

public synchronized long skip(long )