summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/NewLinePrintWriter.scala
blob: f7a297bfef3f244cc7f0dd81896136194d53725f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* NSC -- new Scala compiler
 * Copyright 2005-2009 LAMP/EPFL
 * @author Martin Odersky
 */
// $Id$

package scala.tools.nsc
import java.io.{Writer, PrintWriter}

class NewLinePrintWriter(out: Writer, autoFlush: Boolean)
extends PrintWriter(out, autoFlush) {
  def this(out: Writer) = this(out, false)
  override def println() { print("\n"); flush() }
}