aboutsummaryrefslogtreecommitdiff
path: root/src/com/benlinskey/grdbc/SyntaxParser.java
diff options
context:
space:
mode:
authorBen Linskey2013-12-17 09:15:23 -0500
committerBen Linskey2013-12-17 09:15:23 -0500
commit81289d52a0b771de363a361c1d04ae3146e5d8cf (patch)
treea482c1a4bcaff6dc471139fef0eb1a480293fa76 /src/com/benlinskey/grdbc/SyntaxParser.java
parenta1aacb1a9db2cded467fbd6699a4140529e88ce9 (diff)
downloadgreek-reference-database-creator-81289d52a0b771de363a361c1d04ae3146e5d8cf.tar.gz
Replace tabs with spaces.
This commit also adds a missing documentation comment for the GreekTextParser class.
Diffstat (limited to 'src/com/benlinskey/grdbc/SyntaxParser.java')
-rw-r--r--src/com/benlinskey/grdbc/SyntaxParser.java52
1 files changed, 28 insertions, 24 deletions
diff --git a/src/com/benlinskey/grdbc/SyntaxParser.java b/src/com/benlinskey/grdbc/SyntaxParser.java
index 811ca2f..9745af3 100644
--- a/src/com/benlinskey/grdbc/SyntaxParser.java
+++ b/src/com/benlinskey/grdbc/SyntaxParser.java
@@ -24,31 +24,35 @@ import org.xml.sax.SAXException;
/**
* Parses XML from the Overview of Greek Syntax text and converts Beta Code to
* Greek characters.
+ *
* @author Ben Linskey
- *
+ *
*/
public class SyntaxParser extends GreekTextParser {
- /**
- * Class constructor.
- * @param xml the XML to parse
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws IOException
- */
- public SyntaxParser(String xml)
- throws ParserConfigurationException, SAXException, IOException {
- super(xml);
- }
-
- /**
- * Returns the XML for this section, with all Beta Code converted to Greek
- * characters.
- * @return the XML for this section with all Beta Code converted to Greek
- * characters
- */
- public String transcode() {
- transcodeInElements("quote");
- transcodeInElements("foreign");
- return getUpdatedXML();
- }
+ /**
+ * Class constructor.
+ *
+ * @param xml
+ * the XML to parse
+ * @throws ParserConfigurationException
+ * @throws SAXException
+ * @throws IOException
+ */
+ public SyntaxParser(String xml) throws ParserConfigurationException,
+ SAXException, IOException {
+ super(xml);
+ }
+
+ /**
+ * Returns the XML for this section, with all Beta Code converted to Greek
+ * characters.
+ *
+ * @return the XML for this section with all Beta Code converted to Greek
+ * characters
+ */
+ public String transcode() {
+ transcodeInElements("quote");
+ transcodeInElements("foreign");
+ return getUpdatedXML();
+ }
}