add writeUseNIO(int bufferLength,InputStream inputStream,OutputStream
outputStream) method