Utility to read optionally limited number of characters from a reader.

Description

In we added a utility to read all the contents of a Reader into a String. It turns out we also need a method to read at most a certain number of characters from a Reader into a String.

Create similar methods for reading character into a buffer, similar to how Reader.read(char[]) and its variations work, except that those method may return early even if there is more information in the reader. This is analogous to the byte buffer-related methods in JAVA-178.

Environment

None

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Fix versions

Priority

Critical
Configure