directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 10090 - incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules
Date Mon, 19 Apr 2004 03:31:49 GMT
Author: akarasulu
Date: Sun Apr 18 20:31:48 2004
New Revision: 10090

Added:
   incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveEnumDecodeRule.java
  (contents, props changed)
Modified:
   incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveIntDecodeRule.java
   incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveOctetStringRule.java
Log:
added new primitive encoding for ASN.1 ENUMERATED types

Added: incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveEnumDecodeRule.java
==============================================================================
--- (empty file)
+++ incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveEnumDecodeRule.java
Sun Apr 18 20:31:48 2004
@@ -0,0 +1,48 @@
+/*
+ *   Copyright 2004 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 org.apache.snickers.ber.digester.rules ;
+
+
+import org.apache.snickers.ber.TagEnum ;
+import org.apache.snickers.ber.primitives.UniversalTag ;
+
+
+/**
+ * Rule for decoding an ASN.1 ENUMERATED type.
+ * 
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class PrimitiveEnumDecodeRule extends PrimitiveIntDecodeRule
+{
+    /**
+     * Simply uses the UniversalTag.ENUMERATED tag instead of int.
+     */
+    public PrimitiveEnumDecodeRule()
+    {
+        super( UniversalTag.ENUMERATED ) ;
+    }
+
+
+    /**
+     * Simply uses the UniversalTag.ENUMERATED tag instead of int.
+     */
+    public PrimitiveEnumDecodeRule( TagEnum tag )
+    {
+        super( tag ) ;
+    }
+}

Modified: incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveIntDecodeRule.java
==============================================================================
--- incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveIntDecodeRule.java
(original)
+++ incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveIntDecodeRule.java
Sun Apr 18 20:31:48 2004
@@ -76,7 +76,7 @@
      * Creates a default primitive integer decoding rule that only accepts
      * tags of UniversalTag.INTEGER.
      */
-    protected PrimitiveIntDecodeRule( TagEnum tag )
+    public PrimitiveIntDecodeRule( TagEnum tag )
     {
         this.tag = tag ;
     }

Modified: incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveOctetStringRule.java
==============================================================================
--- incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveOctetStringRule.java
(original)
+++ incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/digester/rules/PrimitiveOctetStringRule.java
Sun Apr 18 20:31:48 2004
@@ -69,7 +69,7 @@
      *
      * @param tag the tag to accept
      */
-    protected PrimitiveOctetStringRule( TagEnum tag )
+    public PrimitiveOctetStringRule( TagEnum tag )
     {
         this.tag = tag ;
     }

Mime
View raw message