You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2015/05/28 11:51:42 UTC

svn commit: r1682193 - /sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext

Author: bdelacretaz
Date: Thu May 28 09:51:42 2015
New Revision: 1682193

URL: http://svn.apache.org/r1682193
Log:
SLING-4694 - mention the new commons.contentdetection bundle

Modified:
    sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext

Modified: sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext?rev=1682193&r1=1682192&r2=1682193&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/mime-type-support-commons-mime.mdtext Thu May 28 09:51:42 2015
@@ -31,7 +31,9 @@ Two more methods allow to programmatical
 
 For content-based mime type detection (as opposed to filename-based detection), the `org.apache.sling.commons.contentdetection` bundle 
 provides the `ContentAwareMimeTypeService`, which takes an `InputStream` that's analyzed to detect its mime type, using Apache Tika
-by default.
+by default:
+
+* `getMimeType(String filename, InputStream content)` -- given a filename and an `InputStream` that points to the file contents, this method first tries content-based detection using the stream, and falls back to filename-based detection if needed.
 
 ## And More...