Mercurial Hosting > nabble
diff src/nabble/naml/compiler/IPrintWriter.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/naml/compiler/IPrintWriter.java Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,18 @@ +package nabble.naml.compiler; + + +/* +PrintWriter should have been an interface. Because the java.io library is poorly designed, I have to hack this interface. +*/ + +public interface IPrintWriter { + public PrintWriter getPrintWriter(); + public void close(); + public void print(Object obj); + public void print(String s); + public void print(boolean b); + public void print(char c); + public void print(Boolean b); + public void flush(); + // add more as needed +}