From e6d3771bc3a437dea328a3ab48119bd0efb2f945 Mon Sep 17 00:00:00 2001 From: Xueming Shen Date: Tue, 6 Apr 2010 15:45:21 -0700 Subject: [PATCH] 6717164: FilterInputStream.skip incorrectly inherits wording specifying how the InputStream.skip works Restoring the javadoc Reviewed-by: alanb --- jdk/src/share/classes/java/io/FilterInputStream.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/io/FilterInputStream.java b/jdk/src/share/classes/java/io/FilterInputStream.java index 14f8f064031..b3849fc5dec 100644 --- a/jdk/src/share/classes/java/io/FilterInputStream.java +++ b/jdk/src/share/classes/java/io/FilterInputStream.java @@ -134,9 +134,18 @@ class FilterInputStream extends InputStream { } /** - * {@inheritDoc} + * Skips over and discards n bytes of data from the + * input stream. The skip method may, for a variety of + * reasons, end up skipping over some smaller number of bytes, + * possibly 0. The actual number of bytes skipped is + * returned. *

* This method simply performs in.skip(n). + * + * @param n the number of bytes to be skipped. + * @return the actual number of bytes skipped. + * @exception IOException if the stream does not support seek, + * or if some other I/O error occurs. */ public long skip(long n) throws IOException { return in.skip(n);