Skip to content
Snippets Groups Projects
Commit c028ae88 authored by Goik Martin's avatar Goik Martin
Browse files

variable name refactoring

parent f91c56e0
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import org.xml.sax.helpers.DefaultHandler;
public class HtmlCreateHandler extends DefaultHandler {
String lastElement;// Save name of last visited element
String currentElement;// Save name currently visited element
@Override public void startDocument() throws SAXException {
print("<html xmlns='http://www.w3.org/1999/xhtml'>\n"
......@@ -19,14 +19,14 @@ public class HtmlCreateHandler extends DefaultHandler {
@Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
lastElement = qName;
currentElement = qName;
}
@Override
public void characters(char[] ch, int start, int length) throws SAXException {
final String content = new String(ch, start, length).trim();
if (0 < content.length()) {
switch(lastElement) {
switch(currentElement) {
case "from": print(" <dd>" + content + "</dd>\n"
+ " <dt>Recipients:</dt>\n"
+ " <dd>\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment