Java XML Data Type Converter decode(final CharSequence _text)

Here you can find the source of decode(final CharSequence _text)

Description

Decodes given _text .

License

Open Source License

Parameter

Parameter Description
_text text to decode

Return

decoded bytes

Declaration

public static byte[] decode(final CharSequence _text) 

Method Source Code


//package com.java2s;
/*//from   ww  w  .  jav  a 2 s.co  m
 *  This file is part of MxUpdate <http://www.mxupdate.org>.
 *
 *  MxUpdate is a deployment tool for a PLM platform to handle
 *  administration objects as single update files (configuration item).
 *
 *  Copyright (C) 2008-2016 The MxUpdate Team - All Rights Reserved
 *
 *  You may use, distribute and modify MxUpdate under the terms of the
 *  MxUpdate license. You should have received a copy of the MxUpdate
 *  license with this file. If not, please write to <info@mxupdate.org>,
 *  or visit <www.mxupdate.org>.
 *
 */

import javax.xml.bind.DatatypeConverter;

public class Main {
    /**
     * Decodes given {@code _text}.
     *
     * @param _text     text to decode
     * @return decoded bytes
     */
    public static byte[] decode(final CharSequence _text) {
        return DatatypeConverter.parseBase64Binary(_text.toString());
    }
}

Related

  1. convertBpmnVariableValueToXslParam(final Object bpmnVariableValue)
  2. convertToFourBytes(int numberToConvert)
  3. convertToPEM(PublicKey key)
  4. convertToTwoBytes(int numberToConvert)
  5. createBasicAuthenticationProperty(final String username, final String password)
  6. decode(String auth)
  7. decode(String source)
  8. decode(String string, boolean decode)
  9. decodeBasicAuth(String auth)