Methods' Details |
copy
- Description
- Copies a file
- Parameter SourceURL
- URL of the file to be copied
- Parameter DestURL
- URL of the location the file should be copied to
- See also
- move
|
|
move
- Description
- Moves a file
- Parameter SourceURL
- URL of the file to be moved
- Parameter DestURL
- URL of the location the file should be moved to
- See also
- move
|
|
kill
- Description
- Removes a file. If the URL represents a folder, the folder will be
removed, even if it's not empty.
- Parameter FileURL
- File/folder to be removed
- See also
- move
|
|
isFolder
- Description
- Checks if an URL represents a folder
- Parameter FileURL
- URL to be checked
- Returns
- true, if the given URL represents a folder, otherwise false
|
|
isReadOnly
- Description
- Checks if a file is "read only"
- Parameter FileURL
- URL to be checked
- Returns
- true, if the given File is "read only", false otherwise
|
|
setReadOnly
- Description
- Sets the "read only" of a file according to the boolean parameter,
if the actual process has the right to do so.
- Parameter bReadOnly
- true; "read only" flag will be set, false; "read only" flag will be reset
|
|
createFolder
- Description
- Creates a new Folder
- Parameter NewFolderURL
- URL describing the location of the new folder
|
|
getSize
- Description
- Returns the size of a file.
- Parameter FileURL
- URL of the file
- Returns
- Size of the file in bytes
|
|
getContentType
- Description
- Returns the content type of a file.
- Parameter FileURL
- URL of the file
- Returns
- Content type of the file
- See also
- XContent::getContentType
|
|
getDateTimeModified
- Description
- Returns the last modified date for the file
- Parameter FileURL
- URL of the file
- Returns
- Last modified date for the file
|
|
getFolderContents
- Description
- Returns the contents of a folder
- Parameter FolderURL
- URL of the folder
- Parameter bIncludeFolders
- true: Subfolders are included, false: No subfolders
- Returns
- The content of a folder, each file as one string
in a string sequence
|
|
exists
- Description
- Checks if a file exists
- Parameter FileURL
- URL to be checked
- Returns
- true, if the File exists, false otherwise
|
|
openFileRead
- Description
- Opens file to read
- Parameter FileURL
- File to open
- Returns
- An XInputStream, if the file can be opened for reading
|
|
openFileWrite
- Description
- Opens file to write.
- Parameter FileURL
- File to open
- Returns
- An XOutputStream, if the file can be opened for writing
- Throws
- UnsupportedDataSinkException, if the file cannot be
opened for random write access. Some resources do not allow random
write access. To write data for those resources
XSimpleFileAccess2::writeFile may be used.
|
|
openFileReadWrite
- Description
- Opens file to read and write
- Parameter FileURL
- File to open
- Returns
- An XStream, if the file can be opened for reading and writing
- Throws
- UnsupportedDataSinkException, if the file cannot be
opened for random write access. Some resources do not allow random
write access. To write data for those resources
XSimpleFileAccess2::writeFile may be used.
|
|
setInteractionHandler
- Description
- Sets an interaction handler to be used for further operations.
A default interaction handler is available as service
::com::sun::star::task::InteractionHandler.
The documentation of this service also contains further
information about the interaction handler concept.
- Parameter Handler
- The interaction handler to be set
- See also
- ::com::sun::star::task::InteractionHandler
|
|