How to create a File in Java using JDK 6, JDK 7 with NIO or Commons IO.
I’m a software engineer with a passion for REST, TDD and clean code, Web Security and Data Mining. Baeldung is about all of these and more.
Here's what I've written (so far):
Spring centric week with some good steps forward for the community – new Spring IO platform, moving to StackOverflow and a few solid webinar recordings.
How to rename or move a file in Java, using JDK6, JDK7, Guava or Apache Commons.
How to write an InputStream to a File – using Java, Guava and the Commons IO library.
How to open an InputStream from a Java File – using plain Java, Guava and the Apache Commons IO library.
How to convert a byte to an InputStream using plain Java or Guava.
How to convert an InputStream to a byte using plain Java, Guava or Commons IO.
How to convert a String to an InputStream using plain Java, Guava or Commons IO.
This has been quite a diverse week – we saw some Spring work on caching and Spring Data and some great testing articles dealing with fixtures and design.
This article discusses an simple yet flexible solution to configuration that is specific to the environment with Spring.
This week we discuss the HTTP/1.1 spec update (5 years in the works), some recordings and upcoming Spring webinars and clean testing.
How to remove all duplicate elements from a List – first with plan Java, then Guava and finally with Java 8 lambdas.
How to remove all nulls from a List using plain Java, Guava, the Commons Collections framework or the new Java 8 lambda support.
An interesting week with quite a mixed sample of solid articles being published – Spring, Java, Hibernate and Testing resources.
A secure Remember Me solution with Spring Security – using a token persisted in the database.
How to convert the values of a Map to an array, List or Set using plain Java.
How to Convert between a List and a Set using plain Java, Guava or Apache Commons Collections.
How to Convert between an Array and a Set Using Plain Java, Guava or Apache Commons Collections.
How to Convert between an Array and a List Using plain Java, Guava or Apache Commons Collections.
An interesting week with some cool Spring Security 4 preview articles and the results of the “Capture the Bitcount” bug bounty.