Downloads
Java Classes
As well as the Windows 9x programs that I have written, I'm a bit of a Java fan and have written some some programs in that language. You can find the only one which is actually (just about) working (RajCal) on it's own page, but while I was writing these, I wrote some utility classes that made development a bit easier. These are what you will find on this page, collectively found in the package com.raj.extensions.
ExtendedGCalendar
In my opinion, the java.util.Calendar class that comes as part of the standard library is missing a few functions that I needed, so I extended it myself, and will now make my extensions available publically from this site.
SendingMail
As part of my work, I have needed to be able to send emails several times from within Java, but Sun's JavaMail API seemed bloated and too large and cumbersome for what I wanted, so I wrote a simple class that encapsulates an email message. It basically just opens a socket to an SMTP server and writes an email directly to it. There is also a graphical interface that I wrote for it when I was a bit bored, called MailSender.
Browser Dectector
This is a JavaBean that allows you to detect the browser, version and platform of a user agent in a JavaServer Page (JSP). I needed one of these when I was doing some work once and I couldn't find a Java version (although there were plenty of JavaScript ones!) so I ported a PHP browser detection script that I found.
Utils
This contains several utility functions that I found that I constantly needed when I was writing this or that program, so I abstracted them to this utility class. This has five methods in it:
- Method to strip quotes out of a string
- Method to return the name of a month given its numerical value
- Method to get the number of days in a given month
- Methods to print a string
All the classes included in the package are documented with JavaDoc, which is included in the package. The documentation can also be read online here.
Note: I have used these extensions for my own personal use and cannot guarantee that they have been thoroughly tested.
Downloads
Download
com.raj.extensions
Read the JavaDoc documentation.
The original text and layout of this page are copyright © Rajnish Bhaskar, 1997 – 2023. All images are copyrighted to their respective owners. All copyrights and trademarks are acknowledged on the copyrights page. Read the privacy policy at LordOfTheMoon.com
All views on this website or elsewhere on the web under the 'LordOfTheMoon' name are purely personal and reflect my own views and nothing else. If you have any comments or anything else to say, email me at and tell me.
[Home] - [Blog] - [Peace] - [My Writings] - [Science Fiction] - [Computing] - [CV] - [About me] - [Links] - [Sitemap]