com.alibaba.simpleimage.io
类 ByteArrayInputStream

java.lang.Object
  继承者 java.io.InputStream
      继承者 com.alibaba.simpleimage.io.ByteArrayInputStream
所有已实现的接口:
Closeable

public class ByteArrayInputStream
extends InputStream

非同步的ByteArrayInputStream替换方案, 本代码移植自IBM developer works精彩文章, 参见package文档.

版本:
$Id: ByteArrayInputStream.java 509 2004-02-16 05:42:07Z baobao $
作者:
Michael Zhou, wendell

构造方法摘要
ByteArrayInputStream(byte[] data)
           
ByteArrayInputStream(byte[] data, int offset, int length)
           
 
方法摘要
 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)
           
 
从类 java.io.InputStream 继承的方法
read
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ByteArrayInputStream

public ByteArrayInputStream(byte[] data)

ByteArrayInputStream

public ByteArrayInputStream(byte[] data,
                            int offset,
                            int length)
方法详细信息

read

public int read()
         throws IOException
指定者:
InputStream 中的 read
抛出:
IOException

read

public int read(byte[] data,
                int offset,
                int length)
         throws IOException
覆盖:
InputStream 中的 read
抛出:
IOException

skip

public long skip(long amount)
          throws IOException
覆盖:
InputStream 中的 skip
抛出:
IOException

available

public int available()
              throws IOException
覆盖:
InputStream 中的 available
抛出:
IOException

close

public void close()
指定者:
接口 Closeable 中的 close
覆盖:
InputStream 中的 close

mark

public void mark(int readLimit)
覆盖:
InputStream 中的 mark

reset

public void reset()
           throws IOException
覆盖:
InputStream 中的 reset
抛出:
IOException

markSupported

public boolean markSupported()
覆盖:
InputStream 中的 markSupported


Copyright © 2012–2013 Alibaba Group. All rights reserved.