Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
PUBLIC MEMBERS:
CLASSES
| STRUCTS
| UNIONS
| ENUMS
| TYPEDEFS
| METHODS
| STATIC METHODS
| DATA
| STATIC DATA
PRIVATE MEMBERS:
CLASSES
| STRUCTS
| UNIONS
| ENUMS
| TYPEDEFS
| METHODS
| STATIC METHODS
| DATA
| STATIC DATA
:: osl ::
class File
Base Classes
FileBase (public)
|
+--File
Known Derived Classes
None.
virtual
abstract
interface
template
NO
NO
NO
NO
Summary
The file class object provides access to file contents and attributes
See Also
Directory
DirectoryItem
File
file.hxx
Public Members
Methods
File ( const ::rtl::OUString & strPath );
C'tor
~File ( );
D'tor
RC
close ( );
Closes an open file.
RC
setPos ( sal_uInt32 uHow, sal_Int64 uPos );
Sets the internal position pointer of an open file.
RC
getPos ( sal_uInt64 & uPos );
Retrieves the current position of the internal pointer of an open file.
RC
isEndOfFile ( sal_Bool * pIsEOF );
Tests if the end of a file is reached.
RC
setSize ( sal_uInt64 uSize );
Sets the file size of an open file. The file can be truncated or enlarged by the function.
The position of the file pointer is not affeced by this function.
RC
read ( void * pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 & rBytesRead );
Reads a number of bytes from a file. The internal file pointer is increased by the number of bytes
read.
RC
write ( const void * pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 & rBytesWritten );
Writes a number of bytes to a file. The internal file pointer is increased by the number of bytes
read.
RC
readLine ( ::rtl::ByteSequence & aSeq );
Reads a line from given file. The new line delemeter(s) are NOT returned!
Static Methods
static RC
copy ( const ::rtl::OUString & strPath, const ::rtl::OUString & strDestPath );
Copies a file to a new destination. Copies only files not directories. No assumptions should
be made about preserving attributes or file time.
static RC
move ( const ::rtl::OUString & strPath, const ::rtl::OUString & strDestPath );
Moves a file or directory to a new destination or renames it. File time and attributes
are preserved.
static RC
remove ( const ::rtl::OUString & strPath );
Removes (erases) a regular file.
static RC
setAttributes ( const ::rtl::OUString & strPath, sal_uInt64 uAttributes );
Sets file-attributes
static RC
setTime ( const ::rtl::OUString & strPath, TimeValue & rCreationTime, TimeValue & rLastAccessTime, TimeValue & rLastWriteTime );
Sets file-Time
Private Members
Methods
File ( File & );
define copy c'tor and assginment operator privat
File &
operator= ( File & );
Top of Page Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.