Questions tagged [dataoutputstream]

A mechanism for writing abstract data to a stream

A DataOutputStream is a mechanism for writing any abstract data to a stream, regardless of the type of the data. A stream is usually comprised of data to write to a local file, or data being transmitted to a remote server over a network protocol such as HTTP or FTP.

An DataOutputStream is abstract, and doesn't describe the type of data that is being written. Typically, if you are able to, you would implement one of the subclasses instead, such as FileOutputStream, which more appropriately describes the type of data being handled, and provides additional methods appropriate for that data type.

257 questions
-3
votes
3 answers

DataInputStream and DataOutputStream

I made my own bufferedwriter which works. But I don't know if it really does? I made a bufferedreader when I logout I have (200 coins) and when I login I get (545453 coins) or other amount I am sure it's the bufferedwriter, PLEASE HELP! public…
-4
votes
1 answer

Java DataOutputStream

I wrote a piece of code if DataOutputStream. But the Console didn't show what I expected. The Console show No file given, and I wish it prints id and name writing in the second try{}. It seems like I trapped in File's output stream. Please help me…
Xinyi Zhang
  • 11
  • 1
  • 4
1 2 3
17
18