com.googlecode.flyway.core.util
Class FileCopyUtils

java.lang.Object
  extended by com.googlecode.flyway.core.util.FileCopyUtils

public class FileCopyUtils
extends java.lang.Object

Utility class for copying files and their contents. Inspired by Spring's own.


Method Summary
static java.lang.String copyToString(java.io.Reader in)
          Copy the contents of the given Reader into a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyToString

public static java.lang.String copyToString(java.io.Reader in)
                                     throws java.io.IOException
Copy the contents of the given Reader into a String. Closes the reader when done.

Parameters:
in - the reader to copy from
Returns:
the String that has been copied to
Throws:
java.io.IOException - in case of I/O errors


Copyright © 2012. All Rights Reserved.