Chapter 5: Strings, Input/Output,and Files
In this chapter, you will be presented with the String
class methods in more detail. We will also discuss popular string utilities from standard libraries and the Apache Commons project. An overview of Java input/output streams and the related classes of the java.io
packages will follow, along with some classes of the org.apache.commons.io
package. The file-managing classes and their methods are described in a dedicated section. After completing this chapter, you will be able to write code that processes strings and files, using standard Java API and Apache Commons utilities.
The following topics will be covered in this chapter:
- String processing
- I/O streams
- File management
- Apache Commons’
FileUtils
andIOUtils
utilities