How to create a File in Java using JDK 6, JDK 7 with NIO or Commons IO.
Baeldung Author
Eugen Paraschiv
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):
The Baeldung Weekly Review 25
Filed under Weekly Review
Spring centric week with some good steps forward for the community – new Spring IO platform, moving to StackOverflow and a few solid webinar recordings.
Java – Rename or Move a File
How to rename or move a file in Java, using JDK6, JDK7, Guava or Apache Commons.
Java – Write an InputStream to a File
How to write an InputStream to a File – using Java, Guava and the Commons IO library.
Java – Convert File to InputStream
How to open an InputStream from a Java File – using plain Java, Guava and the Apache Commons IO library.
Java Byte Array to InputStream
How to convert a byte[] to an InputStream using plain Java or Guava.
Java InputStream to Byte Array and ByteBuffer
How to convert an InputStream to a byte[] using plain Java, Guava or Commons IO.
Java String to InputStream
How to convert a String to an InputStream using plain Java, Guava or Commons IO.
The Baeldung Weekly Review 24
Filed under Weekly Review
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.
Project Configuration with Spring
Filed under Spring
This article discusses an simple yet flexible solution to configuration that is specific to the environment with Spring.
The Baeldung Weekly Review 23
Filed under Weekly Review
This week we discuss the HTTP/1.1 spec update (5 years in the works), some recordings and upcoming Spring webinars and clean testing.
Removing all duplicates from a List in Java
Filed under Java, Java Collections
How to remove all duplicate elements from a List – first with plan Java, then Guava and finally with Java 8 lambdas.
Removing all Nulls from a List in Java
Filed under Java, Java Collections
How to remove all nulls from a List using plain Java, Guava, the Commons Collections framework or the new Java 8 lambda support.
The Baeldung Weekly Review 22
Filed under Weekly Review
An interesting week with quite a mixed sample of solid articles being published – Spring, Java, Hibernate and Testing resources.
Spring Security – Persistent Remember Me
Filed under Spring Security
A secure Remember Me solution with Spring Security – using a token persisted in the database.
Convert a Map to an Array, List or Set in Java
Filed under Java, Java Collections
How to convert the values of a Map to an array, List or Set using plain Java.
Converting Between a List and a Set in Java
Filed under Java, Java Collections
How to Convert between a List and a Set using plain Java, Guava or Apache Commons Collections.
Converting Between an Array and a Set in Java
Filed under Java, Java Collections
How to Convert between an Array and a Set Using Plain Java, Guava or Apache Commons Collections.
Converting between an Array and a List in Java
Filed under Java, Java Collections
How to Convert between an Array and a List Using plain Java, Guava or Apache Commons Collections.
The Baeldung Weekly Review 21
Filed under Weekly Review
An interesting week with some cool Spring Security 4 preview articles and the results of the “Capture the Bitcount” bug bounty.