Adds back Util.toHexString() and Util.hex4() as deprecated methods.
They were moved to the Utility class.  This gives 3rd party linker and
generator authors a chance to migrate their code.

Review at http://gwt-code-reviews.appspot.com/1420802


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10010 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/util/Util.java b/dev/core/src/com/google/gwt/dev/util/Util.java
index 85986c3..5a19a38 100644
--- a/dev/core/src/com/google/gwt/dev/util/Util.java
+++ b/dev/core/src/com/google/gwt/dev/util/Util.java
@@ -140,7 +140,7 @@
   public static String computeStrongName(byte[] content) {
     return computeStrongName(new byte[][] {content});
   }
-
+  
   /**
    * Computes the MD5 hash of the specified byte arrays.
    *
@@ -174,7 +174,7 @@
     }
     return Utility.toHexString(md5.digest());
   }
-
+  
   public static void copy(InputStream is, OutputStream os) throws IOException {
     try {
       copyNoClose(is, os);
@@ -435,6 +435,16 @@
   }
 
   /**
+   * A 4-digit hex result.
+   * 
+   * @deprecated use {@link Utility#hex4(char, StringBuffer)} instead.
+   */
+  @Deprecated
+  public static void hex4(char c, StringBuffer sb) {
+    Utility.hex4(c, sb);
+  }
+
+  /**
    * This method invokes an inaccessible method in another class.
    *
    * @param targetClass the class owning the method
@@ -481,22 +491,6 @@
     return true;
   }
 
-  // /**
-  // * Reads the file as an array of strings.
-  // */
-  // public static String[] readURLAsStrings(URL url) {
-  // ArrayList lines = new ArrayList();
-  // String contents = readURLAsString(url);
-  // if (contents != null) {
-  // StringReader sr = new StringReader(contents);
-  // BufferedReader br = new BufferedReader(sr);
-  // String line;
-  // while (null != (line = readNextLine(br)))
-  // lines.add(line);
-  // }
-  // return (String[]) lines.toArray(new String[lines.size()]);
-  // }
-
   /**
    * Attempts to make a path relative to a particular directory.
    *
@@ -548,6 +542,22 @@
     return relativeFile;
   }
 
+  // /**
+  // * Reads the file as an array of strings.
+  // */
+  // public static String[] readURLAsStrings(URL url) {
+  // ArrayList lines = new ArrayList();
+  // String contents = readURLAsString(url);
+  // if (contents != null) {
+  // StringReader sr = new StringReader(contents);
+  // BufferedReader br = new BufferedReader(sr);
+  // String line;
+  // while (null != (line = readNextLine(br)))
+  // lines.add(line);
+  // }
+  // return (String[]) lines.toArray(new String[lines.size()]);
+  // }
+
   public static String makeRelativePath(File from, File to) {
     File f = makeRelativeFile(from, to);
     return (f != null ? f.getPath() : null);
@@ -897,6 +907,20 @@
   }
 
   /**
+   * Returns a string representation of the byte array as a series of
+   * hexadecimal characters.
+   * 
+   * @param bytes byte array to convert
+   * @return a string representation of the byte array as a series of
+   *         hexadecimal characters
+   * @deprecated use {@link Utility#toHexString(byte[])} instead. 
+   */
+  @Deprecated
+  public static String toHexString(byte[] bytes) {
+    return Utility.toHexString(bytes);
+  }
+
+  /**
    * Returns a String representing the character content of the bytes; the bytes
    * must be encoded using the compiler's default encoding.
    */