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

String(byte[] value, byte coder) 

Source Link

Usage

From source file:Main.java

public static String getEntryComment(ZipEntry entry) {
    try {//from   ww w  .j  a  va 2  s. c  om
        return new String(entry.getComment().getBytes("GB2312"), "8859_1");
    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
    }
    return null;
}