File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes DataInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "DataInputStream" Watch "DataInputStream" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Does DataInputStream accepts FilterInputStream as an argument?
My answer is No. Any arguments??
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
I think it will accept as both of them are highlevel streams.
I do not know if i can generalize, all high level streams accepts,low level streams and high level strems as arguments.
Can anyone here list all the ways to
1. read a line of text in charactres.
2. read line of text in numbers.
I think we should use readLine() method of BufferInputStreams,
BufferedReaders. Am i correct? Are there any otherways to do that?
- Thanks
I agree. Here's the link:
subject: DataInputStream
It's not a secret anymore!