|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.alfresco.repo.remote.RepoRemoteInputStream
public class RepoRemoteInputStream
A wrapper implementation of InputStream to work with a RepoRemoteTransport instance.
Constructor Summary | |
---|---|
RepoRemoteInputStream(java.lang.String handle,
RepoRemoteTransport remote,
ClientTicketHolder ticketHolder)
Construct one. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepoRemoteInputStream(java.lang.String handle, RepoRemoteTransport remote, ClientTicketHolder ticketHolder)
handle
- The handle returned by getInputStream();remote
- The AVMRemote instance.Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- The buffer into which to put the bytes.off
- The offset into the buffer.len
- The number of bytes to read.
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |