JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Readers Writers
«Prev
Next»
Java Readers Writers
Java Files
Java File Class
File Listing Information
Listing Path Information
Determine File Format
move, rename, delete Files
Creating Directories Paths
Listing Directories Paths
Random Access Files
Positioning RandomAccess I/O
File Dialogs
Choosing File Dialog
Create FileDialog Box
Default Directory Java
Choosing Files
Get Directory Filename
Java Filename Filters
fileDumper Program Project
File Dialog Box Acceptance
Reading Writing Text
Java Character Sets
Java Reader Writer
Java Reader Class
Read TextFile Print
Readers Writers
Line Number Reader
Java-IO Mini-API
Text numeric Data - Exercise
Course project, part 2
Let us review the specifications for completing the course project:
Objective:
Finish modifying the FileViewer program by allowing the program's user to choose different text encodings in which the file can be read and displayed.
You willl need to do the following:
Adjust the user interface to allow a binary choice of whether the file contains text or numeric data
Use a
Reader
to read the file instead of an input stream if the user chooses text
Provide some means for the user to pick the encoding in which he or she wants the text read (MacRoman, ISO Latin-1, Unicode, and so on). Paste the source code below and click the
Submit
button when you are ready to submit this exercise.