[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VCARD SDK for UNIX



Daniel Shields wrote:
>Exactly.   Where are the *open implementations* ??  If someone can point me to 
>or provide me with a reasonable source code base for what currently exists I 
>will gladly take over porting to Unix and even Java.

I've started porting the sdk to Java, basically because I wanted
people to be able to *read* my vCard from my web page, and there
aren't a lot of viewers out there. I've made some changes to the
API to make it more java-like ; these aren't really up for discussion
until I get this version working, as this is just for me and
obviously not IMC's official java API. When I finish I'll pass
the source on to anyone who wants it.

The major points are:
VObject becomes a class, most sdk calls which mention (VOBject *o,...)
translated into instance methods.
The functionality provided by newVObject (looking up ID's) now uses
	a static java.util.Hashtable.
VObjectIterator still exists, but has become a subclass of
Enumeration. 
The Base64 and QuotedPrintable code (both input and output) has been
migrated into Base64InputStream,Base64OutputStream, etc... so I can
reuse it; (I'm sure I could find code to do that already on Gamelan
but I started doing this at home on Saturday...)
The 'pretty-print' code has just become 'toString()' - the output
	of my code will differ from the original API;
The parser and output code for the vCard text format has been moved
into reader and writer classes. I haven't gone in for using byacc -j
or JavaCC for this (yet) as the parser is pretty simple.

Finally, I expect to write an applet to reproduce the behaviour of the
example app. I'm not impplementing drag & drop in this version as
most people I know don't use browsers with the 1.1 API. I'll
probably write an application for this afterwards, assuming I get
it all to work.

I don't expect this to be the most efficient code in the world
but it may be useful to some people out there. 

	Cheers,
		Brian.