<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZX:rishistar programming blocks &#187; Java</title>
	<atom:link href="http://rishistar.com/zx/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://rishistar.com/zx</link>
	<description>Java/Wordpress programming tips and tricks</description>
	<lastBuildDate>Thu, 28 Jul 2011 22:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Updating A Spring Tutorial</title>
		<link>http://rishistar.com/zx/2011/07/updating-a-spring-tutorial/</link>
		<comments>http://rishistar.com/zx/2011/07/updating-a-spring-tutorial/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 22:23:55 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=139</guid>
		<description><![CDATA[Open Netbeans. New Web Application, Spring v2.5, changed default dispatcher to &#8216;springapp&#8217; created a custom landing page &#8211; edit web.xml welcome page to make it the default. Look at the springapp-servlet.xml and the indexController.]]></description>
			<content:encoded><![CDATA[<p>Open Netbeans.</p>
<p>New Web Application, Spring v2.5, changed default dispatcher to &#8216;springapp&#8217;</p>
<p>created a custom landing page &#8211; edit web.xml welcome page to make it the default.</p>
<p>Look at the springapp-servlet.xml and the indexController.</p>
<p><!--<br />
    The index controller.<br />
    --><br />
    <bean name="indexController"<br />
          class="org.springframework.web.servlet.mvc.ParameterizableViewController"<br />
          p:viewName="index" /></p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2011/07/updating-a-spring-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring / Netbeans &#8211; a missing context.xml file</title>
		<link>http://rishistar.com/zx/2011/04/spring-netbeans-a-missing-context-xml-file/</link>
		<comments>http://rishistar.com/zx/2011/04/spring-netbeans-a-missing-context-xml-file/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 11:29:38 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Netbeans IDE]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=134</guid>
		<description><![CDATA[So I&#8217;ve upgraded to Netbeans 7 recently, and had an issue that comes up when creating a new Spring MVC Web Application. That is, when I run the Tomcat application an error message appears &#8211; context.xml (The system cannot find the file specified). Looking around on the internet it seems this may have been around [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve upgraded to Netbeans 7 recently, and had an issue that comes up when creating a new Spring MVC Web Application. That is, when I run the Tomcat application an error message appears &#8211; context.xml (The system cannot find the file specified).</p>
<p>Looking around on the internet it seems this may have been around for a while, so I was mystified as to why I hadn&#8217;t come across it before. However it seems like the kind of bug which stops occuring when I <strong>create my new Spring Web Application with another project already open in the Project Group</strong>. Don&#8217;t ask me why, and this may change in the future &#8211; but if you&#8217;re stuck on this it may be worth a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2011/04/spring-netbeans-a-missing-context-xml-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting MySQL rows within a Time Range for a Java Program</title>
		<link>http://rishistar.com/zx/2010/05/selecting-mysql-rows-within-a-time-range-for-a-java-program/</link>
		<comments>http://rishistar.com/zx/2010/05/selecting-mysql-rows-within-a-time-range-for-a-java-program/#comments</comments>
		<pubDate>Thu, 20 May 2010 12:09:57 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=114</guid>
		<description><![CDATA[Earlier I discussed selecting rows from a table within a specified date range. What if you need to select rows from within a time range? Again a SELECT statement with a WHERE clause is needed. The  method below will give the statement for the start and end times of the statement. Unlike the earlier example [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier I discussed <a href="http://rishistar.com/zx/2010/04/selecting-mysql-rows-with-timestamp-column-in-a-date-range-from-a-java-program/">selecting rows from a table within a specified date range</a>. What if you need to select rows from within a time range?</p>
<p>Again a SELECT statement with a WHERE clause is needed. The  method below will give the statement for the start and end times of the statement. Unlike the earlier example this has a DateFormat to supply the String required to generate the SQL statement.</p>
<pre>GregorianCalendar calStart = new GregorianCalendar() ;
 calStart.set( Calendar.HOUR_OF_DAY, 18 ) ;
 calStart.set( Calendar.MINUTE, 1 ) ;
 String sql = "SELECT * FROM " + dbh.userTable.tableName +
          " WHERE status=1 AND "
          + SQLStrings.getWhereBetweenDates( "signup_time", calStart ) ;

.....

<span style="color: #800080;">public static String getWhereBetweenDates( String columnName, GregorianCalendar calStart)
{
    GregorianCalendar now = new GregorianCalendar() ;
    StringBuffer sb = new StringBuffer( columnName + " BETWEEN " ) ;
    SimpleDateFormat df = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ) ;
    String beforeDateString = df.format( calStart.getTime() ) ;
    String afterDateString = df.format( now.getTime() ) ;
    sb.append( beforeDateString + " AND " + afterDateString ) ;
    return sb.toString() ;
}

</span></pre>
<p><span style="color: #800080;"><span style="color: #000000;">Note that the DateFormat String here was determined by what was present in the MySQL database for that particular column. YMMV &#8211; so if there are problems maybe check your database table to see what particular format that column takes.</span></span><span style="color: #800080;"><span style="color: #000000;"> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/05/selecting-mysql-rows-within-a-time-range-for-a-java-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting MySQL Rows with a Timestamp Column on a Single Day or Month from your Java Program</title>
		<link>http://rishistar.com/zx/2010/05/selecting-mysql-rows-with-a-timestamp-column-on-a-single-day-or-month-from-your-java-program/</link>
		<comments>http://rishistar.com/zx/2010/05/selecting-mysql-rows-with-a-timestamp-column-on-a-single-day-or-month-from-your-java-program/#comments</comments>
		<pubDate>Thu, 06 May 2010 09:34:00 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/2010/05/selecting-mysql-rows-with-a-timestamp-column-on-a-single-day-or-month-from-your-java-program/</guid>
		<description><![CDATA[You have a MySQL database table with a Timestamp column, and you need to select entries for a single day, month or year. As indicated in previous posts, you can construct MySQL statements that allow you to access items from a certain date/month/year. This can be achived using the following. String sql = &#8220;SELECT * [...]]]></description>
			<content:encoded><![CDATA[<p>You have a MySQL database table with a Timestamp column, and you need to select entries for a single day, month or year. As indicated in previous posts, you can construct MySQL statements that allow you to access items from a certain date/month/year.</p>
<p>This can be achived using the following.</p>
<blockquote><p>String sql =<br />
&#8220;SELECT * FROM orders WHERE day(time_outgoing)=&#8221; + day ;<br />
Statement st = con.createStatement() ;<br />
ResultSet rs = st.executeQuery(sql) ;</p></blockquote>
<p>Something similar can be done for months and years, and Java’s Calender class provides fields for moth access. However note that the java.util.Calender fields for months are indexed from 0, so the actual integer value of Calender.MAY is 4 and not 5.</p>
<blockquote><p>int month = Calender.MAY ; //want entries for may</p>
<p>//increase the month by 1 to access values</p>
<p>String sql =<br />
&#8220;SELECT * FROM orders WHERE month(time_outgoing)=&#8221; + (month+1) ;<br />
Statement st = con.createStatement() ;<br />
ResultSet rs = st.executeQuery(sql) ;</p>
<p>OR</p>
<p>SELECT *<br />
FROM optout75308<br />
WHERE logtime<br />
BETWEEN &#8220;2010-05-21&#8243;<br />
AND &#8220;2010-05-22&#8243;<br />
AND (<br />
contact_method = &#8216;ODWBPRESS1&#8242;<br />
OR contact_method = &#8216;SERV2OWDBy&#8217;<br />
)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/05/selecting-mysql-rows-with-a-timestamp-column-on-a-single-day-or-month-from-your-java-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading a TimeStamp Value from a MySQL Database in your Java Program</title>
		<link>http://rishistar.com/zx/2010/05/reading-a-timestamp-value-from-a-mysql-database-in-your-java-program/</link>
		<comments>http://rishistar.com/zx/2010/05/reading-a-timestamp-value-from-a-mysql-database-in-your-java-program/#comments</comments>
		<pubDate>Thu, 06 May 2010 09:11:02 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/2010/05/reading-a-timestamp-value-from-a-mysql-database-in-your-java-program/</guid>
		<description><![CDATA[So, you’ve written your database table to have a Timestamp column in it. Often this can be used to log when an entry is created or updated. This post will detail a couple of things that may be useful in doing more than just having it logged. Java provides a java.sql.Timestamp class that can be [...]]]></description>
			<content:encoded><![CDATA[<p>So, you’ve written your database table to have a Timestamp column in it. Often this can be used to log when an entry is created or updated. This post will detail a couple of things that may be useful in doing more than just having it logged.</p>
<p>Java provides a java.sql.Timestamp class that can be used to read and alter timestamp values.</p>
<p>So if your database column is called signup_time, it can be read out as follows</p>
<blockquote><p>import java.sql.Timestamp;</p>
<p>…</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Statement st = con.createStatement() ;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ResultSet rs = st.executeQuery(&#160; “SELECT * FROM subscribers”&#160; ) ;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; StandardSubscriptionUser users[] = new StandardSubscriptionUser[ count ] ;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rs.beforeFirst() ;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; while( rs.next() &amp;&amp; count&gt;0 )      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; signupTime = rs.getTimestamp(&quot;signup_time&quot;) ;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</blockquote>
<p>The Timestamp class is a subclass of java.util.Date. However there is not quite a match between how java.util.Date and java.sql.Timetamp store the time. This means that a Timestamp object should not be used where Date objects are required in functions. As the API says “The inheritance relationship between Timestamp and java.util.Date really denotes implementation inheritance, and not type inheritance.”</p>
<p>However it does mean that the standard Date API methods can be used to do things with the Timestamp object, meaning there is a set of standard methods to manipulate and access the values with.</p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/05/reading-a-timestamp-value-from-a-mysql-database-in-your-java-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting MySQL Rows with Timestamp Column in a date range from a Java Program</title>
		<link>http://rishistar.com/zx/2010/04/selecting-mysql-rows-with-timestamp-column-in-a-date-range-from-a-java-program/</link>
		<comments>http://rishistar.com/zx/2010/04/selecting-mysql-rows-with-timestamp-column-in-a-date-range-from-a-java-program/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 09:19:00 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/2010/04/selecting-mysql-rows-with-timestamp-column-in-a-date-range-from-a-java-program/</guid>
		<description><![CDATA[You have a MySQL database table with a Timestamp column, and you need to select a range of dates in which you need to select entries from. As ever a SELECT statement with a WHERE clause is needed. The following will give you a range of dates from the first to the last. Note that [...]]]></description>
			<content:encoded><![CDATA[<p>You have a MySQL database table with a Timestamp column, and you need to select a range of dates in which you need to select entries from.</p>
<p>As ever a SELECT statement with a WHERE clause is needed. The following will give you a range of dates from the first to the last. Note that without times specified it is the start of each day. So although 2008-08-31 is specifed no entries on that date will actually be included in the returned results.</p>
<blockquote><p>String sqlWhereDate =      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot; order_placed BETWEEN \”1995-05-01\” AND \”2008-08-31\” ” ;</p>
<p>String sql = “SELECT * FROM orders WHERE ” + sqlWhereDate ;</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/04/selecting-mysql-rows-with-timestamp-column-in-a-date-range-from-a-java-program/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Netbeans Editor Code Folds</title>
		<link>http://rishistar.com/zx/2010/04/netbeans-editor-code-folds/</link>
		<comments>http://rishistar.com/zx/2010/04/netbeans-editor-code-folds/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 12:07:56 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Netbeans IDE]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=105</guid>
		<description><![CDATA[Some times its handy to be able to hide sections of code in the Netbeans editor window. // &#60;editor-fold desc="This section of the code deals with the item."&#62; Your code goes here... // &#60;/editor-fold&#62; These are just the basics. More information is available from the Netbeans page.]]></description>
			<content:encoded><![CDATA[<p>Some times its handy to be able to hide sections of code in the Netbeans editor window.</p>
<pre>// &lt;editor-fold desc="This section of the code deals with the item."&gt;
 Your code goes here...
// &lt;/editor-fold&gt;</pre>
<p>These are just the basics. More information is available from the <a href="http://wiki.netbeans.org/FaqCustomCodeFolds" target="_blank">Netbeans page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/04/netbeans-editor-code-folds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery / Java / Autocomplete</title>
		<link>http://rishistar.com/zx/2010/03/jquery-java-autocomplete/</link>
		<comments>http://rishistar.com/zx/2010/03/jquery-java-autocomplete/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 12:25:39 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=87</guid>
		<description><![CDATA[If you haven&#8217;t heard of jQuery, its a Javascript library that allows you to implement AJAX functionality in your web pages. You can find out more about it from the jQuery website. My first attempt with jQuery involved using an autocomplete  plugin provided by Pengoworks. Autocomplete is where you start typing in a few letters [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t heard of jQuery, its a Javascript library that allows you to implement AJAX functionality in your web pages. You can find out more about it from <a href="http://jquery.com">the jQuery website</a>.</p>
<p>My first attempt with jQuery involved using an autocomplete  <a href="http://www.pengoworks.com/workshop/jquery/autocomplete.htm">plugin provided by Pengoworks</a>. Autocomplete is where you start typing in a few letters and the text box will come up with some suggestions. There was a tutorial for this present on the <a href="http://docs.jquery.com/Plugins/Autocomplete">jquery autocomplete page</a>, but it didn&#8217;t quite meet my needs, and maybe it doesn&#8217;t meet yours.</p>
<p>There are two ways in which to use the auto complete functionality. If there are a few options (ie upto 50) the list of suggestions can be embedded in the web page itself, but if there are many options (1000s) the suggestions need to come back from a server. It was this second process that the tutorial did not cover, and hence the reason for providing a step by step guide to doing it here.</p>
<p>In partcular, I&#8217;m working from Java in Netbeans 6.8.</p>
<p><span id="more-87"></span></p>
<h2>Server Side:Put data in the database/class in which it will reside</h2>
<p>The list of suggestions will live on a server somewhere. If working with 1000&#8242;s of items you will need to run it in a database.</p>
<h2>Server Side: Provide a class that will take a substring and find matches from your word list</h2>
<p>Returning your data as type List is useful.</p>
<p><code><br />
public List getAutoCompleteMatches( String starter ) throws SQLException<br />
</code></p>
<p>Another handy bit of info here is to use a regular expression in any SELECT statement being generated to match the start of a word.</p>
<pre><code><span style="color: #ff0000;">String sql = "SELECT * FROM tablename WHERE name REGEXP '^" + starter + "' " ;</span></code></pre>
<pre><span style="color: #ff0000;">String sql = "SELECT * FROM tablename WHERE name LIKE '" + starter + "'" ;</span></pre>
<h2>Server Side: Provide A Web Page Containing the results of such a query</h2>
<p>Your web page will need somewhere to call to get its results. This will take the form of a servlet or JSP page. The code for either is easy &#8211; here is the code as a JSP page.</p>
<p><code><br />
&lt;%@page import="java.util.Iterator"%&gt;<br />
&lt;%@page import="java.util.List"%&gt;<br />
&lt;%@page import="com.rishistar.mirbaseUtils.MirBaseMatches"%&gt;<br />
&lt;%<br />
MirBaseMatches m = new MirBaseMatches() ;<br />
String query = request.getParameter( "q" ) ;<br />
List matches = m.getAutoCompleteMatches( query ) ;<br />
Iterator iterator = matches.iterator() ;<br />
while( iterator.hasNext() )<br />
{<br />
out.println( (String)iterator.next() ) ;<br />
}<br />
%&gt;<br />
</code></p>
<h2>Client Side:Include the jQuery Script</h2>
<p>Obviously if you are going to use jQuery to do the job of autocompletion and fetching results from the server you&#8217;ll need to include it in the generated web page. Simple enough&#8230;download the latest version from jQuery.com and include it. There are two versions &#8211; one to use during development to allow debugging and one to use on a live site &#8211; the &#8216;min&#8217; version. Change the below to meet your path requirements.</p>
<pre>&lt;script type="text/javascript" src="jquery.1.4.2.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="jquery.autocomplete.js"&gt;
&lt;/script&gt;
</pre>
<h2>Client Side:Include the code to get your autocomplete box</h2>
<p>So the final bit is putting the autocomplete box into your page.</p>
<pre>&lt;input id="mirna" name="mirna" type="text" /&gt;</pre>
<pre>&lt;script type="text/javascript"&gt;</pre>
<pre>     $("#mirna").autocomplete("getmirmatch.jsp") ;</pre>
<pre>&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2010/03/jquery-java-autocomplete/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VisualWeb JSF being discontinued</title>
		<link>http://rishistar.com/zx/2009/08/visualweb-jsf-being-discontinued/</link>
		<comments>http://rishistar.com/zx/2009/08/visualweb-jsf-being-discontinued/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 19:42:28 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Netbeans IDE]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=52</guid>
		<description><![CDATA[One of the primary reasons for starting this blog was to log any nifty tricks I learnt whilst using Netbeans and VisualWeb JSF. However this has now been converted to a non-essential Sun item. I was also planning to document IceFACES, an AJAX support framework, which no longer supports a Visual developer setup with Netbeans [...]]]></description>
			<content:encoded><![CDATA[<p>One of the primary reasons for starting this blog was to log any nifty tricks I learnt whilst using Netbeans and VisualWeb JSF. However this has now been converted to a non-essential Sun item. I was also planning to document IceFACES, an AJAX support framework, which no longer supports a Visual developer setup with Netbeans 6.7 due to the removal of the &#8216;Woodstock&#8217; components for the core IDE. Being new with IceFACES from within a text editor looses the productivity gains it should provide.</p>
<p>As I have some projects looming up and have to think about maintenance down the line, I have decided to make the switch to Eclipse &#8211; specifically I am using the <a href="http://www.myeclipseide.com/" target="_blank">MyEclipse</a> platform. Its not free as in beer, but comes with lots of neat addons tied in with it, so I am putting this through its paces.</p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2009/08/visualweb-jsf-being-discontinued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sun.misc.BASE64Encoder replacement required</title>
		<link>http://rishistar.com/zx/2009/07/sun-misc-base64encoder-replacement-required/</link>
		<comments>http://rishistar.com/zx/2009/07/sun-misc-base64encoder-replacement-required/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:50:05 +0000</pubDate>
		<dc:creator>rishi</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://rishistar.com/zx/?p=36</guid>
		<description><![CDATA[The package sun.misc.BASE64Encoder that was used in some code I was referencing came up with a warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release Not good for futureproofing! Its replacement can be found using the relevant class from Apache Commons library. This is in the Codec suite of the Apache [...]]]></description>
			<content:encoded><![CDATA[<p>The package sun.misc.BASE64Encoder that was used in some code I was referencing came up with a warning: <em>sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release</em></p>
<p>Not good for futureproofing!</p>
<p>Its replacement can be found using the <a href="http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html" target="_blank">relevant class from Apache Commons library</a>. This is in the <a href="http://commons.apache.org/codec/" target="_blank">Codec suite of the Apache Commons library</a>.</p>
<p><em> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://rishistar.com/zx/2009/07/sun-misc-base64encoder-replacement-required/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

