libidn-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS libidn/java/gnu/inet/encoding


From: libidn-commit
Subject: CVS libidn/java/gnu/inet/encoding
Date: Wed, 01 Dec 2004 02:39:02 +0100

Update of /home/cvs/libidn/java/gnu/inet/encoding
In directory dopio:/tmp/cvs-serv8311

Modified Files:
        Stringprep.java 
Log Message:
Doc fix, from Oliver Hitz <address@hidden>.


--- /home/cvs/libidn/java/gnu/inet/encoding/Stringprep.java     2004/11/22 
22:40:33     1.2
+++ /home/cvs/libidn/java/gnu/inet/encoding/Stringprep.java     2004/12/01 
01:39:01     1.3
@@ -23,6 +23,16 @@
 
 package gnu.inet.encoding;
 
+/**
+ * This class offers static methods for preparing internationalized
+ * strings. It supports the following stringprep profiles:
+ * <ul>
+ * <li>RFC3491 nameprep
+ * <li>RFC3920 XMPP nodeprep and resourceprep
+ * </ul>
+ * Note that this implementation only supports 16-bit Unicode code
+ * points.
+ */
 public class Stringprep
 {
   /**
@@ -31,12 +41,13 @@
    *
    * @param input the name to prep.
    * @return the prepped name.
-   * @throws StringPrepException If the name cannot be prepped with
+   * @throws StringprepException If the name cannot be prepped with
    * this profile.
    * @throws NullPointerException If the name is null.
    */
   public static String nameprep(String input)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     return nameprep(input, false);
   }
@@ -49,12 +60,13 @@
    * @param allowUnassigned true if the name may contain unassigned
    * code points.
    * @return the prepped name.
-   * @throws StringPrepException If the name cannot be prepped with
+   * @throws StringprepException If the name cannot be prepped with
    * this profile.
    * @throws NullPointerException If the name is null.
    */
   public static String nameprep(String input, boolean allowUnassigned)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     if (input == null) {
       throw new NullPointerException();
@@ -123,12 +135,13 @@
    *
    * @param input the node name to prep.
    * @return the prepped node name.
-   * @throws StringPrepException If the node name cannot be prepped
+   * @throws StringprepException If the node name cannot be prepped
    * with this profile.
    * @throws NullPointerException If the node name is null.
    */
   public static String nodeprep(String input)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     return nodeprep(input, false);
   }
@@ -141,12 +154,13 @@
    * @param allowUnassigned true if the node name may contain
    * unassigned code points.
    * @return the prepped node name.
-   * @throws StringPrepException If the node name cannot be prepped
+   * @throws StringprepException If the node name cannot be prepped
    * with this profile.
    * @throws NullPointerException If the node name is null.
    */
   public static String nodeprep(String input, boolean allowUnassigned)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     if (input == null) {
       throw new NullPointerException();
@@ -207,12 +221,13 @@
    *
    * @param input the resource name to prep.
    * @return the prepped node name.
-   * @throws StringPrepException If the resource name cannot be prepped
+   * @throws StringprepException If the resource name cannot be prepped
    * with this profile.
    * @throws NullPointerException If the resource name is null.
    */
   public static String resourceprep(String input)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     return resourceprep(input, false);
   }
@@ -225,12 +240,13 @@
    * @param allowUnassigned true if the resource name may contain
    * unassigned code points.
    * @return the prepped node name.
-   * @throws StringPrepException If the resource name cannot be prepped
+   * @throws StringprepException If the resource name cannot be prepped
    * with this profile.
    * @throws NullPointerException If the resource name is null.
    */
   public static String resourceprep(String input, boolean allowUnassigned)
-    throws StringprepException
+    throws StringprepException,
+          NullPointerException
   {
     if (input == null) {
       throw new NullPointerException();
@@ -405,4 +421,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]