This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes java/input-output stream 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 "java/input-output stream" Watch "java/input-output stream" New topic
Author

java/input-output stream

karthi
Greenhorn

Joined: Nov 11, 2000
Posts: 1
difference between buffered input stream and data input stream
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Both are higher level input streams and can be created to add functionality to another InputStream. (Including each other)
DataInputStream allows you to read the data off the inputstream as Java types including int, double, byte, byte[]. It does have a method to read in a String but, it's deprecated in favor of readLine in the BufferedInputStream.
BufferedInputStream buffers the input (reads ahead basically) and when you make a read off the stream, you are actually reading it off the buffer. This provides a performance enhancement to your Input operations.
Hope this helps

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java/input-output stream
 
Similar Threads
Regarding Applet Servlet Commmunication in Lotus Domino 5.0.2
XML Parsing - File Locked !
getting the value of .properties file
length of input stream
Problem with HttpURLConnection