public class BBJasper
Provides utility functions for BBJasper modules
Modifier and Type | Field and Description |
---|---|
static BBjNumber | BUFFER_SIZE=10240 Buffer size use to read in jrxml and jasper report files, default is 10 K |
static BBjNumber | MAX_FILE_SIZE=10240000 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!) centerWindow Centers the passed window on either the MDI window or client desktop |
static void | centerWindow(BBjWindow p_window!, BBjNumber p_centerOnActiveWindow) centerWindow 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$) clientFileExists Determines is a client file exists or not |
static BBjNumber | copyToClient(BBjString p_serverFileName$, BBjString p_clientFileName$) copyToClient Copies the passed server file to the passed client file |
static void | createFileFromStream(BBjString p_filepath$, ByteArrayOutputStream p_baos!) createFileFromStream |
static Locale | createLocale(BBjString p_localeString!) createLocale |
static BBjString | createTempDir() createTempDir Creates a temp directory and returns the path |
static BBjVector | createVector(Object p_object!) createVector Creates and returns a BBjVector for the passed object |
static Locale | getClientLocale() getClientLocale Returns the locale used by the client |
static void | moveDir(BBjString p_localDir$, BBjString p_destDirectory$) moveDir Moves a local directory. The directory can be moved accross machines when DS syntax is used for a destination directory |
static void | moveFile(BBjString p_localFile$, BBjString p_destFile$) moveFile Moves a local file. The file can be moved accross machines when DS syntax is used for a destination directory |
static void | run() run Runs bbjasper with the passed program args Args are the following: arg1 (required) = report source file name arg2 (required) = connect string arg3 (optional) = locale arg4 (optional) = report params key/value pairs |
static void | runDemo() runDemo Runs a demo of BBJasper |
static void | showUsage() run Shows the BBJasper usage |
static void | throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber) throwError Throws the passed error message and error number |
static void | throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber, BBjNumber p_lineNumber) throwError Throws the passed error message and error number. Adds the line number, line code, and last exception (if available) |
public static BBjNumber BUFFER_SIZE=10240
Buffer size use to read in jrxml and jasper report files, default is 10 K
public static BBjNumber MAX_FILE_SIZE=10240000
Max file size of jrxml and jasper report files, default is 10 MB
public static void centerWindow(BBjWindow p_window!)
centerWindow Centers the passed window on either the MDI window or client desktop
public static void centerWindow(BBjWindow p_window!, BBjNumber p_centerOnActiveWindow)
centerWindow Centers the passed window on either the MDI window, client desktop, or optionally on the active window (if there is one)
public static BBjNumber clientFileExists(BBjString p_clientFileName$)
clientFileExists Determines is a client file exists or not
public static BBjNumber copyToClient(BBjString p_serverFileName$, BBjString p_clientFileName$)
copyToClient Copies the passed server file to the passed client file
public static void createFileFromStream(BBjString p_filepath$, ByteArrayOutputStream p_baos!)
createFileFromStream
public static Locale createLocale(BBjString p_localeString!)
createLocale
public static BBjString createTempDir()
createTempDir Creates a temp directory and returns the path
public static BBjVector createVector(Object p_object!)
createVector Creates and returns a BBjVector for the passed object
p_object!
object to create the vector forBBjVector
containing the passed object 16.0
public static Locale getClientLocale()
getClientLocale Returns the locale used by the client
public static void moveDir(BBjString p_localDir$, BBjString p_destDirectory$)
moveDir Moves a local directory. The directory can be moved accross machines when DS syntax is used for a destination directory
public static void moveFile(BBjString p_localFile$, BBjString p_destFile$)
moveFile Moves a local file. The file can be moved accross machines when DS syntax is used for a destination directory
public static void run()
run Runs bbjasper with the passed program args
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 runDemo()
runDemo Runs a demo of BBJasper
public static void showUsage()
run Shows the BBJasper usage
public static void throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber)
throwError Throws the passed error message and error number
public static void throwError(BBjString p_errorMessage$, BBjNumber p_errorNumber, BBjNumber p_lineNumber)
throwError Throws the passed error message and error number. Adds the line number, line code, and last exception (if available)