CSJ2K.j2k.fileformat.reader.FileFormatReader.readJP2HeaderBox C# (CSharp) Method

readJP2HeaderBox() public method

This method reads the JP2Header box
If an I/O error ocurred. /// /// If the end of file was reached /// ///
public readJP2HeaderBox ( long pos, int length, long longLength ) : bool
pos long The position in the file /// ///
length int The length of the JP2Header box /// ///
longLength long
return bool
        public virtual bool readJP2HeaderBox(long pos, int length, long longLength)
        {
            if (length == 0)
            {
                // This can not be last box
                throw new System.InvalidOperationException("Zero-length of JP2Header Box");
            }

            // Here the JP2Header data (DBox) would be read if we were to use it

            return true;
        }