luxor.util
Class FileUtils

java.lang.Object
  |
  +--luxor.util.FileUtils

public class FileUtils
extends java.lang.Object


Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String getBaseName(java.lang.String name)
          Strips path and extension from a filename example: lib/venus.jnlp -> venus
static java.lang.String getFileAsString(java.io.File file)
           
static java.lang.String getFileExtension(java.io.File file, boolean keepDot)
           
static java.lang.String getFileExtension(java.lang.String filename, boolean keepDot)
           
static java.lang.String getInputStreamAsString(java.io.InputStream inStream)
           
static void saveStreamToFile(java.io.InputStream in, java.io.File outFile)
           
 
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

getBaseName

public static java.lang.String getBaseName(java.lang.String name)
Strips path and extension from a filename example: lib/venus.jnlp -> venus


getFileAsString

public static java.lang.String getFileAsString(java.io.File file)
                                        throws java.io.IOException
java.io.IOException

getFileExtension

public static java.lang.String getFileExtension(java.lang.String filename,
                                                boolean keepDot)

getFileExtension

public static java.lang.String getFileExtension(java.io.File file,
                                                boolean keepDot)

getInputStreamAsString

public static java.lang.String getInputStreamAsString(java.io.InputStream inStream)
                                               throws java.io.IOException
java.io.IOException

saveStreamToFile

public static void saveStreamToFile(java.io.InputStream in,
                                    java.io.File outFile)
                             throws java.io.IOException
java.io.IOException


Copyright 2001, 2002 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo