ANTLRReaderStream buffer size and IndexOutOfBoundException 

This pull requests fixes the case where size is smaller than readChunkSize. This avoids an IndexOutOfBoundException