Class RepoRemoteInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class RepoRemoteInputStream
    extends InputStream
    A wrapper implementation of InputStream to work with a RepoRemoteTransport instance.
    Author:
    britt
    • Constructor Detail

      • RepoRemoteInputStream

        public RepoRemoteInputStream​(String handle,
                                     RepoRemoteTransport remote,
                                     ClientTicketHolder ticketHolder)
        Construct one.
        Parameters:
        handle - The handle returned by getInputStream();
        remote - The AVMRemote instance.
    • Method Detail

      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws IOException
        Read a buffer of bytes.
        Overrides:
        read in class InputStream
        Parameters:
        b - The buffer into which to put the bytes.
        off - The offset into the buffer.
        len - The number of bytes to read.
        Returns:
        The actual number of bytes read or -1 on eof.
        Throws:
        IOException