summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java')
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java
index 3b00d58..4a21f84 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java
@@ -19,15 +19,15 @@ import org.xml.sax.helpers.DefaultHandler;
/**
* <p>
* If you want to preserve CDATA sections you need to follow this pattern:<br/>
- *
+ *
* <pre>
* XMLReader xmlReader = XMLReaderFactory.createXMLReader();
* xmlReader.setContentHandler(this);
* xmlReader.setProperty(&quot;http://xml.org/sax/properties/lexical-handler&quot;, this); //This is the important part
* </pre>
- *
+ *
* </p>
- *
+ *
* @author Ryan D. Brooks
*/
public abstract class AbstractSaxHandler extends DefaultHandler implements LexicalHandler {
@@ -45,7 +45,7 @@ public abstract class AbstractSaxHandler extends DefaultHandler implements Lexic
}
@Override
- public void characters(char[] ch, int start, int length) throws SAXException {
+ public void characters(char[] ch, int start, int length) {
if (maxContentLength > 0 && contents.length() + length > maxContentLength) {
return; // don't add more characters if doing so will make the content too long
}
@@ -85,37 +85,37 @@ public abstract class AbstractSaxHandler extends DefaultHandler implements Lexic
}
@Override
- public void comment(char[] ch, int start, int length) throws SAXException {
+ public void comment(char[] ch, int start, int length) {
//Do nothing
}
@Override
- public void endCDATA() throws SAXException {
+ public void endCDATA() {
contents.append("]]>");
}
@Override
- public void endDTD() throws SAXException {
+ public void endDTD() {
//Do nothing
}
@Override
- public void endEntity(String name) throws SAXException {
+ public void endEntity(String name) {
//Do nothing
}
@Override
- public void startCDATA() throws SAXException {
+ public void startCDATA() {
contents.append("<![CDATA[");
}
@Override
- public void startDTD(String name, String publicId, String systemId) throws SAXException {
+ public void startDTD(String name, String publicId, String systemId) {
//Do nothing
}
@Override
- public void startEntity(String name) throws SAXException {
+ public void startEntity(String name) {
//Do nothing
}
} \ No newline at end of file