Package 

Interface Source


  • 
    public interface Source
    
                        

    Source for proxy.

    • Method Summary

      Modifier and Type Method Description
      abstract void open(long offset) Opens source.
      abstract long length() Returns length bytes or negative value if length is unknown.
      abstract int read(Array<byte> buffer) Read data to byte buffer from source with current offset.
      abstract void close() Closes source and release resources.
      • Methods inherited from class java.lang.Object

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

      • open

         abstract void open(long offset)

        Opens source. Source should be open before using read

        Parameters:
        offset - offset in bytes for source.
      • length

         abstract long length()

        Returns length bytes or negative value if length is unknown.

      • read

         abstract int read(Array<byte> buffer)

        Read data to byte buffer from source with current offset.

        Parameters:
        buffer - a buffer to be used for reading data.
      • close

         abstract void close()

        Closes source and release resources. Every opened source should be closed.