You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2007/09/07 16:06:04 UTC

svn commit: r573589 - /xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java

Author: mullan
Date: Fri Sep  7 07:06:03 2007
New Revision: 573589

URL: http://svn.apache.org/viewvc?rev=573589&view=rev
Log:
A Stax-specific Data.

Added:
    xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java

Added: xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java
URL: http://svn.apache.org/viewvc/xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java?rev=573589&view=auto
==============================================================================
--- xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java (added)
+++ xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxData.java Fri Sep  7 07:06:03 2007
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+package com.r_bg.stax;
+
+import javax.xml.crypto.Data;
+import javax.xml.stream.XMLStreamReader;
+
+/**
+ * A StAX-specific Data.
+ *
+ * @author Sean Mullan
+ */
+public class StaxData implements Data {
+
+    private XMLStreamReader reader;
+
+    public StaxData(XMLStreamReader reader) {
+	this.reader = reader;
+    }
+
+    public XMLStreamReader getXMLStreamReader() {
+	return reader;
+    }
+}