接口 CloseableDataBuffer
- 所有超级接口:
AutoCloseable,DataBuffer
- 所有已知实现类:
Netty5DataBuffer
Extension of
DataBuffer that allows for buffers that can be used
in a try-with-resources statement.- 从以下版本开始:
- 4.0 2022/8/29 00:18
- 作者:
- Harry Yang, Arjen Poutsma
-
方法概要
从接口继承的方法 cn.taketoday.core.io.buffer.DataBuffer
asByteBuffer, asByteBuffer, asInputStream, asInputStream, asOutputStream, capacity, capacity, ensureCapacity, ensureWritable, factory, getByte, indexOf, lastIndexOf, read, read, read, readableByteCount, readPosition, readPosition, retainedSlice, slice, split, toByteBuffer, toByteBuffer, toString, toString, writableByteCount, write, write, write, write, write, write, writePosition, writePosition
-
方法详细资料
-
close
void close()Closes this data buffer, freeing any resources.- 指定者:
close在接口中AutoCloseable- 抛出:
IllegalStateException- if this buffer has already been closed
-