to top
public class


extends Object
implements IShellOutputReceiver

Class Overview

A IShellOutputReceiver which collects the whole shell output into a byte[]. This is useful for shell commands that will produce a significant amount of output, where the 2x String memory overhead will be significant.


Public Constructors
Public Methods
void addOutput(byte[] data, int offset, int length)
void cancel()
Cancel the output collection
void clear()
Try to unref everything that we can
void flush()
byte[] getOutput()
boolean isCancelled()
Inherited Methods
From class java.lang.Object
From interface

Public Constructors

public CollectingByteOutputReceiver ()

Public Methods

public void addOutput (byte[] data, int offset, int length)

public void cancel ()

Cancel the output collection

public void clear ()

Try to unref everything that we can

public void flush ()

public byte[] getOutput ()

public boolean isCancelled ()