public class ConversionUtils extends Object
DocumentConversion| Constructor and Description |
|---|
ConversionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToISO(Date date)
Converts the date to ISO 8601 format.
|
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 convertToISO(Date date)
date - the date to be converted to DateTimepublic static String writeInputStreamToString(InputStream is)
is - the input streamCopyright © 2015. All rights reserved.