001 package net.sourceforge.retroweaver.runtime.java.io; 002 003 import java.io.PrintWriter; 004 005 public class PrintWriter_ { 006 007 public static PrintWriter append(PrintWriter w, char c) { 008 w.write(c); 009 return w; 010 } 011 012 public static PrintWriter append(PrintWriter w, CharSequence csq) { 013 w.write(csq==null?"null":csq.toString()); 014 return w; 015 } 016 017 public static PrintWriter append(PrintWriter w, CharSequence csq, int start, int end) { 018 w.write(csq==null?"null".substring(start, end):csq.subSequence(start, end).toString()); 019 return w; 020 } 021 022 }