Examples of ByteArrayPipedStream


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

Examples of com.firefly.server.io.ByteArrayPipedStream

    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

Examples of com.google.greaze.definition.fixtures.ByteArrayPipedStream

  private final ByteArrayPipedStream forward;
  private final ByteArrayPipedStream reverse;

  public HttpUrlConnectionMock() {
    super(createDummyUrl());
    this.forward = new ByteArrayPipedStream();
    this.reverse = new ByteArrayPipedStream();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.