LibreOffice
LibreOffice 24.2 SDK API Reference
|
XConnection2 extends the XConnection
interface with available
and readSomeBytes
More...
import"XConnection2.idl";
Public Member Functions | |
long | available () raises (com::sun::star::io::IOException) |
Gives the number of bytes available via read without blocking. More... | |
long | readSomeBytes ([out] sequence< byte > aData, [in] long nMaxBytesToRead) raises (com::sun::star::io::IOException) |
Blocks if no data is available otherwise reads at max nMaxBytesToRead but at least 1 byte. More... | |
Public Member Functions inherited from XConnection | |
long | read ([out] sequence< byte > aReadBytes, [in] long nBytesToRead) raises ( com::sun::star::io::IOException ) |
reads a requested number of bytes from the connection. More... | |
void | write ([in] sequence< byte > aData) raises ( com::sun::star::io::IOException ) |
writes the given bytesequence to the stream. More... | |
void | flush () raises ( com::sun::star::io::IOException ) |
Empties all internal buffers. More... | |
void | close () raises ( com::sun::star::io::IOException ) |
Immediately terminates any ongoing read or write calls. More... | |
string | getDescription () |
A unique string describing the connection. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
XConnection2 extends the XConnection
interface with available
and readSomeBytes
long available | ( | ) | ||
raises | ( | com::sun::star::io::IOException | ||
) |
Gives the number of bytes available via read
without blocking.
long readSomeBytes | ( | [out] sequence< byte > | aData, |
[in] long | nMaxBytesToRead | ||
) | |||
raises | ( | com::sun::star::io::IOException | |
) |
Blocks if no data is available otherwise reads at max nMaxBytesToRead but at least 1 byte.