MCPcopy Create free account
hub / github.com/davidgiven/luje / Readable

Interface Readable

lib/java/lang/Readable.java:26–40  ·  view source on GitHub ↗

Represents a sequence of characters that can be incrementally read (copied) into a CharBuffer.

Source from the content-addressed store, hash-verified

24 * into a {@link CharBuffer}.
25 */
26public interface Readable {
27
28 /**
29 * Reads characters into the specified {@code CharBuffer}. The maximum
30 * number of characters read is {@code CharBuffer.remaining()}.
31 *
32 * @param cb
33 * the buffer to be filled with characters read.
34 * @return the number of characters actually read, or -1 if this
35 * {@code Readable} reaches its end
36 * @throws IOException
37 * if an I/O error occurs.
38 */
39 int read(CharBuffer cb) throws IOException;
40}

Callers 1

readMethod · 0.65

Implementers 6

Readerlib/java/io/Reader.java
CharBufferlib/java/nio/CharBuffer.java
OSFileSystemlib/org/apache/harmony/luni/platform/O
InputStreamlib/java/io/InputStream.java
ByteArrayInputStreamlib/java/io/ByteArrayInputStream.java
FileInputStreamlib/java/io/FileInputStream.java

Calls

no outgoing calls

Tested by

no test coverage detected