Lines Matching refs:mappedFile
60 MappedByteBuffer mappedFile = createMappedByteBuffer(tzData); in execute() local
66 writeVersionFile(mappedFile, outputDir); in execute()
69 int index_offset = mappedFile.getInt(); in execute()
71 int data_offset = mappedFile.getInt(); in execute()
73 int final_offset = mappedFile.getInt(); in execute()
85 extractZicFiles(mappedFile, index_offset, data_offset, zicFilesDir); in execute()
96 MappedByteBuffer mappedFile; in createMappedByteBuffer() local
99 mappedFile = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, file.length()); in createMappedByteBuffer()
101 mappedFile.load(); in createMappedByteBuffer()
102 return mappedFile; in createMappedByteBuffer()
111 private static void writeVersionFile(MappedByteBuffer mappedFile, File targetDir) in writeVersionFile() argument
115 mappedFile.get(tzdata_version); in writeVersionFile()
125 private static void extractZicFiles(MappedByteBuffer mappedFile, int indexOffset, in extractZicFiles() argument
128 mappedFile.position(indexOffset); in extractZicFiles()
158 mappedFile.get(idBytes, 0, idBytes.length); in extractZicFiles()
161 byteOffsets[i] = mappedFile.getInt(); in extractZicFiles()
164 lengths[i] = mappedFile.getInt(); in extractZicFiles()
168 mappedFile.getInt(); // Skip the unused 4 bytes that used to be the raw offset. in extractZicFiles()
194 mappedFile.position(byteOffset); in extractZicFiles()
196 mappedFile.get(bytes, 0, length); in extractZicFiles()