public class WebmWriter extends Object implements Closeable, TagConsumer
| Constructor and Description |
|---|
WebmWriter(File file,
boolean append)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Will close all opened resources and "finalize" the write process
|
void |
consume(Tag tag)
Method will be called as soon as webm Tag is available
|
void |
writeHeader()
method to write webm header to the new file
|
void |
writeTag(Tag tag)
will write tag bytesWritten counter will be increased by the number of bytes actually written
|
public WebmWriter(File file, boolean append)
file - - file the data need to written toappend - - if false the file will be rewritten, if true data will be appendedpublic void writeHeader()
throws IOException,
ConverterException
IOException - - in case of IO errorsConverterException - - in case of conversion errorspublic void writeTag(Tag tag) throws IOException
tag - - tag to be writtenIOException - - in case of any IO errorspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void consume(Tag tag) throws IOException
TagConsumerconsume in interface TagConsumertag - - tag to be processedIOException - - exception accured during processingTagConsumer.consume(org.red5.io.matroska.dtd.Tag)Copyright © 2005–2017 Red5. All rights reserved.