Package net.sf.okapi.connectors.deepl
Class DeepLConnector
- java.lang.Object
-
- net.sf.okapi.lib.translation.BaseConnector
-
- net.sf.okapi.connectors.deepl.DeepLConnector
-
- All Implemented Interfaces:
AutoCloseable,Iterator<QueryResult>,IQuery
@Deprecated public class DeepLConnector extends BaseConnector
Deprecated.Initial, basic connector for DeepL. See https://stackoverflow.com/questions/45937616/using-deepl-api-to-translate-text for details. This API is deprecated and will not work at some point. Use the DeepLv1Connector instead.
-
-
Constructor Summary
Constructors Constructor Description DeepLConnector()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.StringgetName()Deprecated.StringgetSettingsDisplay()Deprecated.booleanhasNext()Deprecated.QueryResultnext()Deprecated.voidopen()Deprecated.intquery(String text)Deprecated.intquery(TextFragment fragment)Deprecated.protected StringtoInternalCode(LocaleId locale)Deprecated.-
Methods inherited from class net.sf.okapi.lib.translation.BaseConnector
batchLeverage, batchLeverageUsingBatchQuery, batchQuery, batchQueryText, clearAttributes, getNoQueryThreshold, getParameters, getSourceLanguage, getTargetLanguage, getWeight, leverage, leverageUsingBatchQuery, removeAttribute, setAttribute, setLanguages, setNoQueryThreshold, setParameters, setRootDirectory, setWeight
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
close
public void close()
Deprecated.
-
getName
public String getName()
Deprecated.
-
getSettingsDisplay
public String getSettingsDisplay()
Deprecated.
-
open
public void open()
Deprecated.
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNextin interfaceIQuery- Specified by:
hasNextin interfaceIterator<QueryResult>- Overrides:
hasNextin classBaseConnector
-
next
public QueryResult next()
Deprecated.- Specified by:
nextin interfaceIQuery- Specified by:
nextin interfaceIterator<QueryResult>- Overrides:
nextin classBaseConnector
-
query
public int query(String text)
Deprecated.
-
query
public int query(TextFragment fragment)
Deprecated.
-
toInternalCode
protected String toInternalCode(LocaleId locale)
Deprecated.- Overrides:
toInternalCodein classBaseConnector
-
-