Package com.google.api.client.util

Examples of com.google.api.client.util.LoggingOutputStream


    this.contentEncoding = contentEncoding;
    this.contentLoggingLimit = contentLoggingLimit;
  }

  public void writeTo(OutputStream out) throws IOException {
    LoggingOutputStream loggableOutputStream =
        new LoggingOutputStream(out, HttpTransport.LOGGER, Level.CONFIG, contentLoggingLimit);
    try {
      httpContent.writeTo(loggableOutputStream);
    } finally {
      // force the log stream to close
      loggableOutputStream.getLogStream().close();
    }
    out.flush();
  }
View Full Code Here

TOP

Related Classes of com.google.api.client.util.LoggingOutputStream

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.