public class ByteArrayInputStream extends InputStream
ByteArrayInputStream替换方案。本代码移植自IBM developer works文章:
| 构造器和说明 |
|---|
ByteArrayInputStream(byte[] data) |
ByteArrayInputStream(byte[] data,
int offset,
int length) |
public ByteArrayInputStream(byte[] data)
public ByteArrayInputStream(byte[] data,
int offset,
int length)
public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] data,
int offset,
int length)
throws IOException
read 在类中 InputStreamIOExceptionpublic long skip(long amount)
throws IOException
skip 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreampublic void mark(int readLimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreamCopyright © 2006–2018 TinyGroup. All rights reserved.