Examples of CircularOutputStream


Examples of io.apigee.trireme.core.CircularOutputStream

                    if (hdr != null) {
                        headerDone = true;
                        initInflate(true);
                        checksum = new CRC32();
                        // We need to save the last eight bytes of all the input to eventually read the trailer
                        trailerBuf = new CircularOutputStream(GZipHeader.TRAILER_SIZE);
                    }
                    break;
                case UNZIP:
                    // "Unzip" is a magic mode that uses either "inflate" or "gunzip" depending on whether
                    // the data contains a GZip header.
View Full Code Here

Examples of io.apigee.trireme.core.CircularOutputStream

    }

    private void testOneByOne(int initial, int max, int bytes)
        throws IOException
    {
        CircularOutputStream out = new CircularOutputStream(initial, max);
        fill(out, bytes);
        byte[] buf = out.toByteArray();
        verify(buf, (bytes > max) ? (bytes - max) : 0);

        out = new CircularOutputStream(initial, max);
        fillBulk(out, bytes);
        buf = out.toByteArray();
        verify(buf, (bytes > max) ? (bytes - max) : 0);
    }
View Full Code Here

Examples of org.openqa.selenium.remote.internal.CircularOutputStream

    lock.lock(connectTimeout);
    try {
      delegate = new HttpCommandExecutor(buildUrl(host, determineNextFreePort(profile.getPort())));
      String firefoxLogFile = System.getProperty("webdriver.firefox.logfile");
      File logFile = firefoxLogFile == null ? null : new File(firefoxLogFile);
      this.process.setOutputWatcher(new CircularOutputStream(logFile, bufferSize));

      profile.setPort(delegate.getAddressOfRemoteServer().getPort());
      profile.updateUserPrefs();

      this.process.clean(profile);
View Full Code Here

Examples of org.openqa.selenium.remote.internal.CircularOutputStream

  }

  public OutputStream getDefaultOutputStream() {
    String firefoxLogFile = System.getProperty("webdriver.firefox.logfile");
    File logFile = firefoxLogFile == null ? null : new File(firefoxLogFile);
    return new CircularOutputStream(logFile);
  }
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.