@classmethod<EOL><INDENT>def parse(cls, fptr, offset=<NUM_LIT:0>, length=<NUM_LIT:0>):<DEDENT>
main_header_offset = fptr.tell()<EOL>if config.get_option('<STR_LIT>'):<EOL><INDENT>codestream = Codestream(fptr, length, header_only=False)<EOL><DEDENT>else:<EOL><INDENT>codestream = None<EOL><DEDENT>box = cls(codestream, main_header_offset=main_header_offset,<EOL>length=length, offset=offset)<EOL>box._filename = fptr.name<EOL>box._length = length<EOL>return box<EOL>
Parse a codestream box.

        Parameters
        ----------
        fptr : file
            Open file object.
        offset : int
            Start position of box in bytes.
        length : int
            Length of the box in bytes.

        Returns
        -------
        ContiguousCodestreamBox
            Instance of the current contiguous codestream box.