Class FakeExtractorOutput
- java.lang.Object
- 
- com.google.android.exoplayer2.testutil.FakeExtractorOutput
 
- 
- All Implemented Interfaces:
- ExtractorOutput,- Dumper.Dumpable
 
 public final class FakeExtractorOutput extends Object implements ExtractorOutput, Dumper.Dumpable A fakeExtractorOutput.
- 
- 
Field SummaryFields Modifier and Type Field Description intnumberOfTracks@MonotonicNonNull SeekMapseekMapSparseArray<FakeTrackOutput>trackOutputsbooleantracksEnded- 
Fields inherited from interface com.google.android.exoplayer2.extractor.ExtractorOutputPLACEHOLDER
 
- 
 - 
Constructor SummaryConstructors Constructor Description FakeExtractorOutput()FakeExtractorOutput(FakeTrackOutput.Factory trackOutputFactory)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearTrackOutputs()voiddump(Dumper dumper)Dumps the fields of the object using thedumper.voidendTracks()Called when all tracks have been identified, meaning no newtrackIdvalues will be passed toExtractorOutput.track(int, int).voidseekMap(SeekMap seekMap)Called when aSeekMaphas been extracted from the stream.FakeTrackOutputtrack(int id, int type)Called by theExtractorto get theTrackOutputfor a specific track.
 
- 
- 
- 
Field Detail- 
trackOutputspublic final SparseArray<FakeTrackOutput> trackOutputs 
 - 
numberOfTrackspublic int numberOfTracks 
 - 
tracksEndedpublic boolean tracksEnded 
 - 
seekMappublic @MonotonicNonNull SeekMap seekMap 
 
- 
 - 
Constructor Detail- 
FakeExtractorOutputpublic FakeExtractorOutput() 
 - 
FakeExtractorOutputpublic FakeExtractorOutput(FakeTrackOutput.Factory trackOutputFactory) 
 
- 
 - 
Method Detail- 
trackpublic FakeTrackOutput track(int id, int type) Description copied from interface:ExtractorOutputCalled by theExtractorto get theTrackOutputfor a specific track.The same TrackOutputis returned if multiple calls are made with the sameid.- Specified by:
- trackin interface- ExtractorOutput
- Parameters:
- id- A track identifier.
- type- The- track type.
- Returns:
- The TrackOutputfor the given track identifier.
 
 - 
endTrackspublic void endTracks() Description copied from interface:ExtractorOutputCalled when all tracks have been identified, meaning no newtrackIdvalues will be passed toExtractorOutput.track(int, int).- Specified by:
- endTracksin interface- ExtractorOutput
 
 - 
seekMappublic void seekMap(SeekMap seekMap) Description copied from interface:ExtractorOutputCalled when aSeekMaphas been extracted from the stream.- Specified by:
- seekMapin interface- ExtractorOutput
- Parameters:
- seekMap- The extracted- SeekMap.
 
 - 
clearTrackOutputspublic void clearTrackOutputs() 
 - 
dumppublic void dump(Dumper dumper) Description copied from interface:Dumper.DumpableDumps the fields of the object using thedumper.- Specified by:
- dumpin interface- Dumper.Dumpable
- Parameters:
- dumper- The- Dumperto be used to dump fields.
 
 
- 
 
-