Class InputStreamSourceImpl

java.lang.Object
de.grogra.pf.io.FilterSourceBase
de.grogra.pf.io.InputStreamSourceImpl
All Implemented Interfaces:
FilterSource, InputStreamSource, RegistryContext

public class InputStreamSourceImpl extends FilterSourceBase implements InputStreamSource
  • Constructor Details

  • Method Details

    • getSystemId

      public String getSystemId()
      Description copied from interface: FilterSource
      Returns a system id which identifies this source.
      Specified by:
      getSystemId in interface FilterSource
      Returns:
      system id
    • getInputStream

      public InputStream getInputStream()
      Description copied from interface: InputStreamSource
      Returns a stream to obtain the data as a stream of bytes.
      Specified by:
      getInputStream in interface InputStreamSource
      Returns:
      an input stream for the data
    • length

      public long length()
      Description copied from interface: InputStreamSource
      Returns the total number of bytes of this stream. A negative values indicates that this number is unknown.
      Specified by:
      length in interface InputStreamSource
      Returns:
      number of bytes