Brooklyn

brooklyn.util.stream
[Java] Class ThreadLocalPrintStream.OutputCapturingContext

java.lang.Object
  brooklyn.util.stream.ThreadLocalPrintStream.OutputCapturingContext

public static class ThreadLocalPrintStream.OutputCapturingContext

Field Summary
protected boolean finished

protected java.io.ByteArrayOutputStream out

protected ThreadLocalPrintStream stream

protected java.io.OutputStream streamToRestore

 
Constructor Summary
ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream)

constructor which installs a ByteArrayOutputStream to this stream

ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream, java.io.ByteArrayOutputStream capturingStream, java.io.OutputStream optionalStreamToRestore)

constructor for a capturing context which is already installed

 
Method Summary
java.lang.String end()

java.lang.String getOutputSoFar()

java.io.ByteArrayOutputStream getOutputStream()

boolean isActive()

boolean isEmpty()

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

finished

protected boolean finished


out

protected final java.io.ByteArrayOutputStream out


stream

protected final ThreadLocalPrintStream stream


streamToRestore

protected final java.io.OutputStream streamToRestore


 
Constructor Detail

ThreadLocalPrintStream.OutputCapturingContext

public ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream)
constructor which installs a ByteArrayOutputStream to this stream


ThreadLocalPrintStream.OutputCapturingContext

public ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream, java.io.ByteArrayOutputStream capturingStream, java.io.OutputStream optionalStreamToRestore)
constructor for a capturing context which is already installed


 
Method Detail

end

public java.lang.String end()


getOutputSoFar

public java.lang.String getOutputSoFar()


getOutputStream

public java.io.ByteArrayOutputStream getOutputStream()


isActive

public boolean isActive()


isEmpty

public boolean isEmpty()


toString

@Override
public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.