Table of Contents

    File Operations Java

    Key Terms

    Term

    Definition

    Binary Files

    Files that store data in machine readable form.

    Buffer

    A temporary storage used to hold data until enough has been collected that it is worth transferring. Buffering can be used for both input and output.

    Byte Stream Classes

    A type of stream class used for Byte oriented I/O. These are categorized into Input Stream Classes and Output Stream Classes.

    Character Stream Classes

    A type of stream class used for Character oriented IO. These are categorized into Reader classes and Writer classes.

    File

    A bunch of bytes stored on some storage device.

    flush operation

    An operation that forces the buffer to be written to the stream, even if it is not full. This guarantees that the data has actually been written to the destination.

    Pageable jobs

    A printing model that offers more flexibility than Printable jobs, as each page can feature a different layout, format, or painter. A Pageable job can have pages in different orientations (portrait and landscape).

    Print Job

    A unit of work to be run on a printer, which can consist of printing one or more files. A system job is a unique job number and printer pair that is assigned to each print job as it is received.

    Printable jobs

    The simpler of the two printing models. This model only uses one PagePainter to render the entire document, with pages rendered in sequence.

    Scanner Class

    Introduced with J2SE 5.0, this is a useful new class that can parse text for primitive types and substrings using regular expressions. It can obtain text from sources such as a String object, an InputStream, or a File.

    Streams

    Controlled flows of data from one source to another. The stream classes that you use for input and output purposes are contained in java.io package.

    StreamTokenizer

    A class that takes an input stream and parses it into "tokens," allowing the tokens to be read one at a time.

    Text Files

    Files that store characters as per a specific character encoding scheme (e.g., Unicode).

    Tokens

    Words in an input string which are separated by delimiters (for example, a space).

    Tokenizer classes

    Classes that provide functionality to parse strings or streams.