wood burning stoves*
The moose likes I/O and Streams and the fly likes different betwean InputStream and FileInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "different betwean InputStream and FileInputStream" Watch "different betwean InputStream and FileInputStream" New topic
Author

different betwean InputStream and FileInputStream

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
what is the different betwean InputStream and FileInputStream?
why we use FileInputStream for Deserilization than InputStream
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

A FileInputStream is a specialized InputStream that only works with files.

InputStream itself is more general - besides FileInputStream, you can also retrieve InputStreams to read from URLs (through java.net.URL and java.net.URLConnection), databases (through java.sql.ResultSet), or in theory every source of data.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: different betwean InputStream and FileInputStream
 
Similar Threads
How to create a ResourceBundle from a file name (not a base name)
loading properties file
Question
io
TEMP file question