|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
public interface AsyncTranslationService
一時辞書を用いる非同期翻訳のインターフェース。
| メソッドの概要 | |
|---|---|
AsyncTranslationResult |
getCurrentResult(String token)
現在翻訳できている文章を取得する。 |
String |
startTranslation(String sourceLang,
String targetLang,
String[] sources)
非同期翻訳を行う。 |
void |
terminate(String token)
実行中の翻訳処理を中断する。 |
| メソッドの詳細 |
|---|
String startTranslation(String sourceLang,
String targetLang,
String[] sources)
throws InvalidParameterException,
ProcessFailedException
sourceLang - 翻訳元言語(RFC3066準拠)targetLang - 翻訳先言語(RFC3066準拠)sources - 翻訳する文字列の配列
InvalidParameterException - 不正なパラメータが渡された
ProcessFailedException - 翻訳処理に失敗した
AsyncTranslationResult getCurrentResult(String token)
throws InvalidParameterException,
ProcessFailedException
token - 結果取得用トークン
InvalidParameterException - An invalid parameter was passed
ProcessFailedException - Translation process failed
void terminate(String token)
throws InvalidParameterException,
ProcessFailedException
token - 結果取得用トークン
InvalidParameterException - An invalid parameter was passed
ProcessFailedException - Translation process failed
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||