Author: elecharny
Date: Sun Apr  3 10:53:38 2005
New Revision: 159942

URL: http://svn.apache.org/viewcvs?view=rev&rev=159942
Log:
Added some factories for MutableString. I'm not very proud of those factories, 
but... Any better idea, out there?

Added:
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString1024Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString128Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString16Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString256Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString32Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString512Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString64Factory.java
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableStringFactory.java

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString1024Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString1024Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString1024Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString1024Factory.java
 Sun Apr  3 10:53:38 2005
@@ -0,0 +1,40 @@
+/*
+ *   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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 1024 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString1024Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(1024);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString128Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString128Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString128Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString128Factory.java
 Sun Apr  3 10:53:38 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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 128 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString128Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(128);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString16Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString16Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString16Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString16Factory.java
 Sun Apr  3 10:53:38 2005
@@ -0,0 +1,40 @@
+/*
+ *   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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 16 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString16Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(16);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString256Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString256Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString256Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString256Factory.java
 Sun Apr  3 10:53:38 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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 256 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString256Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(256);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString32Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString32Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString32Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString32Factory.java
 Sun Apr  3 10:53:38 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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 32 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString32Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(32);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString512Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString512Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString512Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString512Factory.java
 Sun Apr  3 10:53:38 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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 512 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString512Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(512);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString64Factory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString64Factory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString64Factory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableString64Factory.java
 Sun Apr  3 10:53:38 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.util;
+
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a MutableString object containing 64 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableString64Factory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(64);
+    }
+}

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableStringFactory.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableStringFactory.java?view=auto&rev=159942
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableStringFactory.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/MutableStringFactory.java
 Sun Apr  3 10:53:38 2005
@@ -0,0 +1,41 @@
+/*
+ *   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.util;
+
+import org.apache.asn1.util.ObjectFactory;
+import org.apache.asn1.util.pools.PoolObject;
+
+
+/**
+ * Create a default MutableString object containing 16 chars. 
+ * 
+ * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>
+ */
+public class MutableStringFactory implements ObjectFactory
+{
+    //~ Methods 
------------------------------------------------------------------------------------
+
+    /**
+     * The method that creates the object
+     *
+     * @return The created object
+     */
+    public PoolObject makeObject()
+    {
+        return new MutableString(16);
+    }
+}


Reply via email to