public interface MimeTypeDetector
String mimeTypeOf(String name, Binary binaryValue) throws RepositoryException, IOException
nullmay be returned, where the former will prevent earlier registered MIME-type detectors from being consulted.
name- The name of the data source; may be
binaryValue- The value which contains the raw data for which the mime type should be returned; may be
nullif the MIME-type could not be determined.
IOException- If an error occurs reading the supplied content.
RepositoryException- if any error occurs while attempting to read the stream from the binary value
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.