Skip to content

Category: Java

Jersey vs. HttpURLConnection for a RESTful Android client

Since Google officially deprecated the HTTPClient and related methods after Android API 22. I thought it would be interesting to compare their recommended alternative (HttpURLConnection) with my preferred RESTful client; Jersey. The following example is an implementation of HttpURLConnection to query a RESTful Webservice to…

Continue reading Jersey vs. HttpURLConnection for a RESTful Android client

Common Java utility methods every programmer should use (Part 1)

This post will be the first in a series of posts describing useful utility methods that will help make any programmers day to day code implementation easier. The methods in this post: String.format() java.io.FileFilter Collections.sort() parsePropertiesFromString() String.format() This method is useful to build a string…

Continue reading Common Java utility methods every programmer should use (Part 1)