import FullBox from "./fullBox"; import Mpeg4BoxHeader from "../mpeg4BoxHeader"; import { ByteVector } from "../../byteVector"; import { File } from "../../file"; /** * This class extends {@link FullBox} to provide an implementation of a ISO/IEC 14496-12 FullBox. */ export default class IsoHandlerBox extends FullBox { private _dataHandlerType; private _name; /** * Private constructor to force construction via static functions. */ private constructor(); /** * Constructs and initializes a new instance of {@link IsoHandlerBox} with a provided header and h * handler by reading the contents from a specified file. * @param header A {@link Mpeg4BoxHeader} object containing the header to use for the new instance. * @param file A {@link File} object to read the contents of the box from. * @param handlerType Type of the handler box object containing the handler that applies to the * new instance, or undefined if no handler applies. */ static fromFile(header: Mpeg4BoxHeader, file: File, handlerType: ByteVector): IsoHandlerBox; /** * Constructs and initializes a new instance of {@link IsoHandlerBox} with a specified type and name. * @param handlerType A {@link ByteVector} object specifying a 4 byte handler type. * @param name An object specifying the handler name. */ static fromHandlerTypeAndHandlerName(handlerType: ByteVector, name: string): IsoHandlerBox; /** * Gets the data contained in the current instance. */ get data(): ByteVector; /** * Gets the handler type as described in the data of the current instance. */ get dataHandlerType(): ByteVector; /** * Gets the name of the current instance. */ get name(): string; }