Skip to the content Skip to the Navigation

Wilddiary.com

  • Home
  • Contact Us
  • Privacy

2014

  1. HOME
  2. 2014
Java logo
December 16, 2014 / Last updated : April 22, 2023 Drona Java

List files matching a naming pattern in Java

This tutorial shows how to recursively list files matching a naming pattern in Java. To be able to list the files, you should be able to walk the file tree. JDK 7 provides a FileVisitor interface to walk a file tree.

Java logo
November 26, 2014 / Last updated : April 22, 2023 Drona Java

How to detect file type from content in Java

This tutorial shows how to detect file type from content in Java using Apache Tika. File format detection is a usually required in search engines where crawled resources are required to be analysed, classified, tagged and indexed. We will use Apache’s Tika here to do the job.

Java logo
November 21, 2014 / Last updated : April 22, 2023 Drona Java

Reading Property File in Java using Apache Commons Configuration

This tutorial demonstrates reading property file in Java using Apache Commons Configuration library. You may have different configuration sources such as property files, XML files, system properties, environment variables etc. Apache Commons Configuration allows you to collect properties from many such sources and access them as a single configuration object. It also allows you to set the order […]

Java logo
September 25, 2014 / Last updated : April 22, 2023 Drona Java

Serialize Java object to JSON and back

There are many libraries in Java that support serialization of Java objects to JSON and back. Below are few of them.

j2ee_logo
September 17, 2014 / Last updated : April 22, 2023 Drona J2EE

Adding custom headers to Java HttpServletRequest

The javax.servlet.http.HttpServletRequest is an interface that does not have setter methods except for setCharacterEncoding() and setAttribute() methods that it inherits from its parent javax.servlet.ServletRequest interface. Otherwise, the HttpServletRequest type objects are read only.

Posts navigation

  • Page 1
  • Page 2
  • »
  • Home
  • Contact Us
  • Privacy
  • Facebook
  • Twitter
  • RSS Feed
  • GitHub
  • Pinterest

Copyright © Wilddiary.com All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.

MENU
  • Home
  • Contact Us
  • Privacy