@Override public int read(char[] destination, int offsetToStart, int numberOfChars) throws IOException { char[] got = readerBuffer.getNextChars(numberOfChars); if (got != null) { System.arraycopy(got, 0, destination, offsetToStart, got.length); return got.length; } else { return -1; } }
@Override public int read(char[] destination, int offsetToStart, int numberOfChars) throws IOException { char[] got = readerBuffer.getNextChars(numberOfChars); if (got != null) { System.arraycopy(got, 0, destination, offsetToStart, got.length); return got.length; } else { return -1; } }