BBjFileSystem

Creation Path


BBjAPI

|

+--BBjFileSystem

 

Description

The BBjFileSystem provides methods for interacting with the filesystem.

Creation

BBjFileSystem may be obtained through the BBjAPI object method:

Return Value

Method

BBjFileSystem

getFileSystem()

Methods of BBjFileSystem

Return Value

Method

void

convertMKeyedToXKeyed(string filename, int shouldForceRecoverable)

int

getAddrCount()

int

getCachedCount()

BBjFileInfo

getFileInfo(int channel)

InputStream

getInputStream(string filename)

string

getMimeType(string filename)

OutputStream

getOutputStream(string filename)

BBjStoredProcedureData

getStoredProcedureData()

BBjTriggerData

getTriggerData()

BBjKeyInfo

makeKeyInfo(BBjKeySegment segment!, boolean unique)

BBjKeyInfo

makeKeyInfo(BBjVector segments!, boolean unique)

BBjKeySegment

makeKeySegment(int field, int offset, int length, boolean descending, boolean numeric)

BBjKeySegment

makeOrderedNumericKeySegment(int field, int offset, int length, boolean descending)

BBjRecoverFileStatus

recoverFile(string filename)

string

resolvePath(string filename)

void

unwatchAllDirectories()

string

unwatchDirectory(string directory)

string

watchDirectory(String directory, string label)

string

watchDirectory(String directory, UserObject obj, string methodName)

Remarks

None.

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

0x0D

VKEYED_FILE

Example

REM Obtain the instance of the BBjFileSystem object

REM Obtain the instance of the BBjAPI object
LET myAPI!=BBjAPI()

REM Obtain the instance of the BBjFileSystem object
LET myFileSystem!=myAPI!.getFileSystem()

 

See Also

BBjAPI

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.