Methods Summary |
---|
public void | adup(char[] buff, int offset, int length) // saved attribute name
// ScanHandler implementation
theWriter.println(attrName);
attrName = null;
|
public void | aname(char[] buff, int offset, int length)
theWriter.print('A");
theWriter.write(buff, offset, length);
theWriter.print(' ");
attrName = new String(buff, offset, length);
|
public void | aval(char[] buff, int offset, int length)
theWriter.write(buff, offset, length);
theWriter.println();
attrName = null;
|
public void | cdsect(char[] buff, int offset, int length)
pcdata(buff, offset, length);
|
public void | characters(char[] buff, int offset, int length)
pcdata(buff, offset, length);
|
public void | cmnt(char[] buff, int offset, int length)
// theWriter.print('!');
// theWriter.write(buff, offset, length);
// theWriter.println();
|
public void | comment(char[] ch, int start, int length)
cmnt(ch, start, length);
|
public void | decl(char[] buff, int offset, int length)
|
public void | endCDATA()
|
public void | endDTD()
|
public void | endDocument()
theWriter.close();
|
public void | endElement(java.lang.String uri, java.lang.String localname, java.lang.String qname)
if (qname.length() == 0) qname = localname;
theWriter.print(')");
theWriter.println(qname);
|
public void | endEntity(java.lang.String name)
|
public void | endPrefixMapping(java.lang.String prefix)
|
public void | entity(char[] buff, int offset, int length)
|
public void | eof(char[] buff, int offset, int length)
theWriter.close();
|
public void | etag(char[] buff, int offset, int length)
theWriter.print(')");
theWriter.write(buff, offset, length);
theWriter.println();
|
public int | getEntity() return 0;
|
public void | gi(char[] buff, int offset, int length)
theWriter.print('(");
theWriter.write(buff, offset, length);
theWriter.println();
|
public void | ignorableWhitespace(char[] buff, int offset, int length)
characters(buff, offset, length);
|
public void | pcdata(char[] buff, int offset, int length)
if (length == 0) return; // nothing to do
boolean inProgress = false;
length += offset;
for (int i = offset; i < length; i++) {
if (buff[i] == '\n") {
if (inProgress) {
theWriter.println();
}
theWriter.println("-\\n");
inProgress = false;
}
else {
if (!inProgress) {
theWriter.print('-");
}
switch(buff[i]) {
case '\t":
theWriter.print("\\t");
break;
case '\\":
theWriter.print("\\\\");
break;
default:
theWriter.print(buff[i]);
}
inProgress = true;
}
}
if (inProgress) {
theWriter.println();
}
|
public void | pi(char[] buff, int offset, int length)
theWriter.write(buff, offset, length);
theWriter.println();
|
public void | pitarget(char[] buff, int offset, int length)
theWriter.print('?");
theWriter.write(buff, offset, length);
theWriter.write(' ");
|
public void | processingInstruction(java.lang.String target, java.lang.String data)
theWriter.print('?");
theWriter.print(target);
theWriter.print(' ");
theWriter.println(data);
|
public void | setDocumentLocator(org.xml.sax.Locator locator)
|
public void | skippedEntity(java.lang.String name)
|
public void | stagc(char[] buff, int offset, int length)
// theWriter.println("!"); // FIXME
|
public void | stage(char[] buff, int offset, int length)
theWriter.println("!"); // FIXME
|
public void | startCDATA()
|
public void | startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
|
public void | startDocument()
|
public void | startElement(java.lang.String uri, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes atts)
if (qname.length() == 0) qname=localname;
theWriter.print('(");
theWriter.println(qname);
int length = atts.getLength();
for (int i = 0; i < length; i++) {
qname = atts.getQName(i);
if (qname.length() == 0) qname = atts.getLocalName(i);
theWriter.print('A");
// theWriter.print(atts.getType(i)); // DEBUG
theWriter.print(qname);
theWriter.print(' ");
theWriter.println(atts.getValue(i));
}
|
public void | startEntity(java.lang.String name)
|
public void | startPrefixMapping(java.lang.String prefix, java.lang.String uri)
|