:: com :: sun :: star :: io ::
|
interface XSeekable |
|
- Description
- makes it possible to seek to a certain position within a stream.
This interface should be supported, if it is possible to access the
data at the new position quickly.
You should not support this interface, if you have a continuous
stream, for example, a video stream.
|
Methods' Summary |
seek |
changes the seek pointer to a new location relative to the beginning of the stream.
|
getPosition |
returns the current offset of the stream.
|
getLength |
returns the length of the stream.
|
Methods' Details |
seek
- Description
- changes the seek pointer to a new location relative to the beginning of the stream.
This method changes the seek pointer so subsequent reads and writes can take place at a different
location in the stream object. It is an error to seek before the beginning of the stream or after the
end of the stream.
- Throws
- com::sun::star::lang::IllegalArgumentException in case location is negative or greater than XSeekable::getLength.
|
|
getPosition
- Description
- returns the current offset of the stream.
- Returns
- the current offset in this stream.
|
|
getLength
- Description
- returns the length of the stream.
- Returns
- the length of the storage medium on which the stream works.
|
|
Top of Page
Copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.