Package org.alfresco.repo.remote
Class RepoRemoteOutputStream
java.lang.Object
java.io.OutputStream
org.alfresco.repo.remote.RepoRemoteOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A wrapper implementation of OutputStream to work with a RepoRemoteTransport instance.
- Author:
- britt
-
Constructor Summary
ConstructorsConstructorDescriptionRepoRemoteOutputStream(String handle, RepoRemoteTransport remote, ClientTicketHolder ticketHolder) Create a new one. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
RepoRemoteOutputStream
public RepoRemoteOutputStream(String handle, RepoRemoteTransport remote, ClientTicketHolder ticketHolder) Create a new one.- Parameters:
handle- The handle returned from an RepoRemoteTransport call.remote- The AVMRemote instance.
-
-
Method Details
-
write
Write one character.- Specified by:
writein classOutputStream- Parameters:
b- The character.- Throws:
IOException
-
close
Close the stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
Write a portion of a block of bytes.- Overrides:
writein classOutputStream- Parameters:
b- The buffer containing the data.off- The offset into the buffer.len- The number of bytes to write.- Throws:
IOException
-
write
Write a buffer of data.- Overrides:
writein classOutputStream- Parameters:
b- The buffer.- Throws:
IOException
-