• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method: getInputStream() belong to which class or interface?

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the notes,

Use the following methods to get the streams for the Connection.
oConnection.getInputStream()
oConnection.getOutputStream()
oConnection.getDataInputStream()
oConnection.getDataOutputStream()


I couldn't find any information about the above methods. Connection and its sub-interface don't have those methods. Anyone can tell me
[ August 20, 2004: Message edited by: Alibabra Sanjie ]
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess those methods have been mistyped. The correct ones would be

Connector.openInputStream(String name)
Connector.openOutputStream(String name)
Connector.openDataInputStream(String name)
Connector.openDataOutputStream(String name)
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not just the notes, the specifications even got some typos and technical errors... The reader has to know them by themselves using common sense...
 
Did you just should on me? You should read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!