jp.go.nict.langrid.client.ws_1_2.protobuf.impl
クラス LanguageIdentificationClientImpl

java.lang.Object
  上位を拡張 jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl
      上位を拡張 jp.go.nict.langrid.client.ws_1_2.protobuf.impl.LanguageIdentificationClientImpl
すべての実装されたインタフェース:
LanguageIdentificationClient, ServiceClient

public class LanguageIdentificationClientImpl
extends ServiceClientImpl
implements LanguageIdentificationClient

言語識別サービス用のクライアントを作成する。


入れ子のクラスの概要
 
クラス jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl から継承された入れ子のクラス/インタフェース
ServiceClientImpl.ServiceExecutor<T,U>
 
コンストラクタの概要
LanguageIdentificationClientImpl(URL url)
          Constructor.
 
メソッドの概要
 String[] getSupportedEncodings()
          対応しているエンコーディング一覧を返す。
 String[] getSupportedLanguages()
          対応している言語一覧を返す。
 String identify(String text, String originalEncoding)
          言語を識別する。
 LanguageAndEncoding identifyLanguageAndEncoding(byte[] textBytes)
          言語とエンコーディングを識別する。
 
クラス jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl から継承されたメソッド
addHeaders, convert, createChannel, execute, getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getPassword, getRequestHeaders, getTreeBindings, getUrl, getUserId, setPassword, setUserId
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.go.nict.langrid.client.ws_1_2.ServiceClient から継承されたメソッド
getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getTreeBindings, setPassword, setUserId
 

コンストラクタの詳細

LanguageIdentificationClientImpl

public LanguageIdentificationClientImpl(URL url)
Constructor.

パラメータ:
url - The invocation url of the service.
メソッドの詳細

identify

public String identify(String text,
                       String originalEncoding)
                throws LangridException
インタフェース LanguageIdentificationClient の記述:
言語を識別する。

定義:
インタフェース LanguageIdentificationClient 内の identify
パラメータ:
text - 識別する文字列
originalEncoding - 文字列のエンコーディング
戻り値:
識別結果
例外:
LangridException - サービスの呼び出しに失敗した

identifyLanguageAndEncoding

public LanguageAndEncoding identifyLanguageAndEncoding(byte[] textBytes)
                                                throws LangridException
インタフェース LanguageIdentificationClient の記述:
言語とエンコーディングを識別する。

定義:
インタフェース LanguageIdentificationClient 内の identifyLanguageAndEncoding
パラメータ:
textBytes - 識別する文字列
戻り値:
識別結果
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedLanguages

public String[] getSupportedLanguages()
                               throws LangridException
インタフェース LanguageIdentificationClient の記述:
対応している言語一覧を返す。

定義:
インタフェース LanguageIdentificationClient 内の getSupportedLanguages
戻り値:
言語の配列
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedEncodings

public String[] getSupportedEncodings()
                               throws LangridException
インタフェース LanguageIdentificationClient の記述:
対応しているエンコーディング一覧を返す。

定義:
インタフェース LanguageIdentificationClient 内の getSupportedEncodings
戻り値:
エンコーディングの配列
例外:
LangridException - サービスの呼び出しに失敗した