@ Nonnull public static ESuccess copyReaderToWriterWithLimitAndCloseWriter ( @ Nullable @ WillClose final Reader aReader , @ Nullable @ WillClose final Writer aWriter , @ Nonnegative final long nLimit ) { try { return copyReaderToWriter ( aReader , aWriter , new char [ DEFAULT_BUFSIZE ] , ( MutableLong ) null , Long . valueOf ( nLimit ) ) ; } finally { close ( aWriter ) ; } }
Pass the content of the given reader to the given writer . The reader and the writer are automatically closed!