summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/parser/PlatformXMLParserFactory.java')
-rw-r--r--src/com/isode/stroke/parser/PlatformXMLParserFactory.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/com/isode/stroke/parser/PlatformXMLParserFactory.java b/src/com/isode/stroke/parser/PlatformXMLParserFactory.java
new file mode 100644
index 0000000..85c9ae9
--- /dev/null
+++ b/src/com/isode/stroke/parser/PlatformXMLParserFactory.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2010, Isode Limited, London, England.
+ * All rights reserved.
+ */
+/*
+ * Copyright (c) 2010, Remko Tron¨on.
+ * All rights reserved.
+ */
+
+package com.isode.stroke.parser;
+
+import com.isode.stroke.eventloop.EventLoop;
+
+class PlatformXMLParserFactory {
+ /**
+ * Unlike Swiften, this may be threaded, and therefore needs an eventloop.
+ */
+ public static XMLParser createXMLParser(XMLParserClient client, EventLoop eventLoop) {
+ return new PullXMLParser(client, eventLoop);
+ }
+}