Package com.bradmcevoy.http

Examples of com.bradmcevoy.http.FileItem


      if (files.isEmpty()) {
        log.warn("No meta file provided");
        throw new BadRequestException(r);
      } else {
        try {
          FileItem item = files.values().iterator().next();

          File metaFile = metaStore.storeMetaData(r, item.getInputStream());

          // copy content to a file
          File tempData = File.createTempFile("milton-zsync", null);
          FileOutputStream fDataOut = new FileOutputStream(tempData);
          r.sendContent(fDataOut, null, null, null);
View Full Code Here

TOP

Related Classes of com.bradmcevoy.http.FileItem

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.