|Modifier and Type||Class and Description|
Flags controlling the behavior of the extractor.
|Modifier and Type||Field and Description|
Factory that returns one extractor which is a
Flag to disable parsing of ID3 metadata.
|Constructor and Description|
Constructs an instance with
Constructs an instance.
|Modifier and Type||Method and Description|
Initializes the extractor with an
Extracts data read from a provided
Releases all kept resources.
Notifies the extractor that a seek has occurred.
Returns whether this extractor can extract samples from the
public static final ExtractorsFactory FACTORY
public static final int FLAG_DISABLE_ID3_METADATA
flags = 0.
public FlacExtractor(int flags)
flags- Flags that control the extractor's behavior. Possible flags are described by
public void init(ExtractorOutput output)
ExtractorOutput. Called at most once.
public boolean sniff(ExtractorInput input) throws IOException
ExtractorInput, which must provide data from the start of the stream.
true is returned, the
input's reading position may have been modified.
Otherwise, only its peek position may have been modified.
public int read(ExtractorInput input, PositionHolder seekPosition) throws IOException
ExtractorInput. Must not be called before
A single call to this method will block until some progress has been made, but will not block for longer than this. Hence each call will consume only a small amount of input data.
In the common case,
Extractor.RESULT_CONTINUE is returned to indicate that the
ExtractorInput passed to the next read is required to provide data continuing from the
position in the stream reached by the returning call. If the extractor requires data to be
provided from a different position, then that position is set in
Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the
Extractor.RESULT_END_OF_INPUT is returned.
ExtractorInputfrom which data should be read.
Extractor.RESULT_SEEKis returned, this holder is updated to hold the position of the required data.
RESULT_values defined in this interface.
IOException- If an error occurred reading from or parsing the input.
public void seek(long position, long timeUs)
Following a call to this method, the
ExtractorInput passed to the next invocation of
Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from
position in the stream. Valid random access positions are the start of the stream and
positions that can be obtained from any
SeekMap passed to the