com.languagecomputer.client
Class StreamingBatchWebClient
java.lang.Object
com.languagecomputer.client.WebClient
com.languagecomputer.client.BatchWebClient
com.languagecomputer.client.StreamingBatchWebClient
public class StreamingBatchWebClient
- extends BatchWebClient
BatchWebClient
that streams the file content to the server instead of
sending the URL.
- Since:
- 1.0
- Author:
- Kirk Roberts
Method Summary |
static void |
main(String[] args)
Client driver, called from command line. |
protected Document |
process(String file)
Processes the given file as either a URL or
File . |
Methods inherited from class com.languagecomputer.client.WebClient |
getAnnotationMetaService, getAttributeService, getConnectTimeout, getCoreferenceService, getDocumentService, getEntityService, getEventService, getIndexService, getPort, getReceiveTimeout, getSpatialService, getTemporalService, getURL, print, setSessionID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingBatchWebClient
public StreamingBatchWebClient(String host,
List<String> services)
- Creates a new
StreamingBatchWebClient
with the
services located on the given host.
main
public static void main(String[] args)
throws Exception
- Client driver, called from command line.
- Parameters:
args
- Command line arguments.
- Throws:
Exception
- In case of service call failure.
process
protected Document process(String file)
throws IOException
- Description copied from class:
BatchWebClient
- Processes the given file as either a
URL
or
File
.
- Overrides:
process
in class BatchWebClient
- Throws:
IOException
Copyright © 2009. All Rights Reserved.