wood burning stoves
The moose likes Beginning Java and the fly likes Byte stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Byte stream" Watch "Byte stream" New topic

Byte stream

Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I'm studying for a test that I have tonight. My study guide says "Know how to construct and use Byte streams". I don't have anything about this in my notes and the book is difficult to understand. Do any of you know what it is that I will need to know for this?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Candy,
In general byte streams are all classes that extend java.io.InputStream for reading raw bytes and java.io.OutputStream for writing raw bytes. You also have character streams which convert the raw bytes into characters according to an encoding scheme. These are subclasses of java.io.Reader and java.io.Writer. Take a look at the API docs in the java.io package for further information.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
It is sorta covered in the JavaRanch Style Guide.
subject: Byte stream