A C D E F G H I K L M O P R S T U W Z

A

addToClasspath(String) - Static method in class org.fuin.utils4j.Utils4J
Adds an URL to the classpath.
addToClasspath(URL) - Static method in class org.fuin.utils4j.Utils4J
Adds an URL to the classpath.
available() - Method in class org.fuin.utils4j.RandomAccessFileInputStream

C

cancel() - Method in interface org.fuin.utils4j.Cancelable
Try to cancel the unit of work.
cancel() - Method in class org.fuin.utils4j.CancelableVolatile
Try to cancel the unit of work.
Cancelable - Interface in org.fuin.utils4j
A unit of work that is cancelable.
CancelableVolatile - Class in org.fuin.utils4j
A simple Cancelable implementation that can be used to synchronize a cancel request between threads without locking.
CancelableVolatile() - Constructor for class org.fuin.utils4j.CancelableVolatile
 
checkNotEmpty(String, String) - Static method in class org.fuin.utils4j.Utils4J
Checks if a variable is not empty and throws an IllegalNullArgumentException if this rule is violated.
checkNotNull(String, Object) - Static method in class org.fuin.utils4j.Utils4J
Checks if a variable is not null and throws an IllegalNullArgumentException if this rule is violated.
checkValidDir(File) - Static method in class org.fuin.utils4j.Utils4J
Check if the argument is an existing directory.
checkValidFile(File) - Static method in class org.fuin.utils4j.Utils4J
Check if the argument is an existing file.
childrenNamesSpi() - Method in class org.fuin.utils4j.PropertiesFilePreferences
childSpi(String) - Method in class org.fuin.utils4j.PropertiesFilePreferences
clear() - Method in class org.fuin.utils4j.PropertiesFile
Discards all properties in memory (not on disk!).
close() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
close() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Closes the underlying file and sets the length to the current position.
compareTo(Object) - Method in class org.fuin.utils4j.Property
concatPathAndFilename(String, String, String) - Static method in class org.fuin.utils4j.Utils4J
Concatenate a path and a filename taking null and empty string values into account.
containsURL(URL[], URL) - Static method in class org.fuin.utils4j.Utils4J
Checks if the array or URLs contains the given URL.
createHash(File) - Static method in class org.fuin.utils4j.Utils4J
Deprecated. Use createHashMD5 instead.
createHash(File, String) - Static method in class org.fuin.utils4j.Utils4J
Creates a HEX encoded hash from a file.
createHash(InputStream, String) - Static method in class org.fuin.utils4j.Utils4J
Creates a HEX encoded hash from a stream.
createHashMD5(File) - Static method in class org.fuin.utils4j.Utils4J
Creates an MD5 hash from a file.
createInstance(String) - Static method in class org.fuin.utils4j.Utils4J
Create an instance with Class.forName(..) and wrap all exceptions into RuntimeExceptions.
createUrl(URL, String, String) - Static method in class org.fuin.utils4j.Utils4J
Creates an URL based on a directory a relative path and a filename.
createWindowsDesktopUrlLink(String, String, File, Integer, Integer, File, Integer, String, boolean, Date) - Static method in class org.fuin.utils4j.Utils4J
Creates an URL Link on the Windows Desktop.
createWindowsDesktopUrlLinkContent(String, String, File, Integer, Integer, File, Integer, Date) - Static method in class org.fuin.utils4j.Utils4J
Creates the content of an URL Link file (.url) on the Windows Desktop.For a description see http://www.cyanwerks.com/file-format-url.html.

D

dateToFileTime(Date) - Static method in class org.fuin.utils4j.Utils4J
Converts Date into a Windows FILETIME.
delete() - Method in class org.fuin.utils4j.PropertiesFile
Tries to delete the underlying file.

E

encodeHex(byte[]) - Static method in class org.fuin.utils4j.Utils4J
Converts an array of bytes into an array of characters representing the hexidecimal values of each byte in order.
equals(Object) - Method in class org.fuin.utils4j.Property
exists() - Method in class org.fuin.utils4j.PropertiesFile
Determines if the underlying file already exists.

F

FILENAME - Static variable in class org.fuin.utils4j.PropertiesFilePreferences
Filename the properties of this node are stored under.
fileSize() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
Returns the size of the underlying file.
flush() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Calls sync() of the underlying file's descriptor.
flushSpi() - Method in class org.fuin.utils4j.PropertiesFilePreferences

G

get(String) - Method in class org.fuin.utils4j.PropertiesFile
Returns a value for a given key.
getArgument() - Method in exception org.fuin.utils4j.IllegalNullArgumentException
Returns the name of the argument that caused the exception.
getChannel() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
Returns the channel used by the random access file.
getChannel() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Returns the channel used by the random access file.
getCounter() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Returns the number of bytes written since start or since last call to resetCounter().
getEncoding() - Method in class org.fuin.utils4j.PropertiesFile
Returns the encoding of the file.
getFile() - Method in exception org.fuin.utils4j.MergeException
File that caused the exception.
getFile() - Method in class org.fuin.utils4j.PropertiesFile
Returns the underlying file.
getFileProp() - Method in class org.fuin.utils4j.MergeException.Problem
Returns the property from disk.
getInitialValue() - Method in class org.fuin.utils4j.Property
Returns the initial value of the property.
getKey() - Method in class org.fuin.utils4j.Property
Returns the key of the property.
getKeyArray() - Method in class org.fuin.utils4j.PropertiesFile
Returns an array of all known keys including the deleted ones.
getKeyList() - Method in class org.fuin.utils4j.PropertiesFile
Returns a list of all known keys including the deleted ones.
getPackagePath(Class) - Static method in class org.fuin.utils4j.Utils4J
Returns the package path of a class.
getProblems() - Method in exception org.fuin.utils4j.MergeException
Returns an array with the problems.
getProp() - Method in class org.fuin.utils4j.MergeException.Problem
Returns the property from memory.
getRelativePath(File, File) - Static method in class org.fuin.utils4j.Utils4J
Returns a relative path based on a base directory.
getResource(Class, String) - Static method in class org.fuin.utils4j.Utils4J
Get the path to a resource located in the same package as a given class.
getSpi(String) - Method in class org.fuin.utils4j.PropertiesFilePreferences
getStatus(String) - Method in class org.fuin.utils4j.PropertiesFile
Returns a status text for a given key.
getStatus() - Method in class org.fuin.utils4j.Property
Returns a 3-code status text.
getTempDir() - Static method in class org.fuin.utils4j.Utils4J
Returns the temporary directory and checks if it is valid and exists.
getText() - Method in class org.fuin.utils4j.MergeException.Problem
Returns the message describing the problem.
getTryLockMax() - Method in class org.fuin.utils4j.PropertiesFile
Returns the number of tries to lock before throwing an exception.
getTryWaitMillis() - Method in class org.fuin.utils4j.PropertiesFile
Returns the milliseconds to sleep between retries.
getUserHomeDir() - Static method in class org.fuin.utils4j.Utils4J
Returns the user home directory and checks if it is valid and exists.
getValue() - Method in class org.fuin.utils4j.Property
Returns the current value of the property.

H

hasChanged() - Method in class org.fuin.utils4j.Property
Returns if the value has changed since construction.
hashCode() - Method in class org.fuin.utils4j.Property

I

IllegalNullArgumentException - Exception in org.fuin.utils4j
Thrown to indicate that a method has been passed an illegal null argument.
IllegalNullArgumentException(String) - Constructor for exception org.fuin.utils4j.IllegalNullArgumentException
Constructor with argument name.
invoke(Object, String, Class[], Object[]) - Static method in class org.fuin.utils4j.Utils4J
Calls a method with reflection and maps all errors into one exception.
InvokeMethodFailedException - Exception in org.fuin.utils4j
Calling a method with reflection failed.
InvokeMethodFailedException(String) - Constructor for exception org.fuin.utils4j.InvokeMethodFailedException
Constructor with error message.
InvokeMethodFailedException(String, Throwable) - Constructor for exception org.fuin.utils4j.InvokeMethodFailedException
Constructor with error message and cause.
isCanceled() - Method in interface org.fuin.utils4j.Cancelable
Returns if the unit of work was canceled.
isCanceled() - Method in class org.fuin.utils4j.CancelableVolatile
Returns if the unit of work was canceled.
isDeleted() - Method in class org.fuin.utils4j.Property
Returns if the value has been deleted since construction.
isLoaded() - Method in class org.fuin.utils4j.PropertiesFile
Returns if the underlying file has ever been read.
isNew() - Method in class org.fuin.utils4j.Property
Returns if the value has been created since construction.
isRemoved(String) - Method in class org.fuin.utils4j.PropertiesFile
Returns if a property has been deleted.

K

keyIterator() - Method in class org.fuin.utils4j.PropertiesFile
Returns a key iterator.
keysSpi() - Method in class org.fuin.utils4j.PropertiesFilePreferences

L

load() - Method in class org.fuin.utils4j.PropertiesFile
Loads or reloads the content of the underlying file.
loadProperties(Class, String) - Static method in class org.fuin.utils4j.Utils4J
Load properties from classpath.
loadProperties(File) - Static method in class org.fuin.utils4j.Utils4J
Load properties from a file.
loadProperties(URL, String) - Static method in class org.fuin.utils4j.Utils4J
Load a file from an directory.
loadProperties(URL) - Static method in class org.fuin.utils4j.Utils4J
Load a file from an URL.
loadProperties(String, String) - Static method in class org.fuin.utils4j.Utils4J
Load a file from an directory.
lock(int, long) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
Lock the file.
lock(int, long) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Lock the file.
LockingFailedException - Exception in org.fuin.utils4j
Getting a lock failed.
LockingFailedException(String) - Constructor for exception org.fuin.utils4j.LockingFailedException
Constructor with message.
LockingFailedException(String, Throwable) - Constructor for exception org.fuin.utils4j.LockingFailedException
Constructor with message.
lockRandomAccessFile(RandomAccessFile, int, long) - Static method in class org.fuin.utils4j.Utils4J
Lock the file.

M

mark(int) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
markSupported() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
MergeException - Exception in org.fuin.utils4j
One or more attempts to merge properties failed.
MergeException(File, MergeException.Problem[]) - Constructor for exception org.fuin.utils4j.MergeException
Constructor with file and problem list.
MergeException.Problem - Class in org.fuin.utils4j
Error while merging a property.
MergeException.Problem(String, Property, Property) - Constructor for class org.fuin.utils4j.MergeException.Problem
Constructor with message and properties.

O

org.fuin.utils4j - package org.fuin.utils4j
Basic Java utilities.

P

PropertiesFile - Class in org.fuin.utils4j
A properties file that is capable of merging concurrent changes made by another JVM or another process.
PropertiesFile(File) - Constructor for class org.fuin.utils4j.PropertiesFile
Constructor with file.
PropertiesFile(File, String) - Constructor for class org.fuin.utils4j.PropertiesFile
Constructor with file and encoding.
PropertiesFilePreferences - Class in org.fuin.utils4j
A directory and PropertiesFile based Preferences API implementation.
PropertiesFilePreferences(File) - Constructor for class org.fuin.utils4j.PropertiesFilePreferences
Constructor with directory.
PropertiesFilePreferences(PropertiesFilePreferences, File) - Constructor for class org.fuin.utils4j.PropertiesFilePreferences
Constructor with parent node and directory.
PropertiesFilePreferencesFactory - Class in org.fuin.utils4j
A factory for creating root nodes using the PropertiesFilePreferences implementation.
PropertiesFilePreferencesFactory() - Constructor for class org.fuin.utils4j.PropertiesFilePreferencesFactory
Default constructor.
PropertiesFilePreferencesFactory(String, String) - Constructor for class org.fuin.utils4j.PropertiesFilePreferencesFactory
Constructor with path and filenames of the system and user root directories.
Property - Class in org.fuin.utils4j
A key value pair that maintains an additional change state.
Property(String, String, String) - Constructor for class org.fuin.utils4j.Property
Constructor with all values.
put(String, String) - Method in class org.fuin.utils4j.PropertiesFile
Set a value for a property.
putSpi(String, String) - Method in class org.fuin.utils4j.PropertiesFilePreferences

R

RandomAccessFileInputStream - Class in org.fuin.utils4j
A random access based file input stream.
RandomAccessFileInputStream(File, String) - Constructor for class org.fuin.utils4j.RandomAccessFileInputStream
Constructor with file.
RandomAccessFileInputStream(RandomAccessFileInputStream) - Constructor for class org.fuin.utils4j.RandomAccessFileInputStream
Constructor with input stream.
RandomAccessFileInputStream(RandomAccessFileOutputStream) - Constructor for class org.fuin.utils4j.RandomAccessFileInputStream
Constructor with output stream.
RandomAccessFileOutputStream - Class in org.fuin.utils4j
A random access based file output stream.
RandomAccessFileOutputStream(File, String) - Constructor for class org.fuin.utils4j.RandomAccessFileOutputStream
Constructor with file.
RandomAccessFileOutputStream(RandomAccessFileOutputStream) - Constructor for class org.fuin.utils4j.RandomAccessFileOutputStream
Constructor with output stream.
RandomAccessFileOutputStream(RandomAccessFileInputStream) - Constructor for class org.fuin.utils4j.RandomAccessFileOutputStream
Constructor with input stream.
read() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
read(byte[]) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
read(byte[], int, int) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
remove(String) - Method in class org.fuin.utils4j.PropertiesFile
Remove the property with the given key.
removeNodeSpi() - Method in class org.fuin.utils4j.PropertiesFilePreferences
removeSpi(String) - Method in class org.fuin.utils4j.PropertiesFilePreferences
replaceVars(String, Map) - Static method in class org.fuin.utils4j.Utils4J
Replaces all variables inside a string with values from a map.
reset() - Method in class org.fuin.utils4j.RandomAccessFileInputStream
resetCounter() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Sets the internal counter to 0.

S

save(boolean) - Method in class org.fuin.utils4j.PropertiesFile
Save the content from memory to disk.
save(String, boolean) - Method in class org.fuin.utils4j.PropertiesFile
Save the content from memory to disk.
save(String[], boolean) - Method in class org.fuin.utils4j.PropertiesFile
Save the content from memory to disk.
saveProperties(File, Properties, String) - Static method in class org.fuin.utils4j.Utils4J
Save properties to a file.
seek(long) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
seek(long) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
setLength(long) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Sets the length of this file.
setTryLockMax(int) - Method in class org.fuin.utils4j.PropertiesFile
Sets the number of tries to lock before throwing an exception.
setTryWaitMillis(long) - Method in class org.fuin.utils4j.PropertiesFile
Sets the milliseconds to sleep between retries.
setValue(String) - Method in class org.fuin.utils4j.Property
Sets the current value of the property.
size() - Method in class org.fuin.utils4j.PropertiesFile
Number of properties.
skip(long) - Method in class org.fuin.utils4j.RandomAccessFileInputStream
syncSpi() - Method in class org.fuin.utils4j.PropertiesFilePreferences
SYSTEM_PREF_DIR - Static variable in class org.fuin.utils4j.PropertiesFilePreferencesFactory
System property key used containing the path and name of the "system" preferences directory.
systemRoot() - Method in class org.fuin.utils4j.PropertiesFilePreferencesFactory

T

toKeyValue() - Method in class org.fuin.utils4j.Property
Returns the key and value separated by an equal sign.
toProperties() - Method in class org.fuin.utils4j.PropertiesFile
Returns a copy of all properties.
toProperties() - Method in class org.fuin.utils4j.PropertiesFilePreferences
Returns a copy of all properties.
toString() - Method in class org.fuin.utils4j.MergeException.Problem
toString() - Method in class org.fuin.utils4j.Property
truncate() - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Sets the length of the file to the number of written bytes.

U

unzip(File, File) - Static method in class org.fuin.utils4j.Utils4J
Unzips a file into a given directory.
unzip(File, File, Utils4J.UnzipInputStreamWrapper, Cancelable) - Static method in class org.fuin.utils4j.Utils4J
Unzips a file into a given directory.
USER_PREF_FILE - Static variable in class org.fuin.utils4j.PropertiesFilePreferencesFactory
System property key used containing the path and name of the "user" preferences directory.
userRoot() - Method in class org.fuin.utils4j.PropertiesFilePreferencesFactory
Utils4J - Class in org.fuin.utils4j
Common utility methods for use in Java applications and libraries.
Utils4J.UnzipInputStreamWrapper - Interface in org.fuin.utils4j
Wraps a given input stream into another one an returns it.

W

wrapInputStream(InputStream, ZipEntry, File) - Method in interface org.fuin.utils4j.Utils4J.UnzipInputStreamWrapper
Wraps the input stream into another one.
write(int) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Writes the specified byte to this file.
write(byte[]) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Writes b.length bytes from the specified byte array to this file, starting at the current file pointer.
write(byte[], int, int) - Method in class org.fuin.utils4j.RandomAccessFileOutputStream
Writes len bytes from the specified byte array starting at offset off to the file.

Z

zipDir(File, FileFilter, String, File) - Static method in class org.fuin.utils4j.Utils4J
Creates a ZIP file and adds all files in a directory and all it's sub directories to the archive.
zipDir(File, String, File) - Static method in class org.fuin.utils4j.Utils4J
Creates a ZIP file and adds all files in a directory and all it's sub directories to the archive.

A C D E F G H I K L M O P R S T U W Z

Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.