• Post Reply Bookmark Topic Watch Topic
  • New Topic

FilterInputStream  RSS feed

 
geetha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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).]
 
Sandeep Potnis
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I'm sorry Geeta. I mistook that for FileInputStream.
Sandeep
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!