Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataInputStream

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does DataInputStream accepts FilterInputStream as an argument?
My answer is No. Any arguments??
 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic