コード例 #1
0
ファイル: JMFile.java プロジェクト: JM-Lab/utils-java8
 /**
  * Gets the prefix.
  *
  * @param file the file
  * @return the prefix
  */
 public static String getPrefix(File file) {
   return JMString.getPrefixOfFileName(file.getName());
 }
コード例 #2
0
ファイル: JMFile.java プロジェクト: JM-Lab/utils-java8
 /**
  * Gets the prefix suffix.
  *
  * @param file the file
  * @return the prefix suffix
  */
 public static String[] getPrefixSuffix(File file) {
   return JMString.splitFileNameIntoPreSuffix(file.getName());
 }
コード例 #3
0
ファイル: JMFile.java プロジェクト: JM-Lab/utils-java8
 /**
  * Gets the extension.
  *
  * @param file the file
  * @return the extension
  */
 public static String getExtension(File file) {
   return JMString.getExtension(file.getName());
 }