- java.lang.Object
-
- java.io.OutputStream
-
- cn.mcres.karlatemp.mxlib.util.ByteBufferOutputStream
-
- 所有已实现的接口:
Closeable
,Flushable
,AutoCloseable
public class ByteBufferOutputStream extends OutputStream
OutputStream with ByteBuffer- 从以下版本开始:
- 2.3
-
-
构造器概要
构造器 构造器 说明 ByteBufferOutputStream(@NotNull ByteBuffer buffer)
Create OutputStream as buffer.
-
-
-
构造器详细资料
-
ByteBufferOutputStream
public ByteBufferOutputStream(@NotNull @NotNull ByteBuffer buffer)
Create OutputStream as buffer.- 参数:
buffer
- The buffer using- 抛出:
IllegalArgumentException
- If buffer is read only.
-
-
方法详细资料
-
write
public void write(int b) throws IOException
- 指定者:
write
在类中OutputStream
- 抛出:
IOException
-
write
public void write(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
flush
public void flush()
- 指定者:
flush
在接口中Flushable
- 覆盖:
flush
在类中OutputStream
-
-