LibreOffice
LibreOffice 24.2 SDK API Reference
|
makes it possible to set and remove seekable marks to a stream. More...
import"XMarkableStream.idl";
Public Member Functions | |
long | createMark () raises ( com::sun::star::io::IOException ) |
creates a mark of the current position and returns an identifier to it. More... | |
void | deleteMark ([in] long Mark) raises ( com::sun::star::io::IOException, com::sun::star::lang::IllegalArgumentException ) |
deletes the mark that you previously created with XMarkableStream::createMark(). More... | |
void | jumpToMark ([in] long nMark) raises ( com::sun::star::io::IOException, com::sun::star::lang::IllegalArgumentException ) |
jumps to a previously created mark. More... | |
void | jumpToFurthest () raises ( com::sun::star::io::IOException ) |
jumps to the furthest position of the stream. More... | |
long | offsetToMark ([in] long nMark) raises ( com::sun::star::io::IOException, com::sun::star::lang::IllegalArgumentException ) |
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... | |
makes it possible to set and remove seekable marks to a stream.
long createMark | ( | ) | ||
raises | ( | com::sun::star::io::IOException | ||
) |
creates a mark of the current position and returns an identifier to it.
void deleteMark | ( | [in] long | Mark | ) | |
raises | ( | com::sun::star::io::IOException, | |||
com::sun::star::lang::IllegalArgumentException | |||||
) |
deletes the mark that you previously created with XMarkableStream::createMark().
It is an error to delete a mark if other marks after this exist. In this case, for reasons of robustness, the implementation must delete this mark and all others after this mark.
void jumpToFurthest | ( | ) | ||
raises | ( | com::sun::star::io::IOException | ||
) |
jumps to the furthest position of the stream.
In the inputstream case, a subsequent read call returns data, that was never read or skipped over before. In the outputstream case, a subsequent write call will add new data at the end of the stream without overwriting existing data.
void jumpToMark | ( | [in] long | nMark | ) | |
raises | ( | com::sun::star::io::IOException, | |||
com::sun::star::lang::IllegalArgumentException | |||||
) |
jumps to a previously created mark.
long offsetToMark | ( | [in] long | nMark | ) | |
raises | ( | com::sun::star::io::IOException, | |||
com::sun::star::lang::IllegalArgumentException | |||||
) |
nMark | identifies the mark which is used as a base to calculate the offset of the current position. |
IllegalArgumentException | if the mark does not exist or is deleted. |
IOException | if an I/O error has occurred. |