get Zip Entry Name - Android File Input Output

Android examples for File Input Output:Zip File

Description

get Zip Entry Name

Demo Code


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

import java.util.zip.ZipEntry;

public class Main {

    public static String getEntryName(ZipEntry entry)
            throws UnsupportedEncodingException {
        return new String(entry.getName().getBytes("GB2312"), "8859_1");
    }/* w  ww.j a  v a 2s. c o m*/
}

Related Tutorials