fi.hut.tml.xsmiles.gui.media.swing
Class StreamBufferer

java.lang.Object
  extended byjava.io.InputStream
      extended byfi.hut.tml.xsmiles.gui.media.swing.StreamBufferer

public class StreamBufferer
extends java.io.InputStream

Class StreamBufferer

Since:
Dec 17, 2003
Version:
$Revision: 5117 $, $Date: 2004-05-18 15:09:20 +0300 (Tue, 18 May 2004) $
Author:
tjjalava

Field Summary
protected  int bytesRead
           
protected  java.io.PrintStream debugStream
           
protected static int MAX_BUFFER_SIZE
           
protected static int MIN_BUFFER_SIZE
           
protected static int START_LIMIT
           
 
Constructor Summary
StreamBufferer(java.io.InputStream input)
           
StreamBufferer(java.io.InputStream input, boolean block)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 void restart(java.io.InputStream input, int contentLength)
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytesRead

protected int bytesRead

MAX_BUFFER_SIZE

protected static final int MAX_BUFFER_SIZE
See Also:
Constant Field Values

MIN_BUFFER_SIZE

protected static final int MIN_BUFFER_SIZE
See Also:
Constant Field Values

START_LIMIT

protected static final int START_LIMIT
See Also:
Constant Field Values

debugStream

protected java.io.PrintStream debugStream
Constructor Detail

StreamBufferer

public StreamBufferer(java.io.InputStream input)
               throws java.io.IOException

StreamBufferer

public StreamBufferer(java.io.InputStream input,
                      boolean block)
               throws java.io.IOException
Method Detail

restart

public void restart(java.io.InputStream input,
                    int contentLength)
             throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

mark

public void mark(int readlimit)

reset

public void reset()
           throws java.io.IOException
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

markSupported

public boolean markSupported()

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Throws:
java.io.IOException


X-Smiles 1.2