Method Summary |
|
public static void | backupFile(File baseFile, File backupFile) Backup a specific file to another file using compression. |
public static void | copyReader(Reader in, Writer out) Utility method from moving an inputstream to an outputstream. |
public static void | copySelectedCellsToClipBoard(JTable table) Creates a tab delimited text for selected cells of the given JTable. |
public static void | copyStream(InputStream in, OutputStream out) Utility method from moving an inputstream to an outputstream. |
public static String | createSafeFilename(String fileName) Creates a generally safe file name.
This method will hopefully prevent silly errors that can occur by attempting to create a file with illegal
characters. |
public static XMLReader | createXMLReader(boolean namespaceAware, boolean validating) Helper method for creating an XML reader for parsing XML documents.
Parameters: namespaceAware - sets namespace aware property in the XMLReader. Parameters: validating - set the validating property with the XMLReader. |
public static boolean | deleteDirectory(File directory) Deletes a directory including all childern.
One small problem that is easily overlooked in Java is that you cannot delete a non-empty directory.
This method will recursivlely scan the directory for other directories and files and proceed to delete them. |
public static int | getCommandMask() |
public static boolean | isThreadInterrupted() Helper method for checking if the current thread is interrupted without resetting the interrupted state. |
public static void | restoreSystemErr() Utilitiy method to restore System.err to the default FileDescriptor. |
public static void | restoreSystemOut() Utilitiy method to restore System.out to the default FileDescriptor. |
public static void | sortCollection(Collection<Object> collection) Utility method for sorting collections. |
public static void | sortCollection(Collection<Object> collection, Comparator<Object> sorter) Utility method for sorting collections.
This will sort a collection based on the comparator given. |
public static void | wrapThrowable(Throwable sourceError, Throwable wrappedError) Wraps an exception including the stack trace elements. |