added utility writeln() function that appends a "<br>" to everything.

I know it's not XML, but it's handy for debugging.
This commit is contained in:
hns 2001-07-31 23:58:28 +00:00
parent 7086d762a2
commit 171d615a9f

View file

@ -98,6 +98,17 @@ public class ResponseTrans implements Externalizable {
} }
} }
/**
* Utility function that appends a <br> to whatever is written
*/
public void writeln (Object what) {
if (buffer == null)
buffer = new StringBuffer (512);
if (what != null)
buffer.append (what.toString ());
buffer.append ("<br>\r\n");
}
/** /**
* Replace special characters with entities, including <, > and ", thus allowing * Replace special characters with entities, including <, > and ", thus allowing
* no HTML tags. * no HTML tags.