mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/SocketMessageListener.java
private String hexDump(final byte[] array)
    {
        if (array.length == 0)
        {
            return "(empty array)";
        }
        
        final ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        try
        {
            HexDump.dump(array, 0, outStream, 0);
        }
        catch (final IOException e) 
        {
            throw new IllegalStateException(e);
        }
        
        return new String(outStream.toByteArray()).replace("%", "%%");
    }
/**
     * Create a string containing the hex dump of a given byte array.
     * 
     * @param array
     *      array of bytes to dump
     * @return
     *      string representation of the binary data
     */
Create a string containing the hex dump of a given byte array.

@param array
array of bytes to dump
@return
string representation of the binary data
Create a string containing the hex dump of a given byte array . @param array array of bytes to dump @return string representation of the binary data
private String hexDump(final byte[] array)
    {
        if (array.length == 0)
        {
            return "(empty array)";
        }
        final ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        try
        {
            HexDump.dump(array, 0, outStream, 0);
        }
        catch (final IOException e) 
        {
            throw new IllegalStateException(e);
        }
        return new String(outStream.toByteArray()).replace("%", "%%");
    }
private String hexDump ( final byte [ ] array ) { if ( array . length == 0 ) { return "(empty array)" ; } final ByteArrayOutputStream outStream = new ByteArrayOutputStream ( ) ; try { HexDump . dump ( array , 0 , outStream , 0 ) ; } catch ( final IOException e ) { throw new IllegalStateException ( e ) ; } return new String ( outStream . toByteArray ( ) ) . replace ( "%" , "%%" ) ; }
Create a string containing the hex dump of a given byte array.
Create a string containing the hex dump of a given byte array .