public final class InputStreamToXInputStreamAdapter extends Object implements com.sun.star.io.XInputStream
InputStreamToInputXStreamAdapter wraps the
Java InputStream object into a
UNO XInputStream object.
This allows users to access an InputStream
as if it were an XInputStream.| Constructor and Description |
|---|
InputStreamToXInputStreamAdapter(InputStream in)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
closeInput() |
int |
readBytes(byte[][] b,
int len) |
int |
readSomeBytes(byte[][] b,
int len) |
void |
skipBytes(int n) |
public InputStreamToXInputStreamAdapter(InputStream in)
in - The XInputStream to be
accessed as an InputStream.public int available()
throws com.sun.star.io.IOException
available in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOExceptionpublic void closeInput()
throws com.sun.star.io.IOException
closeInput in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOExceptionpublic int readBytes(byte[][] b,
int len)
throws com.sun.star.io.IOException
readBytes in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOExceptionpublic int readSomeBytes(byte[][] b,
int len)
throws com.sun.star.io.IOException
readSomeBytes in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOExceptionpublic void skipBytes(int n)
throws com.sun.star.io.IOException
skipBytes in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOException