public class CLI extends Object
| Constructor and Description |
|---|
CLI() |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(InputStream inputStream,
OutputStream outputStream) |
void |
client(InputStream inputStream,
OutputStream outputStream)
The client to query the TCP server for annotation.
|
static void |
main(String[] args) |
void |
parseCLI(String[] args)
Parse the command interface parameters with the argParser.
|
void |
server()
Set up the TCP socket for annotation.
|
public static void main(String[] args) throws IOException, org.jdom2.JDOMException
IOExceptionorg.jdom2.JDOMExceptionpublic final void parseCLI(String[] args) throws IOException, org.jdom2.JDOMException
args - the arguments passed through the CLIIOException - exception if problems with the incoming dataorg.jdom2.JDOMException - a xml exceptionpublic final void annotate(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
IOExceptionorg.jdom2.JDOMExceptionpublic final void server()
public final void client(InputStream inputStream, OutputStream outputStream)
inputStream - the stdinoutputStream - stdoutCopyright © 2017 IXA pipes. All rights reserved.