Java I/O Tutorials
java io
java.io
java.nio
file
directory
java io tutorial
java io example
There are two packages in Java API (java.io and java.nio) that handles input and outputthrough data streams, serialization, and the file system. Here is a list of simple examples on Java IO topic.
File
- How to convert Inputstream to String in Java
- How to read CSV file in Java
- How to read and write files in Java
- How to convert String to InputStream in Java
- Java Properties file example
- How to copy files in Java
- How to make a file read only in Java
- File Path, Absolute Path and Canonical Path in Java
Directory
- How to create directory in Java
- How to delete directory in Java
- How to check if directory is empty in Java
- How to display the content of a directory in Java
- How to copy directory in Java
Archive
Misc
- How to convert byte size into human readable format in java
- How to get free disk space in Java
- How to get the current working directory in Java
Network
- GET/POST request with HttpURLConnection in Java
- Client Server Socket example in Java
- GET/POST request with Apache HttpClient
- How to send emails using JavaMail
- How to get HTTP Response Header using URLConnection in Java
- How to create tiny HTTP server in Java
- HTTP URLConnection with proxy in Java
- How to get local computer name and IP in Java
- How to get network interfaces in Java
References