This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

consumption


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]