类 ByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- cn.mcres.karlatemp.mxlib.util.ByteBufferInputStream
-
- 所有已实现的接口:
Closeable
,AutoCloseable
public class ByteBufferInputStream extends InputStream
InputStream with ByteBuffer.- 从以下版本开始:
- 2.3
-
-
构造器概要
构造器 构造器 说明 ByteBufferInputStream(ByteBuffer buffer)
-
方法概要
-
从类继承的方法 java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
-
-
-
构造器详细资料
-
ByteBufferInputStream
public ByteBufferInputStream(@NotNull ByteBuffer buffer)
-
-
方法详细资料
-
read
public int read()
- 指定者:
read
在类中InputStream
-
read
public int read(@NotNull byte[] b)
- 覆盖:
read
在类中InputStream
-
read
public int read(@NotNull byte[] b, int off, int len)
- 覆盖:
read
在类中InputStream
-
available
public int available() throws IOException
- 覆盖:
available
在类中InputStream
- 抛出:
IOException
-
-