Android Zip Entry Get getExtension(final ZipEntry ze)

Here you can find the source of getExtension(final ZipEntry ze)

Description

get Extension

Declaration

public static String getExtension(final ZipEntry ze) 

Method Source Code

//package com.java2s;
import java.util.zip.ZipEntry;

public class Main {
    public static String getExtension(final ZipEntry ze) {
        return getExtension(ze.getName());
    }/*from www  .  ja  v a2 s  . c o m*/

    public static String getExtension(final String fileName) {
        return fileName.substring(fileName.lastIndexOf(".") + 1)
                .toLowerCase();
    }
}

Related

  1. getEntryName(ZipEntry entry)
  2. GetFileList( String zipFileString, boolean bContainFolder, boolean bContainFile)
  3. GetFileList(String zipFileString, boolean bContainFolder, boolean bContainFile)
  4. GetFileList(String zipFileString, boolean bContainFolder, boolean bContainFile)
  5. isIgnore(final ZipEntry ze)