Package com.globalmentor.io
Class Writers
- java.lang.Object
-
- com.globalmentor.io.Writers
-
public class Writers extends java.lang.Object
Utility methods for writers.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description Writers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
write(java.io.Reader reader, java.io.Writer writer)
Copies the contents of a reader to a writer.
-
-
-
Method Detail
-
write
public static void write(java.io.Reader reader, java.io.Writer writer) throws java.io.IOException
Copies the contents of a reader to a writer. Neither reader nor writer is closed after the operation.- Parameters:
reader
- The content to copy.writer
- The destination of the reader contents.- Throws:
java.io.IOException
- Thrown if there is an error copying the content.
-
-