org.cogchar.bundle.demo.convo
Class PannousProcessor

java.lang.Object
  extended by org.cogchar.bundle.demo.convo.PannousProcessor
All Implemented Interfaces:
org.jflux.api.core.Adapter<String,ConvoResponse>

public class PannousProcessor
extends Object
implements org.jflux.api.core.Adapter<String,ConvoResponse>

Author:
Matthew Stevenson

Field Summary
protected  int myTimeout
           
 
Constructor Summary
PannousProcessor(String location, int timeout)
           
 
Method Summary
 ConvoResponse adapt(String input)
           
 String getResponseString(String resultStr)
           
static String streamToString(InputStream is, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myTimeout

protected int myTimeout
Constructor Detail

PannousProcessor

public PannousProcessor(String location,
                        int timeout)
Method Detail

adapt

public ConvoResponse adapt(String input)
Specified by:
adapt in interface org.jflux.api.core.Adapter<String,ConvoResponse>

getResponseString

public String getResponseString(String resultStr)

streamToString

public static String streamToString(InputStream is,
                                    String encoding)
                             throws IOException
Throws:
IOException


Copyright © 2010-2013. All Rights Reserved.