Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

common io

Java – How to download a file from the Internet

March 16, 2017 by mkyong

This article shows you how to download a file from an URL by using the following methods : Apache Commons IO Java NIO 1. Apache Commons IO 1.1 This is still my prefer way to download a file from the Internet, simple and clean. Read the signature : org.apache.commons.io.FileUtils //int = number of milliseconds public …

Read more

Categories java Tags common io, download, java, java.io, nio, url 5 Comments

Java – Read a text file line by line

December 28, 2016September 28, 2014 by Datsabk

This article covers 3 ways to read a text file line by line : Java NIO libraries – FileChannel to read the files. It is a non-blocking mode of reading files BufferedReader – Which is a blocking operation i.e it blocks any other read/write request to the file until it has completed the task. Apache …

Read more

Categories java Tags common io, java.io, java.nio, read file 1 Comment

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.