This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
consumption
- To: kawa at sources dot redhat dot com
- Subject: consumption
- From: "John Kozak" <jk at noontide dot demon dot co dot uk>
- Date: Sun, 4 Nov 2001 14:38:53 +0000
I'm trying to do some XML parsing using kawa, and implementing a
Consumer seemed a reasonable thing to do. So I wrote the code below,
but it doesn't compile. Is there perhaps a problem with arrays of
non-Object type? Error is "method write(char[],int,int)void not implemented".
(define-simple-class <MyConsumer> (<gnu.lists.Consumer>)
((writeChar (v :: <int>)) :: <void>
0)
((writeBoolean (v :: <boolean>)) :: <void>
0)
((writeFloat (v :: <float>)) :: <void>
0)
((writeDouble (v :: <double>)) :: <void>
0)
((writeInt (v :: <int>)) :: <void>
0)
((writeLong (v :: <long>)) :: <void>
0)
((beginGroup (typeName :: <String>) (type :: <Object>)) :: <void>
0)
((endGroup (typeName :: <String>)) :: <void>
0)
((beginAttribute (attrName :: <String>) (attrType :: <Object>)) :: <void>
0)
((endAttribute) :: <void>
0)
((writeObject (v :: <Object>)) :: <void>
0)
((ignoring) :: <boolean>
#f)
((writeChars (str :: <String>)) :: <void>
0)
((write (str :: <char[]>) (off :: <int>) (len :: <int>)) :: <void>
0)
)
John