Java File Path Create filePathBlackList(String value)

Here you can find the source of filePathBlackList(String value)

Description

file Path Black List

License

Apache License

Declaration

public static String filePathBlackList(String value) 

Method Source Code

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

public class Main {
    public static String filePathBlackList(String value) {
        String returnValue = value;
        if (returnValue == null || returnValue.trim().equals("")) {
            return "";
        }//  w  ww .  j a  v  a 2s.c o  m

        returnValue = returnValue.replaceAll("\\.\\./", ""); // ../
        returnValue = returnValue.replaceAll("\\.\\.\\\\", ""); // ..\

        return returnValue;
    }
}

Related

  1. buildPathString(String[] folders, boolean addDefaultValues)
  2. buildPathToApiTargetFolder(String apiPackageName, String path)
  3. filePath(String compchartimage)
  4. filePath(String dirPath, String fileName)
  5. filePath2PackageName(String entryName)
  6. filePathCheck(final String filePath)
  7. filePathGen(String oldPath, String newExtension, String newFileName)
  8. filePathJava(String path)