Top Description Methods
org.springframework.core.io.buffer

public Interface CloseableDataBuffer

extends DataBuffer, AutoCloseable
Known Direct Implementers
org.springframework.core.io.buffer.Netty5DataBuffer

Extension of DataBuffer that allows for buffers that can be used in a try-with-resources statement.
Author
Arjen Poutsma
Since
6.0

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.lang.AutoCloseable.close.

Closes this data buffer, freeing any resources.
Inherited from org.springframework.core.io.buffer.DataBuffer:
asByteBufferasByteBufferasInputStreamasInputStreamasOutputStreamcapacitycapacityensureCapacityensureWritablefactorygetByteindexOflastIndexOfreadreadreadreadableByteBuffersreadableByteCountreadPositionreadPositionretainedSliceslicesplittoByteBuffertoByteBuffertoByteBuffertoByteBuffertoStringtoStringwritableByteBufferswritableByteCountwritewritewritewritewritewritewritePositionwritePosition

Method Detail

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Closes this data buffer, freeing any resources.

Annotations
@Override
Exceptions
IllegalStateException:
if this buffer has already been closed