public final static void main(String[] args) {
StringBuffer builder = new StringBuffer();
builder.append("<!ENTITY foo SYSTEM \"bar\">\n");
builder.append("<!ENTITY bar SYSTEM \"foo\">\n");
StringInputStream in = new StringInputStream(builder.toString());
try {
EntityFileParser.parse(in,
new EntityVisitor() {
public void visitSystemEntity(String name, String systemId) {