BBjFileSystem
Description
The BBjFileSystem provides methods for interacting with the filesystem.
Creation
BBjAPI > BBjFileSystem
BBjFileSystem may be obtained through the BBjAPI object method:
|
Return Value |
Method |
|---|---|
|
BBjFileSystem |
Methods of BBjFileSystem
|
Return Value |
Method |
|---|---|
|
void |
convertMKeyedToXKeyed(string filename, int shouldForceRecoverable) |
| void | convertMKeyedToXKeyed(string filename, int shouldForceRecoverable, string modes) |
| void | convertMKeyedToXKeyed(string filename, int shouldForceRecoverable, string modes, string tmpdir) |
|
int |
|
|
int |
|
|
getFileInfo(int channel) |
|
|
getInputStream(string filename) |
|
|
string |
getMimeType(string filename) |
|
getOutputStream(string filename) |
|
|
makeKeyInfo(BBjKeySegment segment!, boolean unique) |
|
|
makeKeyInfo(BBjVector segments!, boolean unique) |
|
|
makeKeySegment(int field, int offset, int length, boolean descending, boolean numeric) |
|
|
makeOrderedNumericKeySegment(int field, int offset, int length, boolean descending) |
|
|
recoverFile(string filename) |
|
| BBjRecoverFileStatus | recoverFile(string filename, string modes) |
| BBjRecoverFileStatus | recoverFile(string filename, string modes, string tmpdir) |
|
string |
resolvePath(string filename) |
|
void |
|
|
string |
unwatchDirectory(string directory) |
|
string |
watchDirectory(String directory, string label) |
|
string |
watchDirectory(String directory, UserObject obj, string methodName) |
Constants
|
0x00 |
INDEXED_FILE |
|
0x01 |
SERIAL_FILE |
|
0x02 |
DIRECT_FILE |
|
0x03 |
STRING_FILE |
|
0x04 |
BBX_PROGRAM_FILE |
|
0x84 |
BBJ_PROGRAM_FILE |
|
0x05 |
DIRECTORY_FILE |
|
0x06 |
MKEYED_FILE |
|
0x80 |
MKEYED_4GIG |
|
0x40 |
MKEYED_RECOVERABLE |
|
0x20 |
MKEYED_64BIT |
|
0x08 |
XKEYED_FILE |
|
0x0B |
JKEYED_FILE (Deprecated) |
|
0x0D |
VKEYED_FILE |
Example
|
Version History
- BBj 24.01: Added an optional tmpdir argument for BBjFileSystem::recoverFile and BBjFileSystem:convertMKeyedToXKeyed.
See Also
BBj Object Creation and Assignment
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.