Example usage for java.lang String String

List of usage examples for java.lang String String

Introduction

In this page you can find the example usage for java.lang String String.

Prototype

public String(StringBuilder builder) 

Source Link

Document

Allocates a new string that contains the sequence of characters currently contained in the string builder argument.

Usage

From source file:Main.java

public static String decode(String str) {
    try {/*from w w w  .j  a  v a2s .  com*/
        byte[] result = Base64.decode(str, Base64.DEFAULT);
        return new String(result);
    } catch (Exception e) {
        return str;
    }
}