cct.tools
Class IOUtils

java.lang.Object
  extended by cct.tools.IOUtils

public class IOUtils
extends java.lang.Object


Constructor Summary
IOUtils()
           
 
Method Summary
static java.lang.String chooseFileDialog(javax.swing.filechooser.FileFilter[] filters, java.awt.Component parent, java.lang.String title, java.lang.String workingDirectory, int mode)
           
static java.net.URL findFragmentSet(java.lang.ClassLoader cl, java.lang.String fragSetName)
           
static java.lang.String getRootDirectory(java.lang.Object obj)
           
static java.net.URL getURL(java.lang.String protocol, java.lang.Object obj, java.lang.String path, java.lang.String file)
           
static java.lang.String loadFileIntoString(java.lang.String filename)
           
static boolean saveStringIntoFile(java.lang.String Text, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

loadFileIntoString

public static java.lang.String loadFileIntoString(java.lang.String filename)

saveStringIntoFile

public static boolean saveStringIntoFile(java.lang.String Text,
                                         java.lang.String fileName)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

findFragmentSet

public static java.net.URL findFragmentSet(java.lang.ClassLoader cl,
                                           java.lang.String fragSetName)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getRootDirectory

public static java.lang.String getRootDirectory(java.lang.Object obj)

getURL

public static java.net.URL getURL(java.lang.String protocol,
                                  java.lang.Object obj,
                                  java.lang.String path,
                                  java.lang.String file)

chooseFileDialog

public static java.lang.String chooseFileDialog(javax.swing.filechooser.FileFilter[] filters,
                                                java.awt.Component parent,
                                                java.lang.String title,
                                                java.lang.String workingDirectory,
                                                int mode)
                                         throws java.lang.Exception
Parameters:
filters - FileFilter[]
title - String
workingDirectory - String
mode - int - JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG
Returns:
String
Throws:
java.lang.Exception