public class BBJasper extends Object
Modifier and Type | Field and Description |
---|---|
static BBjNumber |
BUFFER_SIZE
Buffer size use to read in jrxml and jasper report files, default is 10 K
|
static BBjNumber |
MAX_FILE_SIZE
Max file size of jrxml and jasper report files, default is 10 MB
|
Modifier and Type | Method and Description |
---|---|
static void |
centerWindow(BBjWindow p_window!)
Centers the passed window on either the MDI window or client desktop
|
static void |
centerWindow(BBjWindow p_window!,
BBjNumber p_centerOnActiveWindow)
Centers the passed window on either the MDI window, client desktop, or optionally on the active window (if there is one)
|
static BBjNumber |
clientFileExists(BBjString p_clientFileName$)
Determines is a client file exists or not
|
static BBjNumber |
copyToClient(BBjString p_serverFileName$,
BBjString p_clientFileName$)
Copies the passed server file to the passed client file
|
static void |
createFileFromStream(BBjString p_filepath$,
ByteArrayOutputStream p_baos!)
Creates a file given a filename and output stream
|
static Locale |
createLocale(BBjString p_localeString!)
Creates a java Locale object from the passed string
|
static BBjString |
createTempDir()
Creates a temp directory and returns the path
|
static BBjVector |
createVector(Object p_object!)
Creates and returns a BBjVector for the passed object
|
static Locale |
getClientLocale()
Returns the locale used by the client
|
static void |
moveDir(BBjString p_localDir$,
BBjString p_destDirectory$)
Moves a local directory.
|
static void |
moveFile(BBjString p_localFile$,
BBjString p_destFile$)
Moves a local file.
|
static void |
run()
Runs bbjasper with the passed program args
|
static void |
runDemo()
Runs a demo of BBJasper
|
static void |
showUsage()
Shows the BBJasper usage
|
static void |
throwError(BBjString p_errorMessage$,
BBjNumber p_errorNumber)
Throws the passed error message and error number
|
static void |
throwError(BBjString p_errorMessage$,
BBjNumber p_errorNumber,
BBjNumber p_lineNumber)
Throws the passed error message and error number.
|
public static BBjNumber MAX_FILE_SIZE
public static BBjNumber BUFFER_SIZE
public static BBjVector createVector(Object p_object!)
p_object!
- object to create the vector forBBjVector
- containing the passed objectpublic static void throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber)
p_errorMessage$
- Error message to include in the error messagep_errorNumber
- Error number to include in the error messagepublic static void throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber, BBjNumber p_lineNumber)
p_errorMessage$
- Error message to include in the error messagep_errorNumber
- Error number to include in the error messagep_lineNumber
- Program Line number of the line to include in the error messagepublic static Locale getClientLocale()
public static Locale createLocale(BBjString p_localeString!)
p_localeString!
- Locale string. This string should be in the following format: LANGUAGE, LANGUAGE_COUNTRY, or LANGUAGE_COUNTRY_VARIANTpublic static BBjString createTempDir()
public static void createFileFromStream(BBjString p_filepath$, ByteArrayOutputStream p_baos!)
p_filepath$
- Name of file to createp_baos!
- ByteArrayOutputStream object which contains the contents of the filepublic static void moveDir(BBjString p_localDir$, BBjString p_destDirectory$)
p_localDir$
- Name of directory to movep_destDirectory$
- Name of destination directorypublic static void moveFile(BBjString p_localFile$, BBjString p_destFile$)
p_localFile$
- Name of local to movep_destFile$
- Name of destination filepublic static BBjNumber clientFileExists(BBjString p_clientFileName$)
p_clientFileName$
- Name of client file to determine existancepublic static BBjNumber copyToClient(BBjString p_serverFileName$, BBjString p_clientFileName$)
p_serverFileName$
- Name of source server filep_clientFileName$
- Name of target client filepublic static void centerWindow(BBjWindow p_window!)
p_window!
- BBjWindow to centerpublic static void centerWindow(BBjWindow p_window!, BBjNumber p_centerOnActiveWindow)
p_window!
- BBjWindow to centerp_centerOnActiveWindow
- Specify TRUE if the window is to be centered on the currently active window, otheriwse FALSEpublic static void run()
Args are the following:
arg1 (required) = report source file name
arg2 (required) = connect string
arg3 (optional) = locale
arg4 (optional) = report params key/value pairs
public static void showUsage()
public static void runDemo()