Home » Author Archives: Byron Kiourtzoglou

Author Archives: Byron Kiourtzoglou

Byron Kiourtzoglou
Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.

Compress a File in GZIP format in Java

In this tutorial we are going to see how you can compress a File in Java using the GZIP compression method. So, to perform File compression using GZIP in Java, you have to: Create a FileOutputStream to the destination file, that is the file path to the output compressed file. Create a GZIPOutputStream to the above FileOutputStream. Create a FileInputStream ...

Read More »

How to Write an Object to File in Java

On this tutorial we are going to see how you can store an object to a File in your File system in Java. Basically to perform basic IO operations on object, the class of the object has to implement the Serializable interface. This gives the basic interface to work with IO mechanisms in Java. In short, in order to write ...

Read More »

Get free disk space in Java example

With this tutorial we are going to see how to use the File class in order to get the size of certain disk partitions in your file system. You can use: getTotalSpace() to get the total capacity of the disk partition you want. getFreeSpace() to get the free space of the disk partition. getUsableSpace() to get the usable space in ...

Read More »

Generate a File Checksum value in Java

In this tutorial we are going to see how to generate a file’s Checksum value in Java using the SHA-1 hash function. If you are working on your applications security specs it might be useful to consider using checksums to improve the security and integrity of file transfer or file sharing actions. In short, the basic steps one should take ...

Read More »

Move Files in Java example

In this example we are going to see how you can move a file to a new location in your File Path. In Java, there is no generic function you can use to do that. Nevertheless, you can use two ways to perform this operation: Use the renameTo function of the File class to do it. Copy the the File ...

Read More »

Append content to file in Java example

With this tutorial we shall show you how to use FileWriter and BufferedReader classes in odrer to append content to a file using Java. The idea is very simple.You have an already created File that has some content in it and you want to write new content at the end of the existing one. In order to do that we ...

Read More »

Write file with BufferedWriter example

With this tutorial we shall show you how to use BufferedWriter to write in a simple text file. It is particularly useful to work with BufferedWriter especially when you want to write an array and generally character data to a file. Let’s see the code:             package com.javacodegeeks.java.core; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class ...

Read More »

Read file with BufferedReader example

In this example we are going to see how to use use the BufferedReader class in Java in order to read a simple text file. In Java, there is a number of ways that you can use to read a file, but the BufferedReader class offers one the most efficient and easy to handle tools. Note that the BufferedReader class can ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns