Author: elecharny
Date: Sat Apr 30 16:10:02 2005
New Revision: 165428
URL: http://svn.apache.org/viewcvs?rev=165428&view=rev
Log:
Added OID and OctetString ASN.1 primitive factories
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OIDFactory.java
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OctetStringFactory.java
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OIDFactory.java
URL:
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OIDFactory.java?rev=165428&view=auto
==============================================================================
---
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OIDFactory.java
(added)
+++
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OIDFactory.java
Sat Apr 30 16:10:02 2005
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2005 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.asn1.primitives.factories;
+
+import org.apache.asn1.primitives.OID;
+import org.apache.asn1.util.ObjectFactory;
+import org.apache.asn1.util.pools.PoolObject;
+
+/**
+ * Creates a OID object
+ *
+ * @author <a href="mailto:[email protected]">Apache Directory
Project</a>
+ */
+public class OIDFactory implements ObjectFactory {
+
+ /**
+ * The method that creates the object
+ *
+ * @return The created object
+ */
+ public PoolObject makeObject()
+ {
+ return new OID();
+ }
+}
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OctetStringFactory.java
URL:
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OctetStringFactory.java?rev=165428&view=auto
==============================================================================
---
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OctetStringFactory.java
(added)
+++
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/factories/OctetStringFactory.java
Sat Apr 30 16:10:02 2005
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2005 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.asn1.primitives.factories;
+
+import org.apache.asn1.primitives.OctetString;
+import org.apache.asn1.util.ObjectFactory;
+import org.apache.asn1.util.pools.PoolObject;
+
+/**
+ * Creates a OctetString object
+ *
+ * @author <a href="mailto:[email protected]">Apache Directory
Project</a>
+ */
+public class OctetStringFactory implements ObjectFactory {
+
+ /**
+ * The method that creates the object
+ *
+ * @return The created object
+ */
+ public PoolObject makeObject()
+ {
+ return new OctetString();
+ }
+}