Properties

NameReturnsNotes
pdfManagerPdfManagera Util class for working with PDF's
utilsFileUtils

Methods

SignatureReturnsNotes
saveFile(Branch branch, String dirPath, String filename, InputStream in, Profile currentUser)voidDeprecated use RepositoryManager.saveFile instead
createFolder(Branch branch, String dirPath, String folderName, Profile currentUser)void
convertToInputStream(String content)InputStreamConvert string content to an input stream
uploadFiles(Map<String,FileItem> files)Map<String,String>
uploadFile(FileItem file)String
upload(InputStream in)StringDeprecated use RepositoryManager.upload
upload(byte[] bytes)String
getAsInputStream(String hash)ByteArrayInputStream
getAsByteArray(String hash)byte[]
getAsString(String hash)String
getAsString(FileItem fileItem)String
getAsBase64(String hash)String
getAsBase64(Resource resource)String
getAsBase64(InputStream in)String
getAsByteArray(InputStream in)byte[]
getBranchFolder(String repoName)BranchFolderget repo live branch
getBranchFolder(String repoName, boolean autoCreate)BranchFolderget or create repo live branch
getBranchFolder(String repoName, String branchName)BranchFolderGet a branch folder
getBranchFolder(String repoName, String branchName, boolean autoCreate)BranchFolderget or create branch folder Deprecated, use RepositoryManager.findOrCreateRepositoryBranch instead
fromCsv(Object o)List<String[]>Parse a CSV file and return a list (rows) of string arrays (fields)
fromCsv(Object o, Object seperator)List<String[]>Parse a CSV file and return a list (rows) of string arrays (fields)
parseExcel(InputStream in, boolean useXml)WorkbookParse an excel file from an inputStream
parseExcel(byte[] bytes, boolean useXml)WorkbookParse an excel file from a byte array
parseDOM(String s)Document
parseDOM(InputStream in)Document
parseXmlToJson(InputStream in)StringParses XML and returns a string in JSON format
parseXmlToJson(String rawXml)StringParses XML and returns a string in JSON format
parsePDF(byte[] bytes, Consumer<PdfDocument> callback)void
parsePDF(byte[] bytes, String password, Consumer<PdfDocument> callback)void
toCsvAsString(List<List> list)StringConverts a list of list of strings to a CSV and returns the output as a string
toCsvAsString(List<List> list, char separator)StringConverts a list of list of strings to a CSV and returns the output as a string
toCsvAsString(List<List> list, char separator, char quotechar)StringConverts a list of list of strings to a CSV and returns the output as a string
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.