directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r165433 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java
Date Sat, 30 Apr 2005 23:13:41 GMT
Author: elecharny
Date: Sat Apr 30 16:13:40 2005
New Revision: 165433

URL: http://svn.apache.org/viewcvs?rev=165433&view=rev
Log:
Added the OID and OctetString pools.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java?rev=165433&r1=165432&r2=165433&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/PoolEnum.java
Sat Apr 30 16:13:40 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1.util.pools;
 
+import org.apache.asn1.primitives.OID;
+import org.apache.asn1.primitives.OctetString;
 import org.apache.asn1.util.MutableString;
 
 /**
@@ -55,6 +57,12 @@
     /** Pool of streamed Strings */
     public static final int STREAMED_STRING_POOL = 7;
 
+    /** Pool of OID */
+    public static final int OID_POOL = 8;
+
+    /** Pool of OCTET STRING */
+    public static final int OCTET_STRING_POOL = 9;
+
     /**
      * Get the name of the object stored in this pool 
      *
@@ -73,6 +81,8 @@
         	case STRING_POOL_512      : return "String512";
         	case STRING_POOL_1024     : return "String1024";
         	case STREAMED_STRING_POOL : return "StreamedString";
+        	case OID_POOL             : return "ObjectIdentifier";
+        	case OCTET_STRING_POOL    : return "OctetString";
         	default                   : return "UNKNOWN POOL";
         }
     }
@@ -94,6 +104,8 @@
 	    	case STRING_POOL_512      : return new MutableString(512);
 	    	case STRING_POOL_1024     : return new MutableString(1024);
 	    	case STREAMED_STRING_POOL : return new MutableString();
+	    	case OID_POOL			  : return new OID();
+	    	case OCTET_STRING_POOL    : return new OctetString();
     		
     		default : return null;
 		}



Mime
View raw message