Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

FilterInputStream

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What are the valid arguments for the FilterInputStream constructor?
A.File
B.FileInputStream
C.DataInputStream
D.BufferedInputStream
E.FileReader
F.BufferedWriter
G.InputStreamReader
F.None of the above
My nas is:none of the above.
according to API it takes only InputStream but when I tried the prog with B,C,D as arguments for FilterInputStream compiler is saying that "no constructor matching found".Moreover we cannot insttantiate a FilterInputStream as the conctructor of it is protected.
Am I correct???

[Please register so that we can get in touch with you when required]


[This message has been edited by Rahul Mahindrakar (edited September 14, 2000).]
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Geetha,
A is correct. FileInputStream has a constructor which take a File object as a parameter.
The other two constructors take a FileDescriptor object and a String object respectively.
Refer to the API for more details.
hth
Sandeep
 
Sandeep Potnis
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sorry Geeta. I mistook that for FileInputStream.
Sandeep
 
Replace the word "snake" with "danger noodle" in all tiny ads.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic