get Zip Entry Comment - Android File Input Output

Android examples for File Input Output:Zip File

Description

get Zip Entry Comment

Demo Code


//package com.java2s;
import java.io.*;

import java.util.zip.ZipEntry;

public class Main {

    public static String getEntryComment(ZipEntry entry)
            throws UnsupportedEncodingException {
        return new String(entry.getComment().getBytes("GB2312"), "8859_1");
    }/*from   w  w w.  ja  v a2  s . c om*/
}

Related Tutorials