mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8247918: Clarify Reader.skip behavior for end of stream
Reviewed-by: rriggs, naoto
This commit is contained in:
parent
8a1c712c2e
commit
7ffa1481c2
8 changed files with 108 additions and 69 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -269,6 +269,8 @@ public abstract class Reader implements Readable, Closeable {
|
|||
/**
|
||||
* Skips characters. This method will block until some characters are
|
||||
* available, an I/O error occurs, or the end of the stream is reached.
|
||||
* If the stream is already at its end before this method is invoked,
|
||||
* then no characters are skipped and zero is returned.
|
||||
*
|
||||
* @param n The number of characters to skip
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue