org.stathissideris.ascii2image.core
Class FileUtils

java.lang.Object
  extended by org.stathissideris.ascii2image.core.FileUtils

public class FileUtils
extends Object

Author:
Efstathios Sideris

Constructor Summary
FileUtils()
           
 
Method Summary
static String getBaseName(String pathName)
           
static String getExtension(String pathName)
           
static void main(String[] args)
           
static String makeAlternativePathname(String pathName)
           
static String makeTargetPathname(String sourcePathname, String extension, boolean overwrite)
           
static String makeTargetPathname(String sourcePathname, String extension, String postfix, boolean overwrite)
           
static String readFile(File file)
           
static String readFile(File file, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

makeTargetPathname

public static String makeTargetPathname(String sourcePathname,
                                        String extension,
                                        boolean overwrite)

makeTargetPathname

public static String makeTargetPathname(String sourcePathname,
                                        String extension,
                                        String postfix,
                                        boolean overwrite)

makeAlternativePathname

public static String makeAlternativePathname(String pathName)

getExtension

public static String getExtension(String pathName)

getBaseName

public static String getBaseName(String pathName)

readFile

public static String readFile(File file)
                       throws IOException
Throws:
IOException

readFile

public static String readFile(File file,
                              String encoding)
                       throws IOException
Throws:
IOException

main

public static void main(String[] args)


Copyright © 2011. All Rights Reserved.