Package io.goobi.viewer.controller.shell
Class ProcessOutputReader
java.lang.Object
io.goobi.viewer.controller.shell.ProcessOutputReader
- All Implemented Interfaces:
Runnable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic char[]
decodeWithCharset
(byte[] origBytes, Charset charset) boolean
void
run()
void
setKeepOutput
(boolean keepOutput) void
writeToFile
(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)
-