cn.dreampie
类 FileUtilities

java.lang.Object
  继承者 cn.dreampie.FileUtilities

public class FileUtilities
extends Object

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
 

构造方法详细信息

FileUtilities

public FileUtilities()
方法详细信息

getFilesFromFileSet

public static List<File> getFilesFromFileSet(org.apache.maven.model.FileSet fileSet)
                                      throws IOException
抛出:
IOException

getCommaSeparatedList

public static String getCommaSeparatedList(List<String> list)
Turn a list of Strings into a concatenated string of filenames


getCommaSeparatedListOfFileNames

public static String getCommaSeparatedListOfFileNames(List<File> fileList)
Turn a list of files into a comma separated list of filenames


directoryToFileList

public static List<File> directoryToFileList(String sourceDirectory)
Convenience Method for turn a string path containing .js files into a list of files to be processed

参数:
sourceDirectory -

directoryToFileList

public static List<File> directoryToFileList(File sourceDirectory)

fileToFileList

public 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

参数:
sourceFile -

fileSetToFileList

public static List<File> fileSetToFileList(org.apache.maven.model.FileSet fileset)
                                    throws IOException
Convenience Method for turning a FileSet into a list of files to be processed

抛出:
IOException

main

public static void main(String[] args)


Copyright © 2014. All rights reserved.