This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use mark() of InputStream  RSS feed

 
AJ sisodia
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 1.
how to use mark() of InputStream

Question 2.
how is mark() different from reset()


Question 3.
Am i right to think both these methods can replace each other.

Question 4.
when used reset() method points to the start of a file.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 1
see API

Question 2
see API

Question 3
wrong, see API

Question 4
see API

That was simple
See API for InputStream class. mark() and reset() are clearly explained there.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!