public class RepoRemoteInputStream extends InputStream
Constructor and Description |
---|
RepoRemoteInputStream(String handle,
RepoRemoteTransport remote,
ClientTicketHolder ticketHolder)
Construct one.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying AVMRemote handle.
|
int |
read()
Read in a single byte.
|
int |
read(byte[] b,
int off,
int len)
Read a buffer of bytes.
|
available, mark, markSupported, read, reset, skip
public RepoRemoteInputStream(String handle, RepoRemoteTransport remote, ClientTicketHolder ticketHolder)
handle
- The handle returned by getInputStream();remote
- The AVMRemote instance.public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- The buffer into which to put the bytes.off
- The offset into the buffer.len
- The number of bytes to read.IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.