本文整理匯總了Java中org.apache.commons.io.FilenameUtils.separatorsToUnix方法的典型用法代碼示例。如果您正苦於以下問題:Java FilenameUtils.separatorsToUnix方法的具體用法?Java FilenameUtils.separatorsToUnix怎麽用?Java FilenameUtils.separatorsToUnix使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.commons.io.FilenameUtils
的用法示例。
在下文中一共展示了FilenameUtils.separatorsToUnix方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createJarEntry
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
private JarEntry createJarEntry(Path source) throws IOException {
String entryName = FilenameUtils.separatorsToUnix(mtaAssemblyDir.relativize(source).toString());
if (Files.isDirectory(source) && !entryName.endsWith(Constants.UNIX_PATH_SEPARATOR)) {
entryName += Constants.UNIX_PATH_SEPARATOR;
}
JarEntry entry = new JarEntry(entryName);
entry.setTime(Files.getLastModifiedTime(source).toMillis());
return entry;
}
示例2: SetPepXMLPath
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public void SetPepXMLPath() {
iProphPepXMLs = new ArrayList<String>();
String PepXMLPath1 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ1Name() + ".pep.xml");
String PepXMLPath2 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ2Name() + ".pep.xml");
String PepXMLPath3 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ3Name() + ".pep.xml");
iProphPepXMLs.add(PepXMLPath1);
iProphPepXMLs.add(PepXMLPath2);
iProphPepXMLs.add(PepXMLPath3);
}
示例3: SetResultFilePath
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
@Override
public void SetResultFilePath(String mzXMLfile) {
SpectrumPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getName(mzXMLfile));
PepXMLPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.pep.xml");
InteractPepXMLPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + "interact-" + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.pep.xml");
ProtXMLPath = InteractPepXMLPath.replace(".pep.xml", ".prot.xml");
parameterPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.param");
RawSearchResult = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem");
}
示例4: normalizePath
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public static String normalizePath(String path) {
return FilenameUtils.separatorsToUnix(path);
}
示例5: method
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public void method() {
FilenameUtils.separatorsToUnix("my/unix/filename");
ToStringBuilder.reflectionToString(new Person("name"));
new GrowthList();
new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api
}
示例6: getPathName
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
private String getPathName(Path parentFolder, Path fileToAppend) {
Path relativePath = parentFolder.relativize(fileToAppend);
return FilenameUtils.separatorsToUnix(relativePath.toString());
}
示例7: GetiProphExtPepxml
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public String GetiProphExtPepxml(String tag) {
return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + FilenameUtils.getBaseName(Filename) + "_" + tag + ".iproph.pep.xml");
}
示例8: GetQ1Pepxml
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public String GetQ1Pepxml() {
return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ1Name()) + ".pep.xml");
}
示例9: GetQ2Pepxml
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public String GetQ2Pepxml() {
return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ2Name()) + ".pep.xml");
}
示例10: GetQ3Pepxml
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public String GetQ3Pepxml() {
return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ3Name()) + ".pep.xml");
}
示例11: GetDefaultPepXML
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public String GetDefaultPepXML() {
return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(ScanCollectionName) + "interact-" + FilenameUtils.getBaseName(ScanCollectionName) + ".pep.xml");
}
示例12: SetCombineFileName
import org.apache.commons.io.FilenameUtils; //導入方法依賴的package包/類
public void SetCombineFileName(String filename, String tag) {
CombinedPepXML = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(filename) + "interact-" + FilenameUtils.getBaseName(filename) + tag + ".tandem.combine.pep.xml");
CombinedProt = FilenameUtils.getFullPath(filename) + FilenameUtils.getBaseName(filename) + tag + ".tandem.Qcombine.prot.xml";
}