[Pixelle-commit] SF.net SVN: pixelle: [167] trunk/pixelle/src/com/mebigfatguy/pixelle/ AlgorithmArc
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-07-16 03:09:26
|
Revision: 167
http://pixelle.svn.sourceforge.net/pixelle/?rev=167&view=rev
Author: dbrosius
Date: 2008-07-15 20:09:36 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
allow parsing of system or user algorithms
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-07-13 01:18:17 UTC (rev 166)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-07-16 03:09:36 UTC (rev 167)
@@ -213,7 +213,7 @@
}
}
- private void parseAlgorithms(InputStream is, Map<String, Map<String, Map<PixelleComponent, String>>> algorithms) throws IOException, SAXException {
+ private void parseAlgorithms(InputStream is, final Map<String, Map<String, Map<PixelleComponent, String>>> algorithms) throws IOException, SAXException {
XMLReader r = XMLReaderFactory.createXMLReader();
r.setContentHandler(new DefaultHandler() {
Map<String, Map<PixelleComponent, String>> currentGroup = null;
@@ -225,7 +225,7 @@
public void startElement(String uri, String localName, String qName, Attributes atts) {
if (GROUP.equals(localName)) {
currentGroup = new HashMap<String, Map<PixelleComponent, String>>();
- systemAlgorithms.put(atts.getValue(NAME), currentGroup);
+ algorithms.put(atts.getValue(NAME), currentGroup);
} else if (ALGORITHM.equals(localName)) {
currentAlgorithm = new HashMap<PixelleComponent, String>();
currentGroup.put(atts.getValue(NAME), currentAlgorithm);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|