Archive

Archive for the ‘Java’ Category

Check Unread Emails using Java

January 20th, 2010 Hitesh Agrawal 2 comments

Sometimes we only want to check new emails received, we commonly see this functionality in email client where in we open the email client in morning and we see few emails in black bold text denoting new emails received. In this articles we will learn on how we can identify new emails received in our mailbox using java.
Read more…

Categories: Java Tags:

Check Image Resolution in Java

November 26th, 2009 Hitesh Agrawal No comments

At first we might tempted to use any 3rd party software for checking image resolution using JAVA. But JAVA has already provided an set of APIs that allows Image Manipulations. This APIs is called Java Advanced Imaging also called JAI. In this article we will learn how we can check the image resolution using Java Advanced Imaging APIs.
Read more…

Categories: Java Tags:

Prototype Design Pattern in Java

October 21st, 2009 Hitesh Agrawal No comments

As the same suggest prototype means some form of cloning and in this design pattern we will understand how we can achieve cloning of an java object. Normally we create an object using “new” operator but with new operator we are creating the whole new object from scratch and so all the necessary operation performed while creating that object will be processed again. To ensure that we don’t want to perform that expensive task again we create an clone of that object. There are 2 types of cloning “Shallow Copy” and “Deep Copy”.
Read more…

Categories: Java Tags:

UTF-8 Encoding Email Content using Java

September 3rd, 2009 Hitesh Agrawal 2 comments

Strange but true, email gateway by default does not support utf-8 encoding for the body text. I also came to know about this when i found my email content containing garbage data along with mail content if any special character comes in the mail content.
Read more…

Categories: Java Tags:

URL Connection Through Proxy in Java

July 21st, 2009 Hitesh Agrawal 2 comments

Sometimes we want to connect to remote URL from our java program but we are unable to connect due to proxy server. So in this article we will be learning:

  • How to set the Proxy Connection Settings in Java.
  • How to connect to remote URL using Proxy Settings defined using Java.

Read more…

Categories: Java Tags:

Text To Speech (TTS) in JAVA

June 30th, 2009 Hitesh Agrawal 1 comment

Festival, it allows us to convert Text to Speech (TTS) in wav format. In this article we will learn on how we can perform TTS from Java applications.
Read more…

Categories: Java Tags: