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:
parent
7086d762a2
commit
171d615a9f
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
* no HTML tags.
|
||||
|
|
Loading…
Add table
Reference in a new issue