com.soebes.subversion.sapm
Class FileName
java.lang.Object
com.soebes.subversion.sapm.FileName
public class FileName
- extends Object
This class will support you to extract the extension
of
a file, the path
and the
filename incl. the extension
.
We define a extension as one of the following:
- Author:
- Karl Heinz Marbaise
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
ext
private String ext
baseName
private String baseName
path
private String path
nameWithoutExtension
private String nameWithoutExtension
FileName
public FileName(String fileName,
boolean isDir)
FileName
public FileName(String fileName)
init
private void init(String fileName,
boolean isDir)
getExt
public String getExt()
- Returns:
- The extension of a filename.
setExt
public void setExt(String ext)
getName
public String getName()
- Returns:
- The name of a file.
setName
public void setName(String name)
getBaseName
public String getBaseName()
setBaseName
public void setBaseName(String baseName)
getPath
public String getPath()
setPath
public void setPath(String path)
getNameWithoutExtension
public String getNameWithoutExtension()
setNameWithoutExtension
public void setNameWithoutExtension(String nameWithoutExtension)
Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.