public static void main(String args[]) {
        Read4Function rf = new Read4Function();
        char[] buff = new char[10];
        int size = rf.read(buff, 2);
        System.out.print(size);
        System.out.println(Arrays.toString(buff));
        size = rf.read(buff, 1);
        System.out.print(size);
        System.out.println(Arrays.toString(buff));
        size = rf.read(buff, 1);
        System.out.print(size);
        System.out.println(Arrays.toString(buff));
    }
Date 03/26/2016
@author Tushar Roy

Given a reader which only reads 4 bytes implement a Reader which can read bytes of give size.

Reference
Read N Characters Given Read4 II
https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times/
src/com/interview/misc/Read4Function.java