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