Package io.goobi.viewer.controller.shell
Class ProcessOutputReader
java.lang.Object
io.goobi.viewer.controller.shell.ProcessOutputReader
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic char[]decodeWithCharset(byte[] origBytes, Charset charset) booleanvoidrun()voidsetKeepOutput(boolean keepOutput) voidwriteToFile(File file)
-
Constructor Details
-
ProcessOutputReader
- Parameters:
inputStream-
-
-
Method Details
-
run
public void run() -
decodeWithCharset
public static char[] decodeWithCharset(byte[] origBytes, Charset charset) throws CharacterCodingException - Throws:
CharacterCodingException
-
getOutput
-
writeToFile
- Throws:
IOException
-
isKeepOutput
public boolean isKeepOutput() -
setKeepOutput
public void setKeepOutput(boolean keepOutput)
-