类 UnsafeByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.alibaba.dubbo.common.io.UnsafeByteArrayInputStream
-
- 所有已实现的接口:
Closeable
,AutoCloseable
public class UnsafeByteArrayInputStream extends InputStream
UnsafeByteArrayInputStrem.
-
-
构造器概要
构造器 构造器 说明 UnsafeByteArrayInputStream(byte[] buf)
UnsafeByteArrayInputStream(byte[] buf, int offset)
UnsafeByteArrayInputStream(byte[] buf, int offset, int length)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
available()
void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
position()
void
position(int newPosition)
int
read()
int
read(byte[] b, int off, int len)
void
reset()
int
size()
long
skip(long len)
-
从类继承的方法 java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
方法详细资料
-
read
public int read()
- 指定者:
read
在类中InputStream
-
read
public int read(byte[] b, int off, int len)
- 覆盖:
read
在类中InputStream
-
skip
public long skip(long len)
- 覆盖:
skip
在类中InputStream
-
available
public int available()
- 覆盖:
available
在类中InputStream
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported
在类中InputStream
-
mark
public void mark(int readAheadLimit)
- 覆盖:
mark
在类中InputStream
-
reset
public void reset()
- 覆盖:
reset
在类中InputStream
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中InputStream
- 抛出:
IOException
-
position
public int position()
-
position
public void position(int newPosition)
-
size
public int size()
-
-