de.bsd.x2svg.util
Class SantasLittleHelper

java.lang.Object
  extended by de.bsd.x2svg.util.SantasLittleHelper

public class SantasLittleHelper
extends java.lang.Object

Class with helper utils

Author:
hwr@pilhuhn.de

Constructor Summary
SantasLittleHelper()
           
 
Method Summary
static java.lang.String attachSuffixToFileName(java.lang.String fileName, java.lang.String suffix)
          Return a file name with appended or changed suffix.
static java.lang.String getFileNameFromPath(java.lang.String path)
          Return the filename part of the passed file system path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SantasLittleHelper

public SantasLittleHelper()
Method Detail

attachSuffixToFileName

public static java.lang.String attachSuffixToFileName(java.lang.String fileName,
                                                      java.lang.String suffix)
Return a file name with appended or changed suffix.

Parameters:
fileName - the original file name
suffix - the suffix *without* the . (i.E. 'png' and not '.png')
Returns:
a new file name with the appended suffix

getFileNameFromPath

public static java.lang.String getFileNameFromPath(java.lang.String path)
Return the filename part of the passed file system path.

Parameters:
path - Path to a file on the file system.
Returns:
the filename part of the passed path.


x2svg version 1.2.1