Package org.apache.camel.component.dropbox.dto

Examples of org.apache.camel.component.dropbox.dto.DropboxFileDownloadResult


     * @param remotePath the remote path where to download from
     * @return a DropboxResult object with the content (ByteArrayOutputStream) of every files inside the remote path.
     * @throws DropboxException
     */
    public DropboxResult get(String remotePath) throws DropboxException {
        DropboxResult result = new DropboxFileDownloadResult();
        //a map representing for each path the result of the baos
        Map<String, ByteArrayOutputStream> resultEntries = new HashMap<String, ByteArrayOutputStream>();
        //iterate from the remotePath
        downloadFilesInFolder(remotePath, resultEntries);
        //put the map of baos as result
        result.setResultEntries(resultEntries);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.dropbox.dto.DropboxFileDownloadResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.