Class ByteChannelDataSupplier

java.lang.Object
cool.scx.io.ByteChannelDataSupplier
All Implemented Interfaces:
DataSupplier

public class ByteChannelDataSupplier extends Object implements DataSupplier
  • Constructor Details

    • ByteChannelDataSupplier

      public ByteChannelDataSupplier(ReadableByteChannel dataChannel)
    • ByteChannelDataSupplier

      public ByteChannelDataSupplier(ReadableByteChannel dataChannel, boolean compress)
    • ByteChannelDataSupplier

      public ByteChannelDataSupplier(ReadableByteChannel dataChannel, int bufferLength)
    • ByteChannelDataSupplier

      public ByteChannelDataSupplier(ReadableByteChannel dataChannel, int bufferLength, boolean compress)
  • Method Details

    • get

      public DataNode get()
      Description copied from interface: DataSupplier
      获取数据 如果没有数据请返回 null
      Specified by:
      get in interface DataSupplier
      Returns:
      数据节点 或 null