Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Java Gson Write JSON File using JsonWriter
Java Gson Write JSON File using JsonWriter

In this Java Gson tutorial we learn how to use the JsonWriter class in the Gson library to write JSON content to file. Via different Java example programs we show you how to write a simple JSON object to file, a multi level JSON content or an array of objects to JSON file.

Convert Java Object to JSON File in Java using Gson
Convert Java Object to JSON File in Java using Gson

In this Java Gson tutorial we learn how to use the Gson library to convert a Java object into JSON file using the Gson.toJson() method with FileWriter. Via different Java program examples we show you how to convert a JSON file from an object of HashMap, ArrayList, an object of a custom defined class or a List of objects.

Copy Reader to Writer in Java using Apache Commons IO
Copy Reader to Writer in Java using Apache Commons IO

In this Java tutorial we learn how to copy bytes from a Reader object into Writer object using IOUtils utility class of Apache Commons IO library.

Copy InputStream to Writer in Java using Apache Commons IO
Copy InputStream to Writer in Java using Apache Commons IO

In this Java tutorial we learn how to copy bytes from an InputStream object into Writer object using IOUtils utility class of Apache Commons IO library.

Convert Writer into BufferedWriter in Java using Apache Commons IO
Convert Writer into BufferedWriter in Java using Apache Commons IO

In this Java tutorial we learn how to use the IOUtils utility class in Apache Commons IO to convert an Writer object into a BufferedWriter object in Java.

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.