This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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