Java Package Convert To packageToDir(String packages)

Here you can find the source of packageToDir(String packages)

Description

package To Dir

License

Apache License

Declaration

public static String packageToDir(String packages) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String packageToDir(String packages) {
        String dir = packages;//from w  w  w . j  av  a  2 s .  com
        if (packages != null && packages.length() > 1) {
            dir = packages.replaceAll("[.]", "/");
        }
        return dir;
    }
}

Related

  1. packageToDirectory(String sDestDir, String sPackage)
  2. PackageToInt(char pack)
  3. packageToPath(Class objClass)
  4. packageToPath(final String packageName)