Class MatroskaDetector
java.lang.Object
org.apache.tika.detect.MatroskaDetector
- All Implemented Interfaces:
Serializable, Detector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect(InputStream input, Metadata metadata) Detects the media type of the input stream by inspecting EBML headers.
-
Constructor Details
-
MatroskaDetector
public MatroskaDetector()
-
-
Method Details
-
detect
Detects the media type of the input stream by inspecting EBML headers.- Specified by:
detectin interfaceDetector- Parameters:
input- the input streammetadata- the metadata to populate- Returns:
- detected MediaType (WEBM, Matroska, or OCTET_STREAM)
- Throws:
IOException- if an I/O error occurs
-