org.dspace.ctask.general
Class MicrosoftTranslator
java.lang.Object
org.dspace.curate.AbstractCurationTask
org.dspace.ctask.general.AbstractTranslator
org.dspace.ctask.general.MicrosoftTranslator
- All Implemented Interfaces:
- CurationTask
public class MicrosoftTranslator
- extends AbstractTranslator
MicrosoftTranslator translates metadata fields using Microsoft Translation API v2
Requirements: A valid Bing App ID/Key
More information: http://www.bing.com/developers
This key, and other custom configuration, goes in [dspace]/modules/translator.cfg
- Author:
- Kim Shepherd
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MicrosoftTranslator
public MicrosoftTranslator()
initApi
protected void initApi()
- Overrides:
initApi in class AbstractTranslator
translateText
protected String translateText(String from,
String to,
String text)
throws IOException
- Overrides:
translateText in class AbstractTranslator
- Throws:
IOException
Copyright © 2011 DuraSpace. All Rights Reserved.