[]
        
(Showing Draft Content)

CSJ2K.j2k.util.StreamMsgLogger

StreamMsgLogger Class

Inheritance
StreamMsgLogger
Implements
Namespace: CSJ2K.j2k.util
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class StreamMsgLogger : MsgLogger

Constructors

Name Description
StreamMsgLogger(Stream, Stream, int)

Constructs a StreamMsgLogger that uses 'outstr' as the 'out' stream, and 'errstr' as the 'err' stream. Note that 'outstr' and 'errstr' can be System.out and System.err.

StreamMsgLogger(StreamWriter, StreamWriter, int)

Constructs a StreamMsgLogger that uses 'outstr' as the 'out' stream, and 'errstr' as the 'err' stream. Note that 'outstr' and 'errstr' can be System.out and System.err.

Methods

Name Description
flush()

Writes any buffered data from the print() and println() methods to the device.

println(string, int, int)

Prints the string 'str' to the 'out' stream, appending a newline. The message is reformatted to the line width given to the constructors and using 'flind' characters to indent the first line and 'ind' characters to indent the second line. However, any newlines appearing in 'str' are respected. The output device may or may not display the string until flush() is called, depending on the autoflush state of the PrintWriter, to be sure flush() should be called to write the string to the device. This method just prints the string, the string does not make part of a "message" in the sense that noe severity is associated to it.

printmsg(int, string)

Prints the message 'msg' to the output device, appending a newline, with severity 'sev'. The severity of the message is prepended to the message.