org.alfresco.util.remote.server
Class AbstractRemoteInputStreamServer

java.lang.Object
  extended by 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 the InputStream spans.

Since:
Alfresco 2.2

Field Summary
protected  java.io.InputStream inputStream
           
 
Constructor Summary
protected AbstractRemoteInputStreamServer(java.io.InputStream inputStream)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int off, int len)
           
 void reset()
           
 long skip(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
 

Field Detail

inputStream

protected java.io.InputStream inputStream
Constructor Detail

AbstractRemoteInputStreamServer

protected AbstractRemoteInputStreamServer(java.io.InputStream inputStream)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in interface RemoteInputStreamServer
Throws:
java.io.IOException

read

public int read(byte[] bytes)
         throws java.io.IOException
Specified by:
read in interface RemoteInputStreamServer
Throws:
java.io.IOException

read

public int read(byte[] bytes,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in interface RemoteInputStreamServer
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Specified by:
skip in interface RemoteInputStreamServer
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Specified by:
available in interface RemoteInputStreamServer
Throws:
java.io.IOException

mark

public void mark(int readlimit)
Specified by:
mark in interface RemoteInputStreamServer

markSupported

public boolean markSupported()
Specified by:
markSupported in interface RemoteInputStreamServer

reset

public void reset()
           throws java.io.IOException
Specified by:
reset in interface RemoteInputStreamServer
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface RemoteInputStreamServer
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.