consciouscode.util
Class Files

java.lang.Object
  extended by consciouscode.util.Files

public class Files
extends Object

Utility methods for working with Files.


Constructor Summary
Files()
           
 
Method Summary
static File[] forPathList(String pathList)
          Splits a path-list String into individual File parts, using the File.pathSeparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Files

public Files()
Method Detail

forPathList

public static File[] forPathList(String pathList)
Splits a path-list String into individual File parts, using the File.pathSeparator.

There is currently no provision for escaping the separator character, so this method won't work properly if that character is part of one of the file names.

Parameters:
pathList - is a sequence of paths, delimited by File.pathSeparator.
Returns:
a new array of Files, not null but perhaps empty.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.