@StableMinor(version="12.3", sinceVersion="8.2") public interface IContentTypeProvider
added
.Modifier and Type | Method and Description |
---|---|
String |
getContentType(String fileName,
InputStream fileInputStream)
Returns the content type for the given file.
If no content type could be inferred, null should be returned. |
String getContentType(String fileName, InputStream fileInputStream) throws PortalException, IOException
null
should be returned. In this case, the portal will calculate
the content type by using its default implementation.fileName
- the file name of the given file.fileInputStream
- the file input stream of the given file. The stream will be closed by who called this method.null
if no content type could be inferred.PortalException
IOException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.