To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Properties
| Name | Returns | Notes | Example |
|---|---|---|---|
| pdfManager | PdfManager | a Util class for working with PDF's | |
| utils | FileUtils |
Methods
| Name | Returns | Notes | Example |
|---|---|---|---|
| saveFile ( branch, dirPath, filename, in, currentUser ) | void | ||
| createFolder ( branch, dirPath, folderName, currentUser ) | void | ||
| convertToInputStream ( content ) | InputStream | Convert string content to an input stream | |
| uploadFiles ( files ) | Map | ||
| uploadFile ( file ) | String | ||
| upload ( in ) | String | ||
| upload ( bytes ) | String | ||
| getAsInputStream ( hash ) | ByteArrayInputStream | ||
| getAsByteArray ( hash ) | byte | ||
| getAsString ( hash ) | String | ||
| getAsBase64 ( hash ) | String | ||
| getAsBase64 ( resource ) | String | ||
| fromCsv ( o ) | List | Parse a CSV file and return a list (rows) of string arrays (fields) | |
| fromCsv ( o, seperator ) | List | Parse a CSV file and return a list (rows) of string arrays (fields) | |
| parseExcel ( in, useXml ) | Workbook | Parse an excel file from an inputStream | |
| parseExcel ( bytes, useXml ) | Workbook | Parse an excel file from a byte array | |
| parseDOM ( s ) | Document | ||
| parseDOM ( in ) | Document | ||
| parsePDF ( bytes, callback ) | void | ||
| parsePDF ( bytes, password, callback ) | void | ||
| toCsvAsString ( list ) | String | Converts a list of list of strings to a CSV and returns the output as a string | |
| toCsvAsString ( list, separator ) | String | Converts a list of list of strings to a CSV and returns the output as a string | |
| toCsvAsString ( list, separator, quotechar ) | String | Converts a list of list of strings to a CSV and returns the output as a string |