Package org.zeroturnaround.exec
Class ProcessOutput
java.lang.Object
org.zeroturnaround.exec.ProcessOutput
Standard output of a finished process.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
data
private final byte[] dataProcess output (notnull
).
-
-
Constructor Details
-
ProcessOutput
public ProcessOutput(byte[] data)
-
-
Method Details
-
getBytes
public byte[] getBytes()- Returns:
- binary output of the finished process.
-
getString
- Returns:
- output of the finished process converted to a String using platform's default encoding.
-
getUTF8
- Returns:
- output of the finished process converted to UTF-8 String.
-
getString
- Parameters:
charset
- The name of a supported char set.- Returns:
- output of the finished process converted to a String.
-
getLines
- Returns:
- output lines of the finished process converted using platform's default encoding.
-
getLinesAsUTF8
- Returns:
- output lines of the finished process converted using UTF-8.
-
getLines
- Parameters:
charset
- The name of a supported char set.- Returns:
- output lines of the finished process converted using a given char set.
-
getLinesFrom
-