code: @Override
  	public int read(char[] cbuf, int off, int len)
  	{
  		int n = 0;
  
  		while (pos != max && n < len)
  		{
  			cbuf[off + n++] = data[pos++];
  		}
  
  		return n == 0 ? -1 : n;
  	}
docs: Read characters into the array passed.