File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "What to use regarding streams" Watch "What to use regarding streams" New topic
Author

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
Sheriff

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
DataOutputStream
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What to use regarding streams
 
Similar Threads
form data in French not received
how to hold the original charset of a String when output it to a file through java.io
send xml from jsp and read it in a servlet
The server sent HTTP status code -1
Problem with linefeed