Documentation

The Java™ Tutorials
Hide TOC
Scanning and Formatting扫描和格式化
Trail: Essential Java Classes
Lesson: Basic I/O
Section: I/O Streams

Scanning and Formatting扫描和格式化

Programming I/O often involves translating to and from the neatly formatted data humans like to work with. 编程I/O通常涉及到与人类喜欢使用的格式整洁的数据之间的转换。To assist you with these chores, the Java platform provides two APIs. 为了帮助您完成这些琐事,Java平台提供了两个API。The scanner API breaks input into individual tokens associated with bits of data. 扫描器API将输入分解为与数据位关联的单个标记。The formatting API assembles data into nicely formatted, human-readable form.格式化API将数据组装成格式良好、可读的形式。


Previous page: Buffered Streams
Next page: Scanning