public class TypeDetector extends Object implements Detector
Constructor and Description |
---|
TypeDetector() |
Modifier and Type | Method and Description |
---|---|
MediaType |
detect(InputStream input,
Metadata metadata)
Detects the content type of an input document based on a type hint
given in the input metadata.
|
public MediaType detect(InputStream input, Metadata metadata)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.