|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
In addition to the classes and interfaces discussed in this lesson,java.iocontains the following classes and interfaces:You also can find some other input and output streams in the
File- Represents a file on the native file system. You can create a
Fileobject for a file on the native file system and then query the object for information about that file, such as its full path name.FileDescriptor- Represents a file handle (or descriptor) to an open file or an open socket. You will not typically use this class.
StreamTokenizer- Breaks the contents of a stream into tokens. Tokens are the smallest unit recognized by a text-parsing algorithm (such as words, symbols, and so on). A
StreamTokenizerobject can be used to parse any text file. For example, you could use it to parse a source file into variable names, operators, and so on, or to parse an HTML file into HTML tags.FilenameFilter- Used by the
listmethod in theFileclass to determine which files in a directory to list. TheFilenameFilteraccepts or rejects files based on their names. You could useFilenameFilterto implement simple regular expression style file search patterns, such asfoo*.java.util.zippackage, including these:
CheckedInputStreamandCheckedOutputStream- An input and output stream pair that maintains a checksum as the data is being read or written.
DeflaterOutputStreamandInflaterInputStream- Compresses or uncompresses the data as it is being read or written.
GZIPInputStreamandGZIPOutputStream- Reads and writes compressed data in the GZIP format.
ZipInputStreamandZipOutputStream- Reads and writes compressed data in the ZIP format.
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.