Package com.firefly.server.io

Examples of com.firefly.server.io.ByteArrayPipedStream


        if (req.bodyPipedStream == null) { // the first into body decode status, it neet create piped stream
          if(contentLength >= config.getHttpBodyThreshold()) {
            log.info("content length [{}] more than threshold [{}]", contentLength , config.getHttpBodyThreshold());
            req.bodyPipedStream = new FilePipedStream(config.getTempdir());
          } else {
            req.bodyPipedStream = new ByteArrayPipedStream(contentLength);
          }
        }
       
        req.offset += buf.remaining();
        byte[] data = new byte[buf.remaining()];
View Full Code Here


    parseName();
    if(VerifyUtils.isNotEmpty(fileName)) {
      temp = new File(tempdir, "part-" + UUID.randomUUID().toString());
      pipedStream = new FilePipedStream(temp);
    } else {
      pipedStream = new ByteArrayPipedStream(512);
    }
   
    return pipedStream.getOutputStream();
  }
View Full Code Here

TOP

Related Classes of com.firefly.server.io.ByteArrayPipedStream

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.