Package net.sf.okapi.connectors.google
Class GoogleResponseParser
- java.lang.Object
-
- net.sf.okapi.connectors.google.GoogleResponseParser
-
public class GoogleResponseParser extends Object
-
-
Constructor Summary
Constructors Constructor Description GoogleResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>parseArrayResponse(Reader r, String arrayName, String arrayKey)GoogleMTErrorExceptionparseError(int code, String s, String query)List<String>parseLanguagesResponse(Reader r)List<String>parseResponse(Reader r)
-
-
-
Method Detail
-
parseResponse
public List<String> parseResponse(Reader r) throws IOException, org.json.simple.parser.ParseException
- Throws:
IOExceptionorg.json.simple.parser.ParseException
-
parseLanguagesResponse
public List<String> parseLanguagesResponse(Reader r) throws IOException, org.json.simple.parser.ParseException
- Throws:
IOExceptionorg.json.simple.parser.ParseException
-
parseArrayResponse
protected List<String> parseArrayResponse(Reader r, String arrayName, String arrayKey) throws IOException, org.json.simple.parser.ParseException
- Throws:
IOExceptionorg.json.simple.parser.ParseException
-
parseError
public GoogleMTErrorException parseError(int code, String s, String query) throws IOException, org.json.simple.parser.ParseException
- Throws:
IOExceptionorg.json.simple.parser.ParseException
-
-