Package org.alfresco.util.remote.server
Class AbstractRemoteInputStreamServer
- java.lang.Object
-
- org.alfresco.util.remote.server.AbstractRemoteInputStreamServer
-
- All Implemented Interfaces:
RemoteInputStreamServer
- Direct Known Subclasses:
RmiRemoteInputStreamServer
public abstract class AbstractRemoteInputStreamServer extends java.lang.Object implements RemoteInputStreamServer
The data producing side of the remote connection that theInputStreamspans.- Since:
- Alfresco 2.2
- Author:
- Michael Shavnev
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.InputStreaminputStream
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRemoteInputStreamServer(java.io.InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] bytes)intread(byte[] bytes, int off, int len)voidreset()longskip(long n)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.util.remote.server.RemoteInputStreamServer
start
-
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
read
public int read(byte[] bytes) throws java.io.IOException- Specified by:
readin interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int off, int len) throws java.io.IOException- Specified by:
readin interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Specified by:
skipin interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Specified by:
availablein interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
mark
public void mark(int readlimit)
- Specified by:
markin interfaceRemoteInputStreamServer
-
markSupported
public boolean markSupported()
- Specified by:
markSupportedin interfaceRemoteInputStreamServer
-
reset
public void reset() throws java.io.IOException- Specified by:
resetin interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceRemoteInputStreamServer- Throws:
java.io.IOException
-
-