Java 38
Apache Common Validator
Apache common validator provides validation for email,website,domain,credit card,currency etc. It provides configurable validation engine and primitive validation too. Download Apache validator link :- Apache validator library jar download Project Structure:- Test Apache Common validator:- package com.sandeep.apache.validator;import org.apache.commons.validator.routines.CreditCardValidator;import org.apache.commons.validator.routines.EmailValidator;import org.apache.commons.validator.routines.UrlValidator;public class ApacheValidatorDemo { public static void main(String[] args) { UrlValidator […]
Jaxen Xpath Library With Dom4j
Jaxen is an open source X-Path Library. It can work with DOM, XOM, dom4j, and JDOM. Jaxen and Dom4j library download Link:- Jaxen lib download link Dom4j lib download link Input Xml File:- India rice curry roti tandoori coconut water lemon water pulao barfi palak […]
Joda Time Library
Joda Time provides better api methods then java util date. joda time api can be downloaded:- joda time library download Project Structure:- Test Joda Time:- package com.sandeep.joda.time;import java.util.Calendar;import java.util.Date;import org.joda.time.DateTime;public class JodaTimeTest { public static void main(String[] args) { //Joda Time Date DateTime jodadate = new DateTime(); System.out.print("Joda time […]
MD5 : Message Digest
MD5 (Message Digest) is a technique for verifying data integrity for a file. 128 bit key is used for hashing and producing the MD5 output. Project Structure:- Test MD5 Code:- package com.sandeep.md.gen;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStream;import java.security.DigestInputStream;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5GeneratorTest { /** * @param args */ public static void main(String[] args) { InputStream ins […]