Class Writers

java.lang.Object
com.android.dx.util.Writers

public final class Writers extends Object
Utilities for dealing with Writers.
  • Method Details

    • printWriterFor

      public static PrintWriter printWriterFor(Writer writer)
      Makes a PrintWriter for the given Writer, returning the given writer if it already happens to be the right class.
      Parameters:
      writer - non-null; writer to (possibly) wrap
      Returns:
      non-null; an appropriate instance