public class DefaultInputHandler extends InputHandler
stdin
.InputHandler.InputType
alreadyClosed, serializer
Constructor and Description |
---|
DefaultInputHandler() |
DefaultInputHandler(StreamingCommand.HandleSpec spec) |
Modifier and Type | Method and Description |
---|---|
void |
close(Process process)
Close the
InputHandler since there is no more input
to be sent to the managed process. |
InputHandler.InputType |
getInputType()
Get the handled
InputType |
bindTo, putNext
public DefaultInputHandler()
public DefaultInputHandler(StreamingCommand.HandleSpec spec)
public InputHandler.InputType getInputType()
InputHandler
InputType
getInputType
in class InputHandler
InputType
public void close(Process process) throws IOException
InputHandler
InputHandler
since there is no more input
to be sent to the managed process.close
in class InputHandler
process
- the managed process - this could be null in some cases
like when input is through files. In that case, the process would not
have been exec'ed yet - if this method if overridden it is the responsibility
of the implementer to check that the process is usable. The managed process
object is supplied by the ExecutableManager to this call so that this method
can check if the process is alive if it needs to know.IOException
Copyright © 2007-2017 The Apache Software Foundation