public final class XInputStreamToInputStreamAdapter extends InputStream
XInputStreamToInputStreamAdapter wraps
the UNO XInputStream object in a Java
InputStream. This allows users to access
an XInputStream as if it were an
InputStream.| Constructor and Description |
|---|
XInputStreamToInputStreamAdapter(com.sun.star.io.XInputStream in)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public XInputStreamToInputStreamAdapter(com.sun.star.io.XInputStream in)
in - The XInputStream to be
accessed as an InputStream.public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic boolean markSupported()
XInputStreamToInputStreamAdapter returns false.markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOException