Meaningless Drivel is fun!
The moose likes I/O and Streams and the fly likes What to use regarding streams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "What to use regarding streams" Watch "What to use regarding streams" New topic

What to use regarding streams

Doyle Matt
Ranch Hand

Joined: Jul 05, 2004
Posts: 76
Hi again!
I'm writing another program that sends data to another java app. I know i'm going to use streams in this one. I'm planning to send a bunch of bytes over the LAN and putting the length of the data infront.
say for example

0A 00 01 02 03 04 05 06 07 08 09

So the first byte is 0A, its the length. and the data follows. what class of stream is perfect for this?

SCJP 1.4
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the I/O and Streams forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Prashant Sehgal
Ranch Hand

Joined: Jun 20, 2003
Posts: 56
I agree. Here's the link:
subject: What to use regarding streams
jQuery in Action, 3rd edition