<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;CU4MQns_fyp7ImA9WhBbGE0.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031</id><updated>2013-05-17T20:49:43.547+05:30</updated><category term="JSR166" /><category term="mail" /><category term="datasource" /><category term="url" /><category term="reflection" /><category term="StAX" /><category term="SQL" /><category term="InputStream" /><category term="MXBean" /><category term="singleton" /><category term="gc" /><category term="MBean" /><category term="serialver" /><category term="classpath" /><category term="http" /><category term="lazyholder" /><category term="jar" /><category term="WeakHashMap" /><category term="string" /><category term="design pattern" /><category term="jsr" /><category term="Collections" /><category term="JNDI" /><category term="TCP" /><category term="Console" /><category term="JAXB" /><category term="tuning" /><category term="windows" /><category term="Persistance" /><category term="performance" /><category term="JMS" /><category term="SQLException" /><category term="Synchronized" /><category term="file" /><category term="Object" /><category term="Heap" /><category term="database" /><category term="transient" /><category term="linux" /><category term="xml" /><category term="ThreadPool" /><category term="MTOM" /><category term="MySQL" /><category term="6.0" /><category term="util" /><category term="java" /><category term="IllegalMonitorStateException" /><category term="Thread" /><category term="ObjectOutputStream" /><category term="ajax" /><category term="StuckThreadMaxTime" /><category term="security" /><category term="property" /><category term="JTA" /><category term="XOP" /><category term="Semaphore" /><category term="list all posts" /><category term="jvm" /><category term="concurrency" /><category term="ObjectInputStream" /><category term="JDBC" /><category term="SOAP" /><category term="Utility" /><category term="ClassNotFoundException" /><category term="io" /><category term="ReentrantReadWriteLock" /><category term="JMX" /><category term="unix" /><category term="resource injection" /><category term="html" /><category term="Reference" /><category term="ClassLoader" /><category term="weblogic" /><category term="exception" /><category term="Monitoring" /><category term="OutOfMemory" /><category term="t3" /><category term="NoClassDefFoundError" /><category term="Serializable" /><category term="google" /><category term="zip" /><title>Javafundu.com</title><subtitle type="html">Computer speaks and its language is  JAVA.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.javafundu.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>99</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Javafunducom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="javafunducom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CEUDSXo9eyp7ImA9WhBREUk.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-7034189469709469681</id><published>2013-03-01T18:21:00.000+05:30</published><updated>2013-03-01T18:21:18.463+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-01T18:21:18.463+05:30</app:edited><title>How to detect the duplicate keys in .properties file</title><summary>How to detect the duplicate keys in .properties file.


import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;

public class PropertyDuplicateCheck {

 /**
  * @param args
  */
 public static void main(String[] args) {
  FileInputStream fis = null;
  String </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2013/03/how-to-detect-duplicate-keys-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7034189469709469681?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7034189469709469681?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2013/03/how-to-detect-duplicate-keys-in.html" title="How to detect the duplicate keys in .properties file" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;Dk8DRn8yfyp7ImA9WhVREkw.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-268929434298553917</id><published>2012-03-20T09:06:00.001+05:30</published><updated>2012-03-20T09:11:17.197+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-20T09:11:17.197+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><title>Capturing Performance of a Command in Linux</title><summary>Capturing Performance of a Command in Linux

We are interested in checking the time taken to complete a command, is there any way to get to know that in linux.

yes, /usr/bin/time will help to do that. 

time command

$/usr/bin/time ls
output will be 
a.txt b.txt
0.000u 0.004s 0:00.79 0.0%  0+0k 0+0io 0pf+0w

Hope, this result is confusing, please refe man time .
The default format string is
%</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2012/03/capturing-performance-of-command-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/268929434298553917?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/268929434298553917?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2012/03/capturing-performance-of-command-in.html" title="Capturing Performance of a Command in Linux" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DU4HRXc7fSp7ImA9WhVREUo.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-2700821380623893264</id><published>2012-03-19T22:55:00.002+05:30</published><updated>2012-03-19T22:55:34.905+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-19T22:55:34.905+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="OutOfMemory" /><category scheme="http://www.blogger.com/atom/ns#" term="Heap" /><category scheme="http://www.blogger.com/atom/ns#" term="gc" /><title>Performance tools and whitepapers</title><summary>I have captured some of the mostly used tools for performance and monitoring JAVA applications and Database. 
Tools in market

http://www.oracle.com/technetwork/middleware/jrockit/overview/index-090630.html
Profiling Java™ applications on HP-UX
IBM,SAP contributed... Eclipse MAT
CPU and memory profiling ... YourKit Java Profiler
ej-technologies Jprofiler
The Deepest Diagnostics for Java </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2012/03/performance-tools-and-whitepapers.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2700821380623893264?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2700821380623893264?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2012/03/performance-tools-and-whitepapers.html" title="Performance tools and whitepapers" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkUERn88cCp7ImA9WhVSFk0.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5669517108799839208</id><published>2012-03-13T08:40:00.000+05:30</published><updated>2012-03-13T08:40:07.178+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-13T08:40:07.178+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Object" /><category scheme="http://www.blogger.com/atom/ns#" term="Reference" /><category scheme="http://www.blogger.com/atom/ns#" term="WeakHashMap" /><title>Reference</title><summary>Pakckage java.lang.ref Description

Classes in this package provides reference-object classes, which support a limited degree of interaction with the garbage collector.
Specilitate GC run to take less time and maximize the chance of not getting OutOfMemoryException.

There are four kind of references possible in JAVA

Strong reference - which get created when object new instance done, and </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2012/03/reference.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5669517108799839208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5669517108799839208?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2012/03/reference.html" title="Reference" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-iuoOqJ08UPE/T166fL1rhqI/AAAAAAAAAEE/TEbOnnCyeMY/s72-c/Objectlc.gif" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;C0ECR3s4fip7ImA9WhVTF00.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-6763693847202235673</id><published>2012-03-01T20:19:00.000+05:30</published><updated>2012-03-02T20:51:06.536+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-02T20:51:06.536+05:30</app:edited><title>Tea time talk on Software developments</title><summary>Software Development Style
Software development lifecycle is unpredict to define. Industry operates in its own way to develop the softwares and its release management cycle.Factors are identified in certain extent and style of approaching the complex problems and arriving at smaller problem.Considering other risk involved in factors like resources, cost, time, quality and scope. Delivery become </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2012/03/tea-time-talk-on-software-developments.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/6763693847202235673?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/6763693847202235673?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2012/03/tea-time-talk-on-software-developments.html" title="Tea time talk on Software developments" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0cFQno6eyp7ImA9WhRaF00.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-7232253876734378269</id><published>2012-02-20T09:06:00.000+05:30</published><updated>2012-02-20T09:06:53.413+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-20T09:06:53.413+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ajax" /><category scheme="http://www.blogger.com/atom/ns#" term="html" /><title>HTML 5.0</title><summary>
Very welcoming initiatives are happening in HTML side, we cannot say any more, this is so simple to display static pages.It avoids complications in showing calendar, audio, video and etc., In addition to this minimize external tool like Flash usage. 
Developer can avoid some of the javascripts get used to manipulate the data in this release using Tag itself.
Some of the tags introduced in old </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2012/02/html-50.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7232253876734378269?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7232253876734378269?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2012/02/html-50.html" title="HTML 5.0" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkYFQnw4fip7ImA9WhZSE04.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5507453639047774208</id><published>2011-03-28T22:05:00.000+05:30</published><updated>2011-03-28T22:05:13.236+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-28T22:05:13.236+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JAXB" /><category scheme="http://www.blogger.com/atom/ns#" term="Utility" /><category scheme="http://www.blogger.com/atom/ns#" term="xml" /><title>JAXB Cloning : JAXB Object clone API</title><summary>JAXB Cloning

How Do I Clone A JAXB Object 

JAXB generated POJO classes are not implementing either Serializable or Cloneable interaces. Because of the fact that, the data on wire willbe transmitted as marshalled one (XML) instead of JAVA object.
If JAXB objects needs to be cloned then there is not straight forward approach exist to do that. Any of the following round about may help to achieve </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2011/03/jaxb-cloning-jaxb-object-clone-api.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5507453639047774208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5507453639047774208?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2011/03/jaxb-cloning-jaxb-object-clone-api.html" title="JAXB Cloning : JAXB Object clone API" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEIARHY7fCp7ImA9Wx9RFE0.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-9140721265508829459</id><published>2010-12-15T15:19:00.000+05:30</published><updated>2010-12-15T15:19:05.804+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-15T15:19:05.804+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>JDK 7 Features</title><summary>JDK 7 Features 
Project Coin : Small language enhancements
Its a time to think of new features in JDK, entire JAVA community closely watching the progress of JAVA/JDK development in Oracle. This release comes with small java language change to major featuristics. Following are few details of feature/changes

  Strings in switch
  void print(String s) { 
  switch (s) {
    case "hello":
      </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/12/jdk-7-features.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/9140721265508829459?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/9140721265508829459?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/12/jdk-7-features.html" title="JDK 7 Features" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkUMRH8_eCp7ImA9Wx5VF0U.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-7259440241176964730</id><published>2010-10-11T14:41:00.000+05:30</published><updated>2010-10-11T14:41:25.140+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-11T14:41:25.140+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="lazyholder" /><category scheme="http://www.blogger.com/atom/ns#" term="design pattern" /><category scheme="http://www.blogger.com/atom/ns#" term="singleton" /><title>LazyHolder Pattern</title><summary>Design Pattern

A pattern describes a proven solution to a recurring design problem, placing particular emphasis on the context and forces surrounding the problem, and the consequences and impact of the solution. Find more details about design patterns in http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html

Singleton Pattern
This pattern helps to create only one instance of a </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/10/lazyholder-pattern.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7259440241176964730?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7259440241176964730?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/10/lazyholder-pattern.html" title="LazyHolder Pattern" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkYNSHc6cCp7ImA9Wx5VEUQ.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5081121584598646651</id><published>2010-10-04T16:12:00.003+05:30</published><updated>2010-10-04T16:33:19.918+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-04T16:33:19.918+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="xml" /><title>DataTypeConverter usage in JAXB</title><summary>JAXB : DataTypeConverter

Accessing the actual value as-it-is using JAVA API will be pain in some cases. For instance, list of values get stored in attribute with comma separation. Now, these value has to be retrieved as List object rather String object, then only it make sense and simple to use.

We are extending the sample written in JAXB Sample post to explain DataTypeConverter and XMLAdapter.</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/10/datatypeconverter-usage-in-jaxb.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5081121584598646651?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5081121584598646651?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/10/datatypeconverter-usage-in-jaxb.html" title="DataTypeConverter usage in JAXB" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUEEQ34zfyp7ImA9Wx5VEUU.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-7513602350677392070</id><published>2010-10-04T15:44:00.001+05:30</published><updated>2010-10-04T15:50:02.087+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-04T15:50:02.087+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="xml" /><title>Simple JAXB Sample</title><summary>JAXB

Java Architecture for XML Binding (JAXB) helps to read/write XML Document using simple JAVA APIs. Based on the structure of the XSD, JAVA classes and APIs are generated.

JAXB implementation from eclipse can be downloaded from Nightly Build. MoXy(JAXB) has the necessary tools, and runtime jars. To create java classes jaxb-compiler  command get used

jaxb-compiler.cmd /tmp/fruits.xsd -d /</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/10/simple-jaxb-sample.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7513602350677392070?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7513602350677392070?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/10/simple-jaxb-sample.html" title="Simple JAXB Sample" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkMGQn49cCp7ImA9Wx5XFU8.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-6848690912204656285</id><published>2010-09-15T10:57:00.000+05:30</published><updated>2010-09-15T10:57:03.068+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-15T10:57:03.068+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ObjectInputStream" /><category scheme="http://www.blogger.com/atom/ns#" term="ObjectOutputStream" /><title>ObjectOutputStream with base64 Encoding</title><summary>ObjectOutputStream with base64 Encoding

Most of the time we do write simplestic code to persist object state using ObjectOutputStream. This will work most of the serializable objects, however some cases serialized objects comes with multi-byte character. In this case, while converting persisted object to java object, we end up seeing weired exception message. To avoid this inconsistent, we have </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/09/objectoutputstream-with-base64-encoding.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/6848690912204656285?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/6848690912204656285?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/09/objectoutputstream-with-base64-encoding.html" title="ObjectOutputStream with base64 Encoding" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C0QASHY6fyp7ImA9WxFUEkQ.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5573865594580546564</id><published>2010-06-23T16:39:00.000+05:30</published><updated>2010-06-23T16:39:09.817+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-23T16:39:09.817+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="util" /><category scheme="http://www.blogger.com/atom/ns#" term="Collections" /><title>Cache - Least Recently Used Algorithm</title><summary>LRU algorithm is heavily used in most of the cache implementation. In general, most of the time we depend on heavy weighted caching implementation and end up paying huge for that softwares.

java.util.LinkedHashMap provides simplest way to do this by  overriding a method removeEldestEntry().

Here, I would like to present as an utilit class which will be reused our needs. New class LRUHashMap </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/06/cache-least-recently-used-algorithm.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5573865594580546564?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5573865594580546564?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/06/cache-least-recently-used-algorithm.html" title="Cache - Least Recently Used Algorithm" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUUGQ3c9eip7ImA9WxFWGEU.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-4566625227049967854</id><published>2010-06-07T10:37:00.000+05:30</published><updated>2010-06-07T10:37:02.962+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-07T10:37:02.962+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="util" /><category scheme="http://www.blogger.com/atom/ns#" term="property" /><title>PropertyIgnoreCase</title><summary>java.util.Properties helps to store and retrieve the key-value pair, where non-null values in key and value. This implementation made on top of java.util.HashTable. We do get all the features and APIs of HashTable additionally, getProperty(...), load() APIs.

In getProperty method, key has to be passed as argument to retrive the value. We can even specify the default value also in it, if no key </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/06/propertyignorecase.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/4566625227049967854?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/4566625227049967854?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/06/propertyignorecase.html" title="PropertyIgnoreCase" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;Dk4ARHs-eCp7ImA9WxBbE00.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-7116367352024880066</id><published>2010-03-11T16:23:00.001+05:30</published><updated>2010-03-11T16:25:45.550+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-11T16:25:45.550+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="xml" /><title>Sample XSLT Processor</title><summary>Extensible Style Language Transformation (XSLT) helps to convert an XML from one form to another. Resulting format could be anything, it could be XML, HTML, XFDF, and etc.,.
XSLT Mapper file
Most of the IDE provides XSLT auto mapping facility to convert/map from one XSD format to another XSD format. XPATH, XQuery, and XSLT functions helps to locate and manipulate the source XML file and result </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/03/sample-xslt-processor.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7116367352024880066?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/7116367352024880066?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/03/sample-xslt-processor.html" title="Sample XSLT Processor" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0INQns9fyp7ImA9WxBWGUk.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-1818333888678999927</id><published>2010-02-12T09:03:00.000+05:30</published><updated>2010-02-12T09:03:13.567+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-12T09:03:13.567+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="datasource" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>IBM: DB Tools dbbeans.jar</title><summary>DBBeans.jar

IBM DBBeans.jar comes with elegant APIs for JDBC and simplifies JDBC. Approx +/- 25 JAVA files implemented to do this. This jar is shipped as part of WSAD/RAD in datatools plugin. This jar is DB acqnostic and ready to use directly in application

In JDBC implementation, we have to establish DB connection and then create statement from connection. However, in this jar, we can tag a </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/ibm-db-tools-dbbeansjar.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1818333888678999927?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1818333888678999927?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/ibm-db-tools-dbbeansjar.html" title="IBM: DB Tools dbbeans.jar" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkYDR3o9fCp7ImA9WxBWF0w.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5439418695923514250</id><published>2010-02-09T17:52:00.002+05:30</published><updated>2010-02-09T17:52:56.464+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-09T17:52:56.464+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="http" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Sample HTTPs Server</title><summary>HTTPS server

As similar to building HTTP server, we have to establish the ServerSocket with SSL certificates. Client has to confirm the certificate and its validity by checking the Certification Path.

EnabledCipherSuites
SSLServerSocket or SSLSocket provides api to retrieve the supported CipherSuites combinations

String[] ecs=socket.getEnabledCipherSuites();

Results:

SSL_RSA_WITH_RC4_128_MD5</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/sample-https-server.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5439418695923514250?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5439418695923514250?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/sample-https-server.html" title="Sample HTTPs Server" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkcCQn88cCp7ImA9WxBWF0w.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-8688572402356187966</id><published>2010-02-08T18:09:00.002+05:30</published><updated>2010-02-09T17:51:03.178+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-09T17:51:03.178+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>KeyStore and KeyTool</title><summary>KeyStore
A storage/repository to store/retrieve key entries based on a provider format. This entry can be stored in three different format
KeyStore.PrivateKeyEntry  represents Privatekey entry which will be stored and protected from unauthorized access. This key used to singing and decrypting the message. This key is accompanied by a Publickey.
KeyStore.SecretKeyEntryentry holds </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/keystore-and-keytool.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/8688572402356187966?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/8688572402356187966?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/keystore-and-keytool.html" title="KeyStore and KeyTool" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;A0MGRn8_fip7ImA9WxBWEUQ.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-5060534104266158648</id><published>2010-02-03T17:47:00.000+05:30</published><updated>2010-02-03T17:47:07.146+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-03T17:47:07.146+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="util" /><title>Java Logger with Custom Formatter</title><summary>In production or development environment, log files are playing major role to identify the nature of the issue and how often it raises. This information reduces the number of question needed to ask customer to understand the issue. Most valuable and precised data has to be captured in log files.

Developers, some time log there native language based log information and product also may shipped </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/java-logger-with-custom-formatter.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5060534104266158648?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/5060534104266158648?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/java-logger-with-custom-formatter.html" title="Java Logger with Custom Formatter" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkABRnozfyp7ImA9WxBWEUU.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-2876463585485617100</id><published>2010-02-03T12:35:00.000+05:30</published><updated>2010-02-03T12:35:57.487+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-03T12:35:57.487+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic" /><title>User Lockout</title><summary>In general, password guessing raises serious attack to our application server. Weblogic provides the way to stop guessing the password by locking the particular user, if the number of invalid consecutive password attempt made more than configured.
Banking service applications very much needs this user locking mechanism. If customer found that their account is locked then they have to request the </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/user-lockout.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2876463585485617100?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2876463585485617100?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/user-lockout.html" title="User Lockout" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_YHJf_h7wLFg/S2kgO7l5KWI/AAAAAAAAACg/KRSMCA9a_O8/s72-c/User+Locked.JPG" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkMHRX85eyp7ImA9WxBWEE4.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-1781923305494011895</id><published>2010-02-01T18:50:00.000+05:30</published><updated>2010-02-01T18:50:34.123+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-01T18:50:34.123+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="util" /><category scheme="http://www.blogger.com/atom/ns#" term="mail" /><title>Java Mail</title><summary>In JAVA Platform Enterprise Edition, javax.activation, and javax.mail packages has APIs to send or receive EMAIL. javax.mail.internet.InternetAddress class helps us to construct Address from String object.

Variety of properties which used to control the flow, monitor the flow, per session based properties and global properties for JAVA Mail. It is very tedious to remember all those properties. </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/02/java-mail.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1781923305494011895?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1781923305494011895?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/02/java-mail.html" title="Java Mail" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0YDR3w5eSp7ImA9WxBXF0s.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-4831033971755719076</id><published>2010-01-29T17:09:00.000+05:30</published><updated>2010-01-29T17:09:36.221+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-29T17:09:36.221+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JNDI" /><category scheme="http://www.blogger.com/atom/ns#" term="JMS" /><title>JMS Sample</title><summary>Java Message Service

JMS APIs provides the way to send, receive messages in enterprises asynchronous way. There is no need of wait for the message to get processed in server and continue the business in client. Just post, and let it get processed. These APIs are bundles under the package javax.jms and JAVA Documentation found at JMS APIs

JMS comes with flavours of messaging - Queue(</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/01/jms-sample.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/4831033971755719076?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/4831033971755719076?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/01/jms-sample.html" title="JMS Sample" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total></entry><entry gd:etag="W/&quot;Ck4NRno8eSp7ImA9WxBUFU0.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-2953939357280396079</id><published>2010-01-25T14:59:00.003+05:30</published><updated>2010-03-02T09:06:37.471+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-02T09:06:37.471+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JDBC" /><category scheme="http://www.blogger.com/atom/ns#" term="datasource" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>JDBC</title><summary>Java Database Connectivity (JDBC)

JDBC is the industry standard for database agnostic connectivity, where developer can read/write data from/to DBMS, without worry about the platform, DBMS and its implementation. SQL or non-SQL based possible to connect using this JDBC. We have to make a call using JDBC where it takes responsibility of how it has to be translated to DB calls and vice versa.

</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/01/jdbc.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2953939357280396079?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/2953939357280396079?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/01/jdbc.html" title="JDBC" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C0ECRng8fyp7ImA9WxBXEUs.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-8675628391341781559</id><published>2010-01-22T17:31:00.000+05:30</published><updated>2010-01-22T17:31:07.677+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-22T17:31:07.677+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ClassLoader" /><category scheme="http://www.blogger.com/atom/ns#" term="ClassNotFoundException" /><title>Simple Custom ClassLoader</title><summary>ClassLoader is provisioning us to bring the JAVA Class to executable format. JAVA SE comes with default ClassLoader and URLClassLoader. First one is called SystemClassLoader, which will access the classes from bootstrap path, classpath, JAVA extension and library. If our application wants to access Class from external URL then URLClassLoader will be useful. If requested class found in specified </summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/01/simple-custom-classloader.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/8675628391341781559?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/8675628391341781559?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/01/simple-custom-classloader.html" title="Simple Custom ClassLoader" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CkcHQH8yeCp7ImA9WxBQGUs.&quot;"><id>tag:blogger.com,1999:blog-7968682731822243031.post-1519244288901536845</id><published>2010-01-20T09:30:00.000+05:30</published><updated>2010-01-20T09:30:31.190+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-20T09:30:31.190+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="InputStream" /><category scheme="http://www.blogger.com/atom/ns#" term="file" /><title>Reverse reading</title><summary>In C, C++, we have the option to make FILE pointer to point the last byte and make reverse read by decreasing pointer position. However, we do not have option to do the same in Java using pre-existing InputStream or Reader in JAVA SE.One of the classic cryptography uses reverse the file content and share to the receiver. Receiver also needs to reverse the content and understand the meaning. If we</summary><link rel="replies" type="text/html" href="http://www.javafundu.com/2010/01/reverse-reading.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1519244288901536845?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7968682731822243031/posts/default/1519244288901536845?v=2" /><link rel="alternate" type="text/html" href="http://www.javafundu.com/2010/01/reverse-reading.html" title="Reverse reading" /><author><name>Krishnamoorthy Dharmalingam</name><uri>https://plus.google.com/103785404021514977790</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry></feed>
