public class Filename
extends java.lang.Object
Constructor and Description |
---|
Filename(java.lang.String name)
Creates a new Filename that does not refer to a directory.
|
Filename(java.lang.String name,
boolean isDir)
Creates a new Filename object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isDirectory() |
java.lang.String |
toString() |
public Filename(java.lang.String name, boolean isDir)
name
- a valid path or file nameisDir
- this flag indicates if the filename specifies a directorypublic Filename(java.lang.String name)
name
- a valid path or file namepublic java.lang.String getName()
public boolean isDirectory()
public java.lang.String toString()
toString
in class java.lang.Object