equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
32 * a <tt>Readable</tt> are made available to callers of the read |
32 * a <tt>Readable</tt> are made available to callers of the read |
33 * method via a {@link java.nio.CharBuffer CharBuffer}. |
33 * method via a {@link java.nio.CharBuffer CharBuffer}. |
34 * |
34 * |
35 * @since 1.5 |
35 * @since 1.5 |
36 */ |
36 */ |
37 |
37 @FunctionalInterface |
38 public interface Readable { |
38 public interface Readable { |
39 |
39 |
40 /** |
40 /** |
41 * Attempts to read characters into the specified character buffer. |
41 * Attempts to read characters into the specified character buffer. |
42 * The buffer is used as a repository of characters as-is: the only |
42 * The buffer is used as a repository of characters as-is: the only |
49 * @throws IOException if an I/O error occurs |
49 * @throws IOException if an I/O error occurs |
50 * @throws NullPointerException if cb is null |
50 * @throws NullPointerException if cb is null |
51 * @throws java.nio.ReadOnlyBufferException if cb is a read only buffer |
51 * @throws java.nio.ReadOnlyBufferException if cb is a read only buffer |
52 */ |
52 */ |
53 public int read(java.nio.CharBuffer cb) throws IOException; |
53 public int read(java.nio.CharBuffer cb) throws IOException; |
54 |
|
55 } |
54 } |