|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.jtm.jmed.UmlsSocketClient
public class UmlsSocketClient
A client utilizing UMLS server's socket query facility. This client is preferred over the UmlsQueryClient for queries with huge responses. This class should be used as inheritance. Subclasses override the processLine() method.
| Field Summary | |
|---|---|
protected static java.util.regex.Matcher |
endMatcher
|
protected java.io.BufferedReader |
fromServer
|
protected boolean |
querySent
|
protected java.nio.CharBuffer |
responseBuffer
|
| Constructor Summary | |
|---|---|
UmlsSocketClient(java.io.File template)
Create a new UmlsSocketQuery object with a template query. |
|
| Method Summary | |
|---|---|
void |
close()
Close the socket connection to the server. |
static void |
main(java.lang.String[] args)
For test. |
void |
processResponse()
|
void |
sendQuery(java.lang.String[] args)
Send a query to the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.regex.Matcher endMatcher
protected boolean querySent
protected java.io.BufferedReader fromServer
protected java.nio.CharBuffer responseBuffer
| Constructor Detail |
|---|
public UmlsSocketClient(java.io.File template)
template - template query file.| Method Detail |
|---|
public void close()
public void sendQuery(java.lang.String[] args)
args - query arguments to be filled in the template.public void processResponse()
public static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||