public class FileUtil extends Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
dropExtension(String inputFile)
dropExtension.
|
static String |
dropSourcePathPrefix(String inputFile,
String sourceDirectory)
drop source path prefix between inputFile and sourceDirectory.
|
static void |
resolveRecursive(GenerationConfig config,
List<File> schemaFiles)
resolveRecursive.
|
static String |
swapExtension(String inputFile,
String originalExtension,
String newExtension)
swapExtension.
|
static void |
writeFile(String resourceFile,
String resourceContent)
writeFile.
|
public static String dropSourcePathPrefix(String inputFile, String sourceDirectory)
inputFile
- inputFilesourceDirectory
- sourceDirectorypublic static String swapExtension(String inputFile, String originalExtension, String newExtension)
inputFile
- inputFileoriginalExtension
- originalExtensionnewExtension
- newExtensionpublic static String dropExtension(String inputFile)
inputFile
- inputFilepublic static void writeFile(String resourceFile, String resourceContent)
resourceFile
- resourceFileresourceContent
- resourceContentpublic static void resolveRecursive(GenerationConfig config, List<File> schemaFiles)
config
- GenerationConfigschemaFiles
- List of schemaFilesCopyright © 2017 The Apache Software Foundation. All rights reserved.