Module io.xpipe.api

Class DataRawImpl

java.lang.Object
io.xpipe.api.impl.DataSourceImpl
io.xpipe.api.impl.DataRawImpl
All Implemented Interfaces:
DataRaw, DataSource

public class DataRawImpl extends DataSourceImpl implements DataRaw
  • Constructor Details

    • DataRawImpl

      public DataRawImpl(io.xpipe.core.source.DataSourceId sourceId, DataSourceConfig sourceConfig, io.xpipe.core.source.DataSource<?> internalSource)
  • Method Details

    • open

      public InputStream open()
      Specified by:
      open in interface DataRaw
    • readAll

      public byte[] readAll()
      Specified by:
      readAll in interface DataRaw
    • read

      public byte[] read(int maxBytes)
      Specified by:
      read in interface DataRaw
    • getType

      public io.xpipe.core.source.DataSourceType getType()
      Description copied from interface: DataSource
      Returns the type of this data source.
      Specified by:
      getType in interface DataSource
    • asRaw

      public DataRaw asRaw()
      Description copied from interface: DataSource
      Attempts to cast this object to a DataRaw.
      Specified by:
      asRaw in interface DataSource