Hey there,
nice sample on how to redirect an output stream.
THANKS...
BY using
java/io/OutputStream
as superclass for clsOutputStream you are allready overriding every generic method and property that you are addressing!
So...
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
|
Public Sub write( nOutputCharacter As Integer )
'Me.writeOverridable( nOutputCharacter )
Dim cOutputCharacter As String
cOutputCharacter = Chr( nOutputCharacter )
txtJBTextArea.AppendText( cOutputCharacter )
End Sub
|
will do the job!
Dani
Yes, I originally overrode the the write method, with just an substitute write method. But then noticed an earlier Jabaco post, which injected a separate 'foooverridable' method. It seemed like a neat way to document that the class was meant to be extended, so it was thrown in.
So, we did it. Now Jabaco users have a way of redirecting standard output/error.
Is there a way to tag these posts, for example with keywords like 'stdout' and 'stderr'?