Adding buffered reader for both DataInputStream and InputStream