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
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–2015 Alibaba Group. All rights reserved.