Class ByteArrayDataSupplier

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

public class ByteArrayDataSupplier extends Object implements DataSupplier
  • Constructor Details

    • ByteArrayDataSupplier

      public ByteArrayDataSupplier(Collection<byte[]> byteArrays)
    • ByteArrayDataSupplier

      public ByteArrayDataSupplier(byte[]... byteArrays)
    • ByteArrayDataSupplier

      public ByteArrayDataSupplier(byte[] byteArray)
  • Method Details

    • get

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