Java XML Data Type Converter toString(byte[] edid)

Here you can find the source of toString(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 toString(byte[] edid) 

Method Source Code

//package com.java2s;
/**// w  ww .jav  a 2s . c o m
 * Oshi (https://github.com/dblock/oshi)
 * 
 * Copyright (c) 2010 - 2016 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
 * 
 * Contributors:
 * dblock[at]dblock[dot]org
 * alessandro[at]perucchi[dot]org
 * widdis[at]gmail[dot]com
 * https://github.com/dblock/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 toString(byte[] edid) {
        return DatatypeConverter.printHexBinary(edid);
    }
}

Related

  1. stringToCalendar(String value)
  2. stringToData(String data)
  3. toBinaryKeyId(String keyId)
  4. toPlaintext(String encryptedText, String password)
  5. toRoboCommand(int command)
  6. toString(final Serializable o)
  7. toString(Serializable o)
  8. toTime(String st)
  9. unserializeURLSafe(String string)