|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcn.dreampie.FileUtilities
public class FileUtilities
Copyright 2011 Mark Derricutt.
Contributing authors: Daniel Bower 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. Utilities for working with Files and FileSets
| 构造方法摘要 | |
|---|---|
FileUtilities()
|
|
| 方法摘要 | |
|---|---|
static List<File> |
directoryToFileList(File sourceDirectory)
|
static List<File> |
directoryToFileList(String sourceDirectory)
Convenience Method for turn a string path containing .js files into a list of files to be processed |
static List<File> |
fileSetToFileList(org.apache.maven.model.FileSet fileset)
Convenience Method for turning a FileSet into a list of files to be processed |
static List<File> |
fileToFileList(String sourceFile)
Convenience Method for turning a string path for a single file into a list of files to be processed |
static String |
getCommaSeparatedList(List<String> list)
Turn a list of Strings into a concatenated string of filenames |
static String |
getCommaSeparatedListOfFileNames(List<File> fileList)
Turn a list of files into a comma separated list of filenames |
static List<File> |
getFilesFromFileSet(org.apache.maven.model.FileSet fileSet)
|
static void |
main(String[] args)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FileUtilities()
| 方法详细信息 |
|---|
public static List<File> getFilesFromFileSet(org.apache.maven.model.FileSet fileSet)
throws IOException
IOExceptionpublic static String getCommaSeparatedList(List<String> list)
public static String getCommaSeparatedListOfFileNames(List<File> fileList)
public static List<File> directoryToFileList(String sourceDirectory)
sourceDirectory - public static List<File> directoryToFileList(File sourceDirectory)
public static List<File> fileToFileList(String sourceFile)
sourceFile -
public static List<File> fileSetToFileList(org.apache.maven.model.FileSet fileset)
throws IOException
IOExceptionpublic static void main(String[] args)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||