• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What to use regarding streams

 
Doyle Matt
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the I/O and Streams forum...
 
Prashant Sehgal
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DataOutputStream
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic