Package org.red5.io.webm
Class WebmReader
- java.lang.Object
-
- org.red5.io.webm.WebmReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class WebmReader extends Object implements Closeable
Class able to parse webm Tags from file
-
-
Constructor Summary
Constructors Constructor Description WebmReader(File file, TagConsumer processor)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Will close all opened resourcesvoidprocess()will process given file and send all tags found to the consumer
-
-
-
Constructor Detail
-
WebmReader
public WebmReader(File file, TagConsumer processor) throws FileNotFoundException
Constructor- Parameters:
file- - file to be readprocessor- - handler for the tags found- Throws:
FileNotFoundException- - will be thrown if file not found
-
-
Method Detail
-
process
public void process() throws IOException, ConverterExceptionwill process given file and send all tags found to the consumer- Throws:
IOException- - in case of any exception during reading and/or consumengConverterException- - in case of any error during conversions
-
close
public void close() throws IOExceptionWill close all opened resources- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-