ComponentOne PDF for .NET
CSJ2K.j2k.codestream.writer Namespace / FileCodestreamWriter Class / FileCodestreamWriter Constructor / FileCodestreamWriter Constructor(Object,Int32)
The file where to write the bit stream
The maximum number of bytes that can be written to the bit stream.

In This Topic
    FileCodestreamWriter Constructor(Object,Int32)
    In This Topic
    Opens the file 'file' for writing the codestream. The magic number is written to the bit stream. Normally, the header encoder must be empty (i.e. no data has been written to it yet). A BufferedOutputStream is used on top of the file to increase throughput, the length of the buffer is DEF_BUF_LEN.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal file As Object, _
       ByVal mb As Integer _
    )
    public FileCodestreamWriter( 
       object file,
       int mb
    )

    Parameters

    file
    The file where to write the bit stream
    mb
    The maximum number of bytes that can be written to the bit stream.
    Exceptions
    ExceptionDescription
    If an error occurs while trying to open the file for writing or while writing the magic number.
    See Also