Here you can find the source of decodeJavaOpts(String encodedJavaOpts)
public static String decodeJavaOpts(String encodedJavaOpts)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.nio.charset.Charset; import javax.xml.bind.DatatypeConverter; public class Main { /**//from w w w .j a va2 s .com * Decode the JVM options * <br> 1. strip \" at the start and at the end * <br> 2. replace "&equals;" with "=" * <br> 3. Revert from Base64 format * * @return decoded string */ public static String decodeJavaOpts(String encodedJavaOpts) { String javaOptsBase64 = encodedJavaOpts.replaceAll("^\"+", "").replaceAll("\\s+$", "").replace("=", "="); return new String(DatatypeConverter.parseBase64Binary(javaOptsBase64), Charset.forName("UTF-8")); } }