HTTP URLConnection with proxy in Java

  • 08 February 2018
  • ADM

How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.


How to Check Alexa Rank in Java

  • 16 November 2017
  • ADM

How to Check Alexa Rank in Java using the undocumented API: http://data.alexa.com/data?cli=10&url=domainName. The code contains also the possibility of adding proxy settings


How to convert XML file into properties data in Java

  • 04 April 2017
  • ADM

The java.util.Properties class come with a loadFromXML() method to convert an XML file to properties data.


How to copy directory in Java

  • 21 January 2017
  • ADM

How to copy a directory and all sub-directories or files in Java. The recursive method used to traverse all the subdirectories.


How to copy files in Java

  • 18 January 2017
  • ADM

How to copy files in Java with three examples: Classic method with streams, using FileChannel class and using Files class.


Client Server Socket example in Java

  • 13 January 2017
  • ADM

Client Server Socket example in Java. Client example reading the input from the console. Simple echo server example.