com.github.libxjava.io
Class BufferedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.github.libxjava.io.BufferedInputStream

public abstract class BufferedInputStream
extends InputStream

Version:
libxjava-cldc - 0.3
Author:
Marcel Patzlaff

Field Summary
protected  int bufsize
           
protected  Object worklock
           
 
Constructor Summary
protected BufferedInputStream(int bufsize)
           
 
Method Summary
 int available()
           
 void clear()
           
protected  int getPayloadEnd()
           
protected  int getPayloadStart()
           
protected abstract  int internalRead(byte[] buffer)
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufsize

protected final int bufsize

worklock

protected final Object worklock
Constructor Detail

BufferedInputStream

protected BufferedInputStream(int bufsize)
Method Detail

available

public final int available()
Overrides:
available in class InputStream

clear

public final void clear()

read

public final int read()
               throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public final int read(byte[] b,
                      int off,
                      int len)
               throws IOException
Overrides:
read in class InputStream
Throws:
IOException

getPayloadStart

protected int getPayloadStart()

getPayloadEnd

protected int getPayloadEnd()

internalRead

protected abstract int internalRead(byte[] buffer)
                             throws IOException
Throws:
IOException


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.