[]
        
(Showing Draft Content)

CSJ2K.j2k.fileformat.reader.FileFormatReader

FileFormatReader Class

This class reads the file format wrapper that may or may not exist around a valid JPEG 2000 codestream. Since no information from the file format is used in the actual decoding, this class simply goes through the file and finds the first valid codestream.

Inheritance
FileFormatReader
Namespace: CSJ2K.j2k.fileformat.reader
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class FileFormatReader

Constructors

Name Description
FileFormatReader(RandomAccessIO)

The constructor of the FileFormatReader

Fields

Name Description
JP2FFUsed

Flag indicating whether or not the JP2 file format is used

Properties

Name Description
CodeStreamPos

This method creates and returns an array of positions to contiguous codestreams in the file

FirstCodeStreamLength

This method returns the length of the first contiguous codestreams in the file

FirstCodeStreamPos

This method returns the position of the first contiguous codestreams in the file

Methods

Name Description
readContiguousCodeStreamBox(long, int, long)
readFileFormat()

This method checks whether the given RandomAccessIO is a valid JP2 file and if so finds the first codestream in the file. Currently, the information in the codestream is not used

readFileTypeBox()

This method reads the File Type box.

readIntPropertyBox(int)

This method reads the contents of the Intellectual property box

readJP2HeaderBox(long, int, long)
readReaderRequirementsBox(int)

This method reads the contents of the Reader requirements box

readUUIDBox(int)

This method reads the contents of the Intellectual property box

readUUIDInfoBox(int)

This method reads the contents of the Intellectual property box

readXMLBox(int)

This method reads the contents of the XML box