Java XML Hex toHexString(byte[] edid)

Here you can find the source of toHexString(byte[] edid)

Description

Converts a byte array to a hexadecimal string

License

Open Source License

Parameter

Parameter Description
edid The EDID byte array

Return

A string representation of the byte array

Declaration

public static String toHexString(byte[] edid) 

Method Source Code

//package com.java2s;
/**/*from  ww  w .  j  a v  a 2  s. c om*/
 * Oshi (https://github.com/oshi/oshi)
 *
 * Copyright (c) 2010 - 2017 The Oshi Project Team
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Maintainers:
 * dblock[at]dblock[dot]org
 * widdis[at]gmail[dot]com
 * enrico.bianchi[at]gmail[dot]com
 *
 * Contributors:
 * https://github.com/oshi/oshi/graphs/contributors
 */

import javax.xml.bind.DatatypeConverter;

public class Main {
    /**
     * Converts a byte array to a hexadecimal string
     *
     * @param edid
     *            The EDID byte array
     * @return A string representation of the byte array
     */
    public static String toHexString(byte[] edid) {
        return DatatypeConverter.printHexBinary(edid);
    }
}

Related

  1. toHex(byte[] bytes)
  2. toHex(byte[] bytes)
  3. toHex(byte[] donnees)
  4. toHex(String str)
  5. toHexString(byte[] array)
  6. toReadableHexString(byte[] array)