Class InputStreamSource

  • All Implemented Interfaces:
    Source

    public class InputStreamSource
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      InputStreamSource​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSeekable()  
      long length()  
      int read​(byte[] b, int offs, int len)  
      long seek​(long to)  
      long tell()  
      boolean willReadBlock()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputStreamSource

        public InputStreamSource​(java.io.InputStream in)
    • Method Detail

      • read

        public int read​(byte[] b,
                        int offs,
                        int len)
                 throws java.io.IOException
        Specified by:
        read in interface Source
        Throws:
        java.io.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