public class ConversionUtils extends Object
DocumentConversion| Constructor and Description |
|---|
ConversionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMediaTypeFromFile(File file)
Returns the media type for a given file.
|
static Boolean |
isValidMediaType(String mediaType)
Checks if the media type is supported by the service.
|
static String |
writeInputStreamToString(InputStream is)
Write input stream to output stream.
|
public static String getMediaTypeFromFile(File file)
file - the file object for which media type needs to be providedpublic static Boolean isValidMediaType(String mediaType)
mediaType - Internet media type for the filepublic static String writeInputStreamToString(InputStream is)
is - the input streamCopyright © 2015–2016. All rights reserved.