public class RemoteInputStream
extends java.io.InputStream
implements java.io.Serializable
InputStream so that it can be sent over the remoting channel.
Note that this class by itself does not perform buffering.
| Constructor and Description |
|---|
RemoteInputStream(java.io.InputStream core)
Short for
RemoteInputStream(core,true). |
RemoteInputStream(java.io.InputStream core,
boolean autoUnexport) |
public RemoteInputStream(java.io.InputStream core)
RemoteInputStream(core,true).public RemoteInputStream(java.io.InputStream core,
boolean autoUnexport)
autoUnexport - If true, the InputStream will be automatically unexported when
the callable that took it with returns. If false, it'll not unexported
until the close method is called.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreamCopyright © 2013. All Rights Reserved.