|
System.in returns InputStream and then its skip method
public long skip (long n)
throws IOException skips and discards n data bytes in this input stream. For various reasons, the skip method ends after skipping some smaller number of bytes (possibly 0). This can be caused by several conditions; reaching the end of the file before n bytes are skipped is just one of them. Returns the actual number of bytes skipped. If n is negative, no bytes are skipped.
The skip method of InputStream creates a byte array and then reads into it repeatedly until n bytes have been read or the end of the stream has been reached. It is recommended that subclasses provide a more efficient implementation of this method.
parameter:
n-the number of bytes to skip.
return:
The actual number of bytes skipped.
Throws:
IOException-if an I / O error occurs.
-------------------------------------------------- ------------------------------ |
|