public class UnsafeByteArrayInputStream extends InputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
data |
protected int |
limit |
protected int |
mark |
protected int |
position |
| 构造器和说明 |
|---|
UnsafeByteArrayInputStream(byte[] buf) |
UnsafeByteArrayInputStream(byte[] buf,
int offset) |
UnsafeByteArrayInputStream(byte[] buf,
int offset,
int length) |
protected byte[] data
protected int position
protected int limit
protected int mark
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 © 2014–2016. All rights reserved.