|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
com.ibm.di.api.remote.impl.rmi.InputStreamWrapper
public class InputStreamWrapper
A wrapper class of InputStream class for use by the RMI.
| Constructor Summary | |
|---|---|
InputStreamWrapper(InputStream aIstream,
Socket aSocket)
Constructs InputStreamWrapper by given InputStream object and Socket or SSLSocket object. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
void |
mark(int aReadLimit)
Marks the current position in this stream. |
boolean |
markSupported()
Tests if this stream supports the mark and
reset methods. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] aBarray)
Reads some number of bytes from the input stream and stores them into the buffer array aBarray. |
int |
read(byte[] aBarray,
int aOff,
int aLen)
Reads up to aLen bytes of data from the input stream into
an array of bytes. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream |
long |
skip(long aN)
Skips over and discards n bytes of data from this stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamWrapper(InputStream aIstream,
Socket aSocket)
aIstream - InputStream objectaSocket - desired socket to use| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException - if an I/O error occurs
public int read(byte[] aBarray)
throws IOException
aBarray.
read in class InputStreamaBarray - the buffer into which the data is read.
IOException - if an I/O error occurs. NullPointerException if
aBarray is null
public int read(byte[] aBarray,
int aOff,
int aLen)
throws IOException
aLen bytes of data from the input stream into
an array of bytes.
read in class InputStreamaBarray - the buffer into which the data is read.aOff - the start offset in array aBarray at which the
data is written.aLen - the maximum number of bytes to read.
IOException - if an I/O error occurs.
NullPointerException - if aBarray is null.
public long skip(long aN)
throws IOException
skip in class InputStreamaN - the number of bytes to be skipped. Returns: the actual number
of bytes skipped. Throws: IOException if an I/O error occurs.
IOException - if an I/O error occurs
public int available()
throws IOException
available in class InputStreamIOException - if an I/O error occurs
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException - if an I/O error occurspublic void mark(int aReadLimit)
mark in class InputStreamaReadLimit - the maximum limit of bytes that can be read before the mark
position becomes invalidreset()
public void reset()
throws IOException
reset in class InputStreamIOException - if this stream has not been marked or if the mark has been
invalidatedmark(int)public boolean markSupported()
mark and
reset methods. Whether or not mark and reset are supported
is an invariant property of the this stream instance.
markSupported in class InputStreamtrue if this stream instance supports the mark and
reset methods; false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||