/** * Reads from the provided {@link ExtractorInput}. * * @param input The {@link ExtractorInput} from which to read. * @return One of {@link Extractor#RESULT_CONTINUE} and {@link Extractor#RESULT_END_OF_INPUT}. * @throws IOException If an error occurred reading from the source. * @throws InterruptedException If the thread was interrupted. */ public int read(ExtractorInput input) throws IOException, InterruptedException { int result = extractor.read(input, null); Assertions.checkState(result != Extractor.RESULT_SEEK); return result; }
/** * Reads from the provided {@link ExtractorInput}. * * @param input The {@link ExtractorInput} from which to read. * @return One of {@link Extractor#RESULT_CONTINUE} and {@link Extractor#RESULT_END_OF_INPUT}. * @throws IOException If an error occurred reading from the source. * @throws InterruptedException If the thread was interrupted. */ public int read(ExtractorInput input) throws IOException, InterruptedException { int result = extractor.read(input, null); Assertions.checkState(result != Extractor.RESULT_SEEK); return result; }
result = extractor.read(input, positionHolder);