com.ejie.r01f.io
Class BytesInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.ejie.r01f.io.BytesInputStream

public class BytesInputStream
extends java.io.InputStream

Versión des-sincronizada de ByteArrayInputStream.

Author:
Copyright (c) 2002 Merlin Hughes

Constructor Summary
BytesInputStream(byte[] data)
           
BytesInputStream(byte[] data, int offset, int length)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] data, int offset, int length)
           
 void reset()
           
 long skip(long amount)
           
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesInputStream

public BytesInputStream(byte[] data)

BytesInputStream

public BytesInputStream(byte[] data,
                        int offset,
                        int length)
Method Detail

read

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

read

public int read(byte[] data,
                int offset,
                int length)
         throws java.io.IOException
Throws:
java.io.IOException

skip

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

available

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

close

public void close()

mark

public void mark(int readLimit)

reset

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

markSupported

public boolean markSupported()