Home | History | Annotate | Download | only in util

Lines Matching refs:writer

20 import java.io.Writer;
23 * Utilities for dealing with {@code Writer}s.
34 * Makes a {@code PrintWriter} for the given {@code Writer},
35 * returning the given writer if it already happens to be the right
38 * @param writer {@code non-null;} writer to (possibly) wrap
41 public static PrintWriter printWriterFor(Writer writer) {
42 if (writer instanceof PrintWriter) {
43 return (PrintWriter) writer;
46 return new PrintWriter(writer);