my dog learned polymorphism*
The moose likes Beginning Java and the fly likes available(),skip() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "available(),skip()" Watch "available(),skip()" New topic
Author

available(),skip()

Niyas Ahmed Sheikh
Ranch Hand

Joined: Jun 15, 2005
Posts: 129

Output:
626616616616616616616616616616616
class Fil

In the above program, what is the purpose of using available(), skip() and read(byte[],int,int). Please explain the program.
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
Before you can answer that specific question, you need to know what these methods do individually. The API docs can help you with that.
[ September 02, 2005: Message edited by: Stuart Gray ]
 
Don't get me started about those stupid light bulbs.
 
subject: available(),skip()
 
Similar Threads
Outputstream the file through http response
how to read a file data into byte array
I/O Clarification
What's wrong with the program?
Files