directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1061407 - /directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java
Date Thu, 20 Jan 2011 17:23:02 GMT
Author: akarasulu
Date: Thu Jan 20 17:23:02 2011
New Revision: 1061407

URL: http://svn.apache.org/viewvc?rev=1061407&view=rev
Log:
to move some string utility functions into place where they break deps

Added:
    directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java

Added: directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java?rev=1061407&view=auto
==============================================================================
--- directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java
(added)
+++ directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/Strings.java
Thu Jan 20 17:23:02 2011
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.directory.shared.util;
+
+
+
+/**
+ * Various string manipulation methods that are more efficient then chaining
+ * string operations: all is done in the same buffer without creating a bunch of
+ * string objects.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public final class Strings
+{
+    /**
+     * Private constructor
+     */
+    private Strings()
+    {
+    }
+
+    /** The default charset, because it's not provided by JDK 1.5 */
+    static String defaultCharset = null;
+    
+
+    
+    // ~ Static fields/initializers
+    // -----------------------------------------------------------------
+
+}



Mime
View raw message