An abstraction for files. For character data, a Codec can be supplied at either creation time or when a method involving character data is called (with the latter taking precedence if supplied.) If neither is available, the value of scala.io.Codec.default is used.
Calls to methods requiring byte<->char transformations should be offered in a form which allows specifying the codec. When it is not specified, the one discovered at creation time will be used, which will always find the one in scala.io.Codec if no other is available. This can be overridden to use a different default.
Wraps a BufferedWriter around the result of writer().
Obtains an InputStream.
Obtains a OutputStream.
Calls println on each string (so it adds a newline in the PrintWriter fashion.)
Reflection since we're into the java 6+ API.
Creates a new file and writes all the Strings to it.
Obtains an OutputStreamWriter wrapped around a FileOutputStream. This should behave like a less broken version of java.io.FileWriter, in that unlike the java version you can specify the encoding.