Class Writers

java.lang.Object
com.globalmentor.io.Writers

public class Writers extends Object
Utility methods for working with Writer instances.
Author:
Garret Wilson
  • Constructor Details

    • Writers

      public Writers()
  • Method Details

    • write

      public static void write(Reader reader, Writer writer) throws 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:
      IOException - Thrown if there is an error copying the content.