Class InputStreamSource

java.lang.Object
javazoom.jl.decoder.InputStreamSource
All Implemented Interfaces:
Source

public class InputStreamSource extends Object implements Source
Work In Progress. An instance of InputStreamSource implements a Source that provides data from an InputStream . Seeking functionality is not supported.
  • Constructor Details

    • InputStreamSource

      public InputStreamSource(InputStream in)
  • Method Details

    • read

      public int read(byte[] b, int offs, int len) throws IOException
      Specified by:
      read in interface Source
      Throws:
      IOException
    • willReadBlock

      public boolean willReadBlock()
      Specified by:
      willReadBlock in interface Source
    • isSeekable

      public boolean isSeekable()
      Specified by:
      isSeekable in interface Source
    • tell

      public long tell()
      Specified by:
      tell in interface Source
    • seek

      public long seek(long to)
      Specified by:
      seek in interface Source
    • length

      public long length()
      Specified by:
      length in interface Source