Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #254 Optional list of boxes to skip when reading file #255

Merged
merged 3 commits into from
Jul 27, 2018

Conversation

atoone
Copy link
Contributor

@atoone atoone commented Apr 24, 2017

Add a new method on AbstractBoxParser that allows a list of box types to be skipped (ie. not read) when parsing the source file. This allows metadata to be read without consuming the entire file.

Skipped boxes are replaced by the 'SkipBox' type, which stores the original box type, the length and the offset within the source file for the data that has not been read.

This implementation does not support writing skipped boxes out again. The data source type must be seekable - for instance, a FileChannel.

@sannies sannies merged commit eea27cb into sannies:master Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants