org.apache.hadoop.hive.common.io
Class CachingPrintStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream
              extended by org.apache.hadoop.hive.common.io.CachingPrintStream
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class CachingPrintStream
extends PrintStream


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CachingPrintStream(OutputStream out)
           
CachingPrintStream(OutputStream out, boolean autoFlush, String encoding)
           
 
Method Summary
 void flush()
           
 List<String> getOutput()
           
 void println(String out)
           
 
Methods inherited from class java.io.PrintStream
append, append, append, checkError, clearError, close, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingPrintStream

public CachingPrintStream(OutputStream out,
                          boolean autoFlush,
                          String encoding)
                   throws FileNotFoundException,
                          UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

CachingPrintStream

public CachingPrintStream(OutputStream out)
Method Detail

println

public void println(String out)
Overrides:
println in class PrintStream

flush

public void flush()
Specified by:
flush in interface Flushable
Overrides:
flush in class PrintStream

getOutput

public List<String> getOutput()


Copyright © 2013 The Apache Software Foundation