public class DocumentConversion extends WatsonService
| Constructor and Description |
|---|
DocumentConversion()
Sets the endpoint url for the service.
|
| Modifier and Type | Method and Description |
|---|---|
Answers |
convertDocumentToAnswer(File document)
Converts a document to Answer Units.
|
Answers |
convertDocumentToAnswer(File document,
String mediaType)
Converts a document to Answer Units.
|
String |
convertDocumentToHTML(File document)
Converts a document to HTML.
|
String |
convertDocumentToHTML(File document,
String mediaType)
Converts a document to HTML.
|
String |
convertDocumentToText(File document)
Converts a document to Text.
|
String |
convertDocumentToText(File document,
String mediaType)
Converts a document to Text.
|
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic DocumentConversion()
public Answers convertDocumentToAnswer(File document)
convertDocumentToAnswer(File, String) if you want to specify the
media typedocument - the documentAnswerspublic Answers convertDocumentToAnswer(File document, String mediaType)
document - the documentmediaType - the document media type. It will use the file extension if not providedAnswerspublic String convertDocumentToHTML(File document)
convertDocumentToHTML(File, String) if you want to specify the
media type.document - the documentStringpublic String convertDocumentToHTML(File document, String mediaType)
document - the documentmediaType - document the document media type. It will use the file extension if not
providedStringpublic String convertDocumentToText(File document)
convertDocumentToText(File, String) if you want to specify the
media type.document - the documentStringCopyright © 2015. All rights reserved.