79808182838485
public CalaisRestClient(String apiKey) { this.apiKey= apiKey; } public CalaisResponse analyze(URL url) throws IOException { return analyze(url, new CalaisConfig()); }
90919293949596
config.set(ProcessingParam.CONTENT_TYPE, "TEXT/HTML"); return analyze(new InputStreamReader(url.openStream()), config); } public CalaisResponse analyze(Readable readable) throws IOException { return analyze(readable, new CalaisConfig()); }
99100101102103104105
throws IOException { return analyze(CharStreams.toString(readable), config); } public CalaisResponse analyze(String content) throws IOException { return analyze(content, new CalaisConfig()); }