/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { AList } from "../../../system/collection/AList"; import { ALong } from "../../../system/runtime/ALong"; import { FileStorage } from "../../../system/storage/FileStorage"; import { ContainerFilePart } from "./ContainerFilePart"; /** * Class ContainerFile defines a single file that contains multiple internal parts. * * @version 1.0 January 2014 */ /** @internal */ export declare class ContainerFile { /** The name of this module */ private static readonly MODULE; /** The name of the file */ private _fileName; /** The length of the file */ private _fileLength; /** The format */ private _format; /** The parts in the file */ private _parts; /** * Create a new container file. * @param fileName the name of the file. * @param fileLength the length of the file. * @param format the format. * @param parts the parts in the file. */ constructor(fileName: string, fileLength: ALong, format: string, parts: AList); /** * Close the container file. * @param closeFileAccess close all file access? */ close(closeFileAccess: boolean): void; /** * Get the name of the file. * @return the name of the file. */ getFileName(): string; /** * Get the length of the file. * @return the length of the file. */ getFileLength(): ALong; /** * Get the format. * @return the format. */ getFormat(): string; /** * Get the number of parts. * @return the number of parts. */ getPartCount(): int32; /** * Get the list of parts. * @return the list of parts. */ getParts(): AList; /** * Get a part. * @param name the name of the part. * @return the part (null if not found). */ getPart(name: string): ContainerFilePart; /** * Check if the magic marker is found. * @param input the input stream. * @param format the 4-character identifier of the format. * @return true if found, false if not. */ private static checkMarker; /** * Read the parts of a container file. * @param containerFileName the name of the container file. * @param format the 4-character identifier of the format. * @return the container file. */ static read(fileStorage: FileStorage, containerFileName: string, format: string): Promise; } export {}; //# sourceMappingURL=ContainerFile.d.ts.map