jdk/test/com/sun/jndi/ldap/Base64Test.java
changeset 34687 d302ed125dc9
parent 34426 8da29db0cf2e
equal deleted inserted replaced
34686:29ea8310a27a 34687:d302ed125dc9
   162      * Deserialize the decoded Base64 bytes to recover the BinaryRefAddr object.
   162      * Deserialize the decoded Base64 bytes to recover the BinaryRefAddr object.
   163      */
   163      */
   164     private static void deserialize(byte[] bytes) throws Exception {
   164     private static void deserialize(byte[] bytes) throws Exception {
   165 
   165 
   166         //System.out.println("\nSerialized RefAddr object: ");
   166         //System.out.println("\nSerialized RefAddr object: ");
   167         //System.out.println(new sun.misc.HexDumpEncoder().encode(bytes));
   167         //System.out.println(new sun.security.util.HexDumpEncoder().encode(bytes));
   168 
   168 
   169         ObjectInputStream objectStream =
   169         ObjectInputStream objectStream =
   170             new ObjectInputStream(new ByteArrayInputStream(bytes));
   170             new ObjectInputStream(new ByteArrayInputStream(bytes));
   171         Object object = objectStream.readObject();
   171         Object object = objectStream.readObject();
   172         if (!BINARY_REF_ADDR.equals(object)) {
   172         if (!BINARY_REF_ADDR.equals(object)) {