BBjClientFile
Description
The BBjClientFile object provides developers methods to manipulate a specific client-side file.
Creation
BBjAPI > BBjThinClient > BBjClientFileSystem > BBjClientFile
The BBjClientFile object is created through the following BBjClientFileSystem object methods:
Return Value |
Method |
---|---|
BBjClientFile |
getClientFile(BBjClientFile parentDir!, string fileName) |
BBjClientFile |
getClientFile(string absoluteName) |
Methods of BBjClientFile
Return Value |
Method |
---|---|
boolean |
|
boolean |
canRead() |
boolean |
canWrite() |
string |
copyFromClient(string serverFile) |
void |
copyToClient(string serverFileName) |
boolean |
|
boolean |
delete() |
boolean |
exists() |
BBjClientFile |
|
byte[] |
|
string |
getName() |
BBjClientFile |
|
string |
getPath() |
boolean |
|
boolean |
isFile() |
boolean |
isHidden() |
long |
|
boolean |
mkdir() |
boolean |
mkdirs() |
boolean |
renameTo(BBjClientFile newName!) |
void |
setContents(string contents) |
boolean |
setExecutable(boolean p_executable) |
void |
setLastModified(long time) |
boolean |
setReadable(boolean p_readable) |
boolean |
|
boolean |
setWritable(boolean p_writable) |
long |
size() |
Constants
None.
Remarks
In the BUI client, both filename$ and absoluteName$ are simple names, not complete paths, and parentDir!, if specified, is ignored. The specified filename is used as a key to a collection of user-selected files on the web server. Example 1 demonstrates a complete end-to-end cycle to copy a selected file from the client, then copy a selected file to the client; it shows that files copied from the user's machine must first be directly chosen by the user. See Interacting with client files in BUI and DWC for a discussion of the BUI BBjClientFile.
Example 1
|
Example 2
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.