class BigReader::File
- BigReader::File
- Reference
- Object
Overview
A File
is the general access point to a .big file
This will read all the headers and has the ability to extract an file from it
Defined in:
big_reader/file.crConstructors
-
.new(file : ::File)
Create a new reader based on the given file This will preload all the headers (global & file) Files can be extracted with the
#extract
method
Instance Method Summary
-
#extract(index : IndexedFile, base_dir = "")
Extraxts a single file from the big file For reference it needs the index of what to read This will keep the same directory structure as present in the name An optional base_dir this will be used as the start location of extraction
- #file_handle : File
- #file_index : Array(BigReader::IndexedFile)
- #header : Header
Constructor Detail
Create a new reader based on the given file
This will preload all the headers (global & file)
Files can be extracted with the #extract
method
big_file = BigReader::File.new(File.open("example.big"))
Instance Method Detail
Extraxts a single file from the big file For reference it needs the index of what to read This will keep the same directory structure as present in the name An optional base_dir this will be used as the start location of extraction
big_file = BigReader::File.new(File.open("example.big"))
big_file.extract(big_file.file_index.first)