Interface NetworkBuffer.IOView

All Superinterfaces:
DataInput, DataOutput
Enclosing interface:
NetworkBuffer

@Experimental public static sealed interface NetworkBuffer.IOView extends DataInput, DataOutput
Self-contained interface that extends DataInput and DataOutput for mostly reading/writing binary tags.
You can access the io view of a network buffer with NetworkBuffer.ioView()
This interface is separate from NetworkBuffer because we don't want DataInput and DataOutput to be part of the public API. You should use NetworkBuffer instead where possible.
API Note:
You should never rely on the identity of NetworkBuffer.IOView as it is a value class candidate.
Implementation Note:
This implementation removes checked exceptions as the backing NetworkBuffer would not throw IOException's. Also readLine() is not implemented as it's already deprecated in DataInputStream.