Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Writers

        public Writers()
    • 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.