/** * Instantiates a new Primer pack. * * @param byteProvider the mxf byte provider * @throws IOException the iO exception */ PrimerPack(ByteProvider byteProvider, long byteOffset) throws IOException { this.header = new KLVPacket.Header(byteProvider, byteOffset); if(!PrimerPack.isValidKey(Arrays.copyOf(this.header.getKey(), this.header.getKey().length))) { throw new MXFException("Found invalid PrimerPack key"); } this.localTagEntryBatch = new LocalTagEntryBatch(byteProvider); }
numBytesRead += header.getKLSize(); if (PrimerPack.isValidKey(key)) key = Arrays.copyOf(header.getKey(), header.getKey().length); numBytesRead += header.getKLSize(); if (PrimerPack.isValidKey(key))