stream : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

stream

A stream in Java can be a file you read/write sequentially, a set of bytes in RAM (Random Access Memory) you read/write sequentially or a flow of bytes to an Internet socket you read or write. You can skip forward with skip or DataInputStream.skipBytes, but you cannot go back. There is no getFilePointer() to tell you how many bytes you have written to the stream as there is with RandomAccessFile. You can process the stream as encoded bytes with a Reader/Writer. You can process the stream as binary fields with a DataInputStream/DataOutputStream. You can process the stream as serialized objects with an ObjectInputStream/ObjectOutputStream. Streams can be buffered or unbuffered. With unbuffered streams, usually you do your i/o a whole file at a time or in great whacking hunks. You also use it for tiny files.

Learning More

Here are classes that will be helpful in working with streams. See the FileIO amanuensis for detailed help in using them.

Oracle’s Javadoc on BufferedInputStream class : available:
Oracle’s Javadoc on BufferedOutputStream class : available:
Oracle’s Javadoc on BufferedReader class : available:
Oracle’s Javadoc on BufferedWriter class : available:
Oracle’s Javadoc on ByteArrayStream class : available:
Oracle’s Javadoc on ByteArrayOutputStream class : available:
Oracle’s Javadoc on CharArrayReader class : available:
Oracle’s Javadoc on CharArrayWriter class : available:
Oracle’s Javadoc on File class : available:
Oracle’s Javadoc on FileInputStream class : available:
Oracle’s Javadoc on FileOutputStream class : available:
Oracle’s Javadoc on FileReader class : available:
Oracle’s Javadoc on FileWriter class : available:
Oracle’s Javadoc on InputStream class : available:
Oracle’s Javadoc on InputStreamReader class : available:
Oracle’s Javadoc on ObjectInputStream class : available:
Oracle’s Javadoc on ObjectOutputStream class : available:
Oracle’s Javadoc on OutputStream class : available:
Oracle’s Javadoc on OutputStreamWriter class : available:
Oracle’s Javadoc on PipedArrayStream class : available:
Oracle’s Javadoc on PipedOutputStream class : available:
Oracle’s Javadoc on Reader class : available:
Oracle’s Javadoc on StringReader class : available:
Oracle’s Javadoc on StringWriter class : available:
Oracle’s Javadoc on Writer class : available:
binary file formats
console
directories and folders
File I/O Amanuensis to teach you how to do all manner of file, in RAM and remote I/O
Files & Directories
I/O
LEDataStream for little-endian i/o
nio
pipe
println formats

This page is posted
on the web at:

http://mindprod.com/jgloss/stream.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\stream.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.22.68.29]
You are visitor number