Java Path File Extention nio getTransformedOutputPath(Path input, String compressExtension, String outputDir)

Here you can find the source of getTransformedOutputPath(Path input, String compressExtension, String outputDir)

Description

get Transformed Output Path

License

Apache License

Declaration

public static String getTransformedOutputPath(Path input,
            String compressExtension, String outputDir) 

Method Source Code

//package com.java2s;
/*// w w w .  jav  a 2s  . c  o  m
 * Copyright 2015 EMBL - European Bioinformatics Institute
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
    public static String getTransformedOutputPath(Path input,
            String compressExtension, String outputDir) {
        return Paths.get(outputDir).resolve(input) + ".variants.json"
                + compressExtension;
    }
}

Related

  1. getFilesList(Path directory, Set extensions)
  2. getFullNameWithoutExtension(Path f)
  3. getLeafName(Path path, boolean includeExtension)
  4. getListOfFilesByExtension(Path directoryPath, Set extensions)
  5. getPath(String outputDir, String qualifiedFilename, String fileextension)
  6. hasExtensionIgnoreCase(Path path, String ext)
  7. insertSuffixBeforeExtension(String path, String suffix)
  8. listFile(final String path, final String extension)
  9. listFiles(final Path path, final String... extensions)