@NotThreadSafe public class UnsafeByteArrayInputStream extends InputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
mData |
protected int |
mLimit |
protected int |
mMark |
protected int |
mPosition |
| 构造器和说明 |
|---|
UnsafeByteArrayInputStream(byte[] buf) |
UnsafeByteArrayInputStream(byte[] buf,
int offset) |
UnsafeByteArrayInputStream(byte[] buf,
int offset,
int length) |
protected byte[] mData
protected int mPosition
protected int mLimit
protected int mMark
public UnsafeByteArrayInputStream(byte[] buf)
public UnsafeByteArrayInputStream(byte[] buf,
int offset)
public UnsafeByteArrayInputStream(byte[] buf,
int offset,
int length)
public int read()
read 在类中 InputStreampublic int read(byte[] b,
int off,
int len)
read 在类中 InputStreampublic long skip(long len)
skip 在类中 InputStreampublic int available()
available 在类中 InputStreampublic boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readAheadLimit)
mark 在类中 InputStreampublic void reset()
reset 在类中 InputStreampublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic int position()
public void position(int newPosition)
public int size()
Copyright © 2008–2018 The Ant Financial. All rights reserved.