A B C D E F G H I K L M N O P R S T U V W X

A

Absorb - Class in com.pelzer.util
Utility class to absorb exceptions in certain cases such as sleeping and in catch blocks.
Absorb() - Constructor for class com.pelzer.util.Absorb
 
Absorb.IgnoredExceptionListener - Interface in com.pelzer.util
 
acquire() - Method in class com.pelzer.util.SafeSemaphore
Wait until a permit is available, and take one.
acquireUninterruptibly() - Method in class com.pelzer.util.SafeSemaphore
Same as SafeSemaphore.acquire(), but won't throw an InterruptedException.
addCustomField(String, byte[]) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
Custom fields are encoded into the ID3, but probably not readable by most players.
addIgnoredExceptionListener(Absorb.IgnoredExceptionListener) - Static method in class com.pelzer.util.Absorb
 
ALL - Static variable in class com.pelzer.util.Logging.Priority
Special priority, maps to Level.ALL
ANY - Static variable in class com.pelzer.util.l10n.localizers.LanguageLocalizer
Matches any LanguageLocalizer (not in .equals(), but when the Localizable class is searching)
ANY - Static variable in class com.pelzer.util.l10n.localizers.ScriptLocalizer
Matches any ScriptLocalizer (not in .equals(), but when the Localizable class is searching)
ANY - Static variable in class com.pelzer.util.l10n.localizers.TerritoryLocalizer
Matches any TerritoryLocalizer (not in .equals(), but when the Localizable class is searching)
areStringsEqual(String, String) - Static method in class com.pelzer.util.StringMan
null-safe string equality test.

B

bytesToLength(byte[]) - Static method in class com.pelzer.util.mp3.MP3Util
Takes an array of 4 bytes and converts it to a long, the way the ID3 tag expects it to be converted, which is to say that only 7 bits of each byte is used, giving a max value of 2^28.

C

chop(String, int) - Static method in class com.pelzer.util.StringMan
Chops a string off after a certain number of characters.
clarify() - Method in class com.pelzer.util.ObfuscatedString
Synonym to ObfuscatedString.toString()
clarify(String) - Static method in class com.pelzer.util.ObfuscationManager
Opposite of ObfuscationManager.obfuscate(String)
ClassPathResource - Class in com.pelzer.util
Simple class to load files from the classpath.
ClassPathResource(String) - Constructor for class com.pelzer.util.ClassPathResource
 
ClassPathResource(String, ClassLoader) - Constructor for class com.pelzer.util.ClassPathResource
 
clear() - Method in class com.pelzer.util.l10n.Localizable
 
clear() - Method in class com.pelzer.util.Timecode
 
close() - Method in class com.pelzer.util.mp3.MP3AudioOnlyInputStream
 
close() - Method in class com.pelzer.util.mp3.MP3RetaggingInputStream
 
close() - Method in class com.pelzer.util.XMLPrettyPrintOutputStream
Closes the underlying target stream.
com.pelzer.util - package com.pelzer.util
 
com.pelzer.util.l10n - package com.pelzer.util.l10n
 
com.pelzer.util.l10n.localizers - package com.pelzer.util.l10n.localizers
 
com.pelzer.util.mp3 - package com.pelzer.util.mp3
 
compareTo(Localizer) - Method in class com.pelzer.util.l10n.localizers.Localizer
 
compressHexString(String) - Static method in class com.pelzer.util.StringMan
Very simplistic compression method that encodes repeating characters into a smaller character, so '0000000000' becomes '^0j' where the '^' escapes the next two characters, '0' is the repeating character, and j encodes 10 repetitions.
computePasswordHash(String, String) - Static method in class com.pelzer.util.PasswordCrypt
Converts the salt into a byte array using PasswordCrypt.stringToSalt(String) and then calls PasswordCrypt.computePasswordHash(String, byte[])
computePasswordHash(String, byte[]) - Static method in class com.pelzer.util.PasswordCrypt
Uses PBKDF2WithHmacSHA1 to hash the password using the given salt, returning the has in encoded hexadecimal form.
concat(String[], String, int, int) - Static method in class com.pelzer.util.StringMan
Concats elements in array between fromIndex, inclusive, to toIndex, inclusive, inserting separator between them.
containsKey(Object) - Method in class com.pelzer.util.l10n.Localizable
 
containsValue(Object) - Method in class com.pelzer.util.l10n.Localizable
 
createID3Tag(MP3Util.Metadata) - Static method in class com.pelzer.util.mp3.MP3Util
 
crypt(String, String) - Static method in class com.pelzer.util.UnixCrypt
Returns a String containing the encrypted passwd

D

debug(String, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
debug(String, Throwable, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
DEBUG - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.FINE
decodeStringToBytes(String) - Static method in class com.pelzer.util.StringMan
Takes a string encoded in hex (00-FF), two chars per byte, and returns an array of bytes.
decompressHexString(String) - Static method in class com.pelzer.util.StringMan
Decompresses a string encoded by StringMan.compressHexString(java.lang.String)
DEFAULT - Static variable in class com.pelzer.util.l10n.localizers.LanguageLocalizer
Unknown (#unknown), a custom language code
DEFAULT - Static variable in class com.pelzer.util.l10n.localizers.ScriptLocalizer
Unknown (#unknown), a custom script code
detokenize(String[], String) - Static method in class com.pelzer.util.StringMan
Converts a string array into a single string with values delimited by the specified delimiter.
die - Variable in class com.pelzer.util.KillableThread
Implementing classes should watch this value, and terminate gracefully if it ever becomes true.
DISABLE_PROPERTY_LOADING - Static variable in class com.pelzer.util.OverridableFields
if set to true, NO constants will be loaded by the OverridableFields.init() method, leaving the constant file as it was defined in the .java file.

E

encodeBytesToString(byte[]) - Static method in class com.pelzer.util.StringMan
Takes a byte array and returns a hex string (00-FF) encoded two chars per byte.
entrySet() - Method in class com.pelzer.util.l10n.Localizable
 
EnvironmentManager - Class in com.pelzer.util
Very simple wrapper class that pulls a few of the PropertyManager methods out into a more logical location, for instance EnvironmentManager.getBuildNumber() or EnvironmentManager.getHostname(), but ultimately delegates the work back to the PropertyManager.
EnvironmentManager() - Constructor for class com.pelzer.util.EnvironmentManager
 
equals(Object) - Method in class com.pelzer.util.l10n.Locale
 
equals(Object) - Method in class com.pelzer.util.l10n.localizers.Localizer
 
equals(Object) - Method in class com.pelzer.util.Timecode
 
error(String, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
error(String, Throwable, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
ERROR - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.WARNING
escapeForXML(String) - Static method in class com.pelzer.util.StringMan
Makes a string xml-safe, converting &<>"' to their &token; equivalents, and converting all other non-safe chars to their � version.
exactGet(Locale) - Method in class com.pelzer.util.l10n.Localizable
 

F

fatal(String, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
fatal(String, Throwable, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
FATAL - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.SEVERE
finalize() - Method in class com.pelzer.util.SafeSemaphore.Permit
Makes sure this permit is released.
flush() - Method in class com.pelzer.util.XMLPrettyPrintOutputStream
Flushes the target
format(LogRecord) - Method in class com.pelzer.util.Logging.LogFormatter
 

G

generateRandomSalt() - Static method in class com.pelzer.util.PasswordCrypt
Generates a random byte array to be used as a salt for PasswordCrypt.computePasswordHash(String, byte[])
get(Locale...) - Method in class com.pelzer.util.l10n.Localizable
 
get(Object) - Method in class com.pelzer.util.l10n.Localizable
 
getAlbum() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getAlbumArtist() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getAllLocales() - Method in class com.pelzer.util.l10n.Localizable
 
getAllProperties(String) - Static method in class com.pelzer.util.PropertyManager
 
getArtist() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getBeanDescriptor() - Method in class com.pelzer.util.SimplePersistenceBeanInfo
 
getBuildNumber() - Static method in class com.pelzer.util.EnvironmentManager
Pulls 'build.number' from PropertyManager.version.properties.
getBuildNumber() - Static method in class com.pelzer.util.PropertyManager
 
getCLine() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getCode() - Method in class com.pelzer.util.Timecode
 
getCodeWithSamples() - Method in class com.pelzer.util.Timecode
 
getCopyrightLegalURL() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getCoverArt() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getCurrentPID() - Static method in class com.pelzer.util.PID
 
getDefault() - Method in class com.pelzer.util.l10n.Localizable
 
getDefaultClassLoader() - Static method in class com.pelzer.util.ClassPathResource
 
getDefaultLocale() - Method in class com.pelzer.util.l10n.Localizable
 
getDescription() - Method in class com.pelzer.util.l10n.localizers.Localizer
Human-readable description of the identifier.
getDiscNumber() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getElapsed() - Method in class com.pelzer.util.StopWatch
Can be called at any time, returns a SMPTE object with 1000 frames/sec (corresponding to milliseconds) representing the time elapsed since start() is called.
getEncodedBy() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getEnvironment() - Static method in class com.pelzer.util.EnvironmentManager
 
getEnvironment() - Static method in class com.pelzer.util.PropertyManager
 
getFirstLine(String) - Static method in class com.pelzer.util.StringMan
 
getFrames() - Method in class com.pelzer.util.Timecode
 
getFramesPerSecond() - Method in class com.pelzer.util.Timecode
 
getFramesPerSecond() - Method in class com.pelzer.util.Timecode.Type
 
getGenre() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getHostname() - Static method in class com.pelzer.util.EnvironmentManager
The first part of the hostname of this box, so for 'foo.bar.com', would return 'foo'.
getHostname() - Static method in class com.pelzer.util.PropertyManager
 
getHours() - Method in class com.pelzer.util.Timecode
 
getID3v2Length(File) - Static method in class com.pelzer.util.mp3.MP3Util
Takes the given file, opens the header and reads the ID3v2 header size.
getIdentifier() - Method in class com.pelzer.util.l10n.localizers.Localizer
A shorted code, usually very short based on various ISO codes for language, territory or script.
getInputStream() - Method in class com.pelzer.util.ClassPathResource
 
getInstance(float) - Static method in class com.pelzer.util.Timecode.Type
Takes framesPerSecond and attempts to map it to one of our predefined TYPE_ objects.
getLevel() - Method in class com.pelzer.util.Logging.Priority
 
getLocalizedProperty(String) - Static method in class com.pelzer.util.PropertyManager
 
getLocalizedProperty(String, String) - Static method in class com.pelzer.util.PropertyManager
 
getLocalizedProperty(String, String, String) - Static method in class com.pelzer.util.PropertyManager
Allows retrieval of localized properties set up for SPECIFIC hosts.
getLocalizers() - Method in class com.pelzer.util.l10n.Locale
 
getLogger(String) - Static method in class com.pelzer.util.Logging
This is the new, official way to get a logger from the Logging system.
getLogger(Class<?>) - Static method in class com.pelzer.util.Logging
Convenience method, same as doing getLogger(loggedClass.getName())
getLogger(Object) - Static method in class com.pelzer.util.Logging
Convenience method, same as doing getLogger(loggedObject.getClass().getName())
getMinutes() - Method in class com.pelzer.util.Timecode
 
getNativeDescription() - Method in class com.pelzer.util.l10n.localizers.Localizer
 
getNullAsEmptyString(String) - Static method in class com.pelzer.util.StringMan
Returns an empty string if input is null, otherwise returns the original input string untouched.
getNullAsValue(String, String) - Static method in class com.pelzer.util.StringMan
Returns the specified string value if input is null, otherwise returns the original input string untouched.
getPersistenceDelegate() - Method in class com.pelzer.util.l10n.LocaleBeanInfo
 
getPersistenceDelegate() - Method in class com.pelzer.util.l10n.LocalizableBeanInfo
 
getPersistenceDelegate() - Method in class com.pelzer.util.l10n.localizers.LocalizerBeanInfo
 
getPersistenceDelegate() - Method in class com.pelzer.util.SimplePersistenceBeanInfo
 
getPLine() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getPrettyPrinted(String) - Static method in class com.pelzer.util.XMLPrettyPrintOutputStream
Takes a given XML as a string and does a pretty print.
getProperties(String) - Static method in class com.pelzer.util.PropertyManager
 
getProperty(String) - Static method in class com.pelzer.util.PropertyManager
 
getProperty(String, String) - Static method in class com.pelzer.util.PropertyManager
 
getProperty(String, String, String) - Static method in class com.pelzer.util.PropertyManager
 
getProperty(String) - Method in class com.pelzer.util.PropertyManager.ManagedProperties
 
getProperty(String, String) - Method in class com.pelzer.util.PropertyManager.ManagedProperties
 
getSamples() - Method in class com.pelzer.util.Timecode
 
getSamplesPerSecond() - Method in class com.pelzer.util.Timecode
 
getSamplesPerSecond() - Method in class com.pelzer.util.Timecode.Type
 
getSeconds() - Method in class com.pelzer.util.Timecode
 
getStackTrace(Throwable) - Static method in class com.pelzer.util.StringMan
 
getTail(Handler) - Method in class com.pelzer.util.Logging.LogFormatter
 
getTermsOfUse() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getTitle() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getTotalTracks() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getTrackNumber() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
getUS7ASCIIEquiv(String) - Static method in class com.pelzer.util.StringMan
Converts a string with possible high-ascii values into their ascii7 equiv., for instance 'é' maps to 'e'.
getWrappedMap() - Method in class com.pelzer.util.l10n.Localizable
Since this class is actually just wrapping an underlying hashmap, for hibernate support we need to have direct access to this value...
getYear() - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 

H

handle(Throwable) - Method in interface com.pelzer.util.Absorb.IgnoredExceptionListener
 
hasExactMatch(Locale) - Method in class com.pelzer.util.l10n.Localizable
 
hashCode() - Method in class com.pelzer.util.l10n.Locale
 
hashCode() - Method in class com.pelzer.util.l10n.localizers.Localizer
 

I

id - Variable in class com.pelzer.util.l10n.localizers.Localizer
The underlying id for an instance in persistent storage.
ignore(Throwable) - Static method in class com.pelzer.util.Absorb
Not an exactly perfect name, but basically takes the given exception and logs it under this class's logger, which is silenced by default.
info(String, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
info(String, Throwable, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
INFO - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.CONFIG
init() - Method in class com.pelzer.util.OverridableFields
This method initializes all the fields of this class with constants from the PropertyManager.
init(String) - Method in class com.pelzer.util.OverridableFields
Custom version of 'init()' that allows you to specify your own base domain to pull properties from.
initialize(Class<?>, Object, Object, Encoder) - Method in class com.pelzer.util.l10n.LocalizableBeanInfo.LocalizablePersistenceDelegate
 
instantiate(Object, Encoder) - Method in class com.pelzer.util.l10n.LocaleBeanInfo.LocalePersistenceDelegate
 
instantiate(Object, Encoder) - Method in class com.pelzer.util.l10n.LocalizableBeanInfo.LocalizablePersistenceDelegate
 
instantiate(Object, Encoder) - Method in class com.pelzer.util.l10n.localizers.LocalizerBeanInfo.LocalizerPersistenceDelegate
 
isDebugEnabled() - Method in class com.pelzer.util.Logging.Logger
 
isDEV() - Static method in class com.pelzer.util.PropertyManager
 
isEmpty() - Method in class com.pelzer.util.l10n.Localizable
Localizable can never be empty.
isEmpty(String) - Static method in class com.pelzer.util.StringMan
 
isInfoEnabled() - Method in class com.pelzer.util.Logging.Logger
 
isInitialized() - Static method in class com.pelzer.util.EnvironmentManager
 
isMuted() - Static method in class com.pelzer.util.Logging
 
isPIDAlive(int) - Static method in class com.pelzer.util.PID
Returns true if the given pid is alive.
isPROD() - Static method in class com.pelzer.util.PropertyManager
 
isRunning() - Method in class com.pelzer.util.StopWatch
 
isStringTrue(String) - Static method in class com.pelzer.util.StringMan
Returns true if the string is 'TRUE' or 'YES' or '1', case insensitive.
isTEST() - Static method in class com.pelzer.util.PropertyManager
 
isWildCard() - Method in class com.pelzer.util.l10n.localizers.Localizer
 

K

keySet() - Method in class com.pelzer.util.l10n.Localizable
 
KillableThread - Class in com.pelzer.util
There is no built-in mechanism for stopping threads in Java, so this class is a simple fix for the issue.
KillableThread() - Constructor for class com.pelzer.util.KillableThread
 

L

LanguageLocalizer - Class in com.pelzer.util.l10n.localizers
Used to localize based on ISO 639-2 3-letter language codes (English would be 'eng')
LanguageLocalizer(String, String) - Constructor for class com.pelzer.util.l10n.localizers.LanguageLocalizer
Always lowercases the language, should be something like 'eng'
LanguageLocalizer(String, String, String) - Constructor for class com.pelzer.util.l10n.localizers.LanguageLocalizer
Always lowercases the language, should be something like 'eng'
LanguageLocalizerBeanInfo - Class in com.pelzer.util.l10n.localizers
 
LanguageLocalizerBeanInfo() - Constructor for class com.pelzer.util.l10n.localizers.LanguageLocalizerBeanInfo
 
Locale - Class in com.pelzer.util.l10n
Wraps the passed-in localizer arrays so that we can use them as keys for lookup.
Locale(Localizer...) - Constructor for class com.pelzer.util.l10n.Locale
 
Locale(String, String, String) - Constructor for class com.pelzer.util.l10n.Locale
 
Locale(Locale) - Constructor for class com.pelzer.util.l10n.Locale
 
LocaleBeanInfo - Class in com.pelzer.util.l10n
Specifies how to serialize a Locale object using XMLEncoder
LocaleBeanInfo() - Constructor for class com.pelzer.util.l10n.LocaleBeanInfo
 
LocaleBeanInfo.LocalePersistenceDelegate - Class in com.pelzer.util.l10n
 
LocaleBeanInfo.LocalePersistenceDelegate() - Constructor for class com.pelzer.util.l10n.LocaleBeanInfo.LocalePersistenceDelegate
 
Localizable<E> - Class in com.pelzer.util.l10n
This class wraps multiple versions of an object (E) based on a localizer, and then has some defaulting logic for grabbing a single entry back out.
Localizable() - Constructor for class com.pelzer.util.l10n.Localizable
 
Localizable(E, Locale) - Constructor for class com.pelzer.util.l10n.Localizable
Instantiates, and then calls #setDefault(E, Locale)
LocalizableBeanInfo - Class in com.pelzer.util.l10n
Specifies how to serialize a Localizable object using XMLEncoder
LocalizableBeanInfo() - Constructor for class com.pelzer.util.l10n.LocalizableBeanInfo
 
LocalizableBeanInfo.LocalizablePersistenceDelegate - Class in com.pelzer.util.l10n
 
LocalizableBeanInfo.LocalizablePersistenceDelegate() - Constructor for class com.pelzer.util.l10n.LocalizableBeanInfo.LocalizablePersistenceDelegate
 
Localizer - Class in com.pelzer.util.l10n.localizers
Wrapper for language or territory.
Localizer(String, String) - Constructor for class com.pelzer.util.l10n.localizers.Localizer
Identifier is the unique id that the ISO (or other standards body) has assigned this localizer, description is the english description, native description is the locale-specific description, or null if it's not available or the same.
Localizer(String, String, String) - Constructor for class com.pelzer.util.l10n.localizers.Localizer
 
LocalizerBeanInfo - Class in com.pelzer.util.l10n.localizers
Specifies how to serialize a Localizer object using XMLEncoder
LocalizerBeanInfo() - Constructor for class com.pelzer.util.l10n.localizers.LocalizerBeanInfo
 
LocalizerBeanInfo.LocalizerPersistenceDelegate - Class in com.pelzer.util.l10n.localizers
 
LocalizerBeanInfo.LocalizerPersistenceDelegate() - Constructor for class com.pelzer.util.l10n.localizers.LocalizerBeanInfo.LocalizerPersistenceDelegate
 
localizers - Variable in class com.pelzer.util.l10n.Locale
 
Log4JConfigurer - Class in com.pelzer.util
 
Log4JConfigurer() - Constructor for class com.pelzer.util.Log4JConfigurer
 
Logging - Class in com.pelzer.util
The Logging system is used to output informational and logging messages to the console.
Logging.LogFormatter - Class in com.pelzer.util
 
Logging.LogFormatter() - Constructor for class com.pelzer.util.Logging.LogFormatter
 
Logging.Logger - Class in com.pelzer.util
Wrapper class around our logging...
Logging.Priority - Class in com.pelzer.util
This class has been added to wrap the older Log4j-style priorities into the SDK-style Levels.

M

main(String[]) - Static method in class com.pelzer.util.mp3.MP3AudioOnlyInputStream
 
main(String[]) - Static method in class com.pelzer.util.mp3.MP3RetaggingInputStream
 
main(String[]) - Static method in class com.pelzer.util.ObfuscationManager
Takes each argument and outputs the obfuscated version of it.
main(String[]) - Static method in class com.pelzer.util.PID
 
main(String[]) - Static method in class com.pelzer.util.PropertyManager.PropertyProcessor
 
MP3AudioOnlyInputStream - Class in com.pelzer.util.mp3
This class takes the given stream or file and strips the ID3v2.x tags from it, returning only the audio content.
MP3AudioOnlyInputStream(File) - Constructor for class com.pelzer.util.mp3.MP3AudioOnlyInputStream
 
MP3AudioOnlyInputStream(InputStream) - Constructor for class com.pelzer.util.mp3.MP3AudioOnlyInputStream
 
MP3RetaggingInputStream - Class in com.pelzer.util.mp3
This class takes the given file or stream, strips ID3 information from it using MP3AudioOnlyInputStream and then prepends its own replacement metadata to the stream.
MP3RetaggingInputStream(InputStream, byte[]) - Constructor for class com.pelzer.util.mp3.MP3RetaggingInputStream
Takes the given stream, strips it of its existing header and prepends the given byte array.
MP3RetaggingInputStream(File, byte[]) - Constructor for class com.pelzer.util.mp3.MP3RetaggingInputStream
Takes the given file, strips it of its existing header and prepends the given byte array.
MP3RetaggingInputStream(InputStream, MP3Util.Metadata) - Constructor for class com.pelzer.util.mp3.MP3RetaggingInputStream
Computes the new header and then calls MP3RetaggingInputStream.MP3RetaggingInputStream(InputStream, byte[])
MP3RetaggingInputStream(File, MP3Util.Metadata) - Constructor for class com.pelzer.util.mp3.MP3RetaggingInputStream
Computes the new header and then calls MP3RetaggingInputStream.MP3RetaggingInputStream(InputStream, byte[])
MP3Util - Class in com.pelzer.util.mp3
Currently almost-exclusively ID3-related tools relating to MP3.
MP3Util.Metadata - Class in com.pelzer.util.mp3
A POJO that stores the info to be encoded into an MP3 file's ID3.
MP3Util.Metadata() - Constructor for class com.pelzer.util.mp3.MP3Util.Metadata
 
mute() - Method in class com.pelzer.util.Logging.Logger
Mutes this particular logger.
mute() - Static method in class com.pelzer.util.Logging
Turns off all debugging until Logging.unmute() is called or the system shuts down.

N

NONE - Static variable in class com.pelzer.util.l10n.Locale
Most non-locale aware systems will both populate and pull based on this special locale.
normalize() - Method in class com.pelzer.util.Timecode
Goes through the system and sanitizes badly formed values : 00:00:60:00 will become 00:01:00:00, etc.

O

obfuscate(String) - Static method in class com.pelzer.util.ObfuscationManager
Takes a string and returns an obfuscated string with no more than 2x a many characters as the original.
ObfuscatedString - Class in com.pelzer.util
Basically used as a marker inside a Constant file to make sure the system clarifies the underlying info using the ObfuscationManager.
ObfuscatedString(String) - Constructor for class com.pelzer.util.ObfuscatedString
 
ObfuscationManager - Class in com.pelzer.util
Some people might have named this thing the EncryptionManager or something like that, but since this really just slows people down from figuring out passwords and such, it's just obfuscation.
OBNOXIOUS - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.FINEST
OFF - Static variable in class com.pelzer.util.Logging.Priority
Special priority, maps to Level.OFF
OverridableFields - Class in com.pelzer.util
This class is used to cache properties from the PropertyManager, and should be extended by local Constants classes in various packages.
OverridableFields() - Constructor for class com.pelzer.util.OverridableFields
 
override(String, String) - Static method in class com.pelzer.util.PropertyManager
Sets a property manually: You'd generally only call this method from a unit-test, to make sure a certain property was set correctly...

P

padLeftJustified(String, int) - Static method in class com.pelzer.util.StringMan
"foo" becomes "foo "
padLeftJustified(String, int, String) - Static method in class com.pelzer.util.StringMan
 
padRightJustified(String, int) - Static method in class com.pelzer.util.StringMan
"foo" becomes " foo"
padRightJustified(String, int, String) - Static method in class com.pelzer.util.StringMan
 
parseInts(String[]) - Static method in class com.pelzer.util.StringMan
Takes an array of Strings with integer values and returns an array of ints, or throws a NumberFormatException if there's a problem.
parseLongs(String[]) - Static method in class com.pelzer.util.StringMan
Takes an array of Strings with long values and returns an array of longs, or throws a NumberFormatException if there's a problem.
PasswordCrypt - Class in com.pelzer.util
 
PasswordCrypt() - Constructor for class com.pelzer.util.PasswordCrypt
 
PID - Class in com.pelzer.util
Wrapper around the unix concept of a process identifier.
PID() - Constructor for class com.pelzer.util.PID
 
PropertyManager - Class in com.pelzer.util
This class is used to condense and maintain the myriad .property files used by the system.
PropertyManager.ManagedProperties - Class in com.pelzer.util
This class emulates a java.util.Properties object, but doesn't quite support all its methods.
PropertyManager.PropertyProcessor - Class in com.pelzer.util
Performs preprocessing on the PropertyManager.properties file, performing #include processing, obfuscation, etc.
PropertyManager.PropertyProcessor() - Constructor for class com.pelzer.util.PropertyManager.PropertyProcessor
 
put(Locale, E) - Method in class com.pelzer.util.l10n.Localizable
 
putAll(Map<? extends Locale, ? extends E>) - Method in class com.pelzer.util.l10n.Localizable
 

R

read() - Method in class com.pelzer.util.mp3.MP3AudioOnlyInputStream
 
read() - Method in class com.pelzer.util.mp3.MP3RetaggingInputStream
 
readPID(File) - Static method in class com.pelzer.util.PID
 
release() - Method in class com.pelzer.util.SafeSemaphore.Permit
If this permit is still valid, calls release() on the parent semaphore.
release(SafeSemaphore.Permit) - Method in class com.pelzer.util.SafeSemaphore
Release a permit.
remove(Object) - Method in class com.pelzer.util.l10n.Localizable
 
removeIgnoredExceptionListener(Absorb.IgnoredExceptionListener) - Static method in class com.pelzer.util.Absorb
 
replace(String, String, String) - Static method in class com.pelzer.util.StringMan
Replaces all occurences of a String with another string, using the fastest method we could devise.
replace(String, String, String...) - Static method in class com.pelzer.util.StringMan
Same behavior as StringMan.replace(String, String, String) but cycles through the replacements, so replace("xxx","x","1","2","3") would return "123".
replaceFirst(String, String, String) - Static method in class com.pelzer.util.StringMan
Replaces first occurence of a String with another string
reset() - Method in class com.pelzer.util.StopWatch
Resets elapsed time to zero and stops the clock ticking.
rethrow(Throwable) - Static method in class com.pelzer.util.Absorb
Wraps the passed exception and then rethrows it wrapped in a runtime exception.

S

SafeSemaphore - Class in com.pelzer.util
A wrapper around the concurrent.Semaphore object, which returns an actual permit object when acquire() is called, which can then be used to release the lock, and has safety finalizers that ensure that an acquired permit will eventually be released during garbage collection if a thread crash or other bug breaks the code before semaphore release.
SafeSemaphore(int) - Constructor for class com.pelzer.util.SafeSemaphore
 
SafeSemaphore.Permit - Class in com.pelzer.util
 
ScriptLocalizer - Class in com.pelzer.util.l10n.localizers
Used to localize based on ISO 15924 script codes (English would be 'latn' for Latin)
ScriptLocalizer(String, String) - Constructor for class com.pelzer.util.l10n.localizers.ScriptLocalizer
Always lowercases the script, should be something like 'latn'
ScriptLocalizer(String, String, String) - Constructor for class com.pelzer.util.l10n.localizers.ScriptLocalizer
Always lowercases the script, should be something like 'latn'
ScriptLocalizerBeanInfo - Class in com.pelzer.util.l10n.localizers
 
ScriptLocalizerBeanInfo() - Constructor for class com.pelzer.util.l10n.localizers.ScriptLocalizerBeanInfo
 
set(E, Locale) - Method in class com.pelzer.util.l10n.Localizable
Adds or overrides a value to the internal hash.
setAlbum(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setAlbumArtist(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setArtist(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setCLine(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setCode(String) - Method in class com.pelzer.util.Timecode
Sets the object based on a string in the form HH:MM:SS:FF
setCode(float) - Method in class com.pelzer.util.Timecode
Sets the object up based on seconds...
setCode(double) - Method in class com.pelzer.util.Timecode
 
setCode(int) - Method in class com.pelzer.util.Timecode
Set the code based on frames, framesPerSecond defaults to 75.
setCopyrightLegalURL(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setCoverArt(File) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setDefault(E, Locale) - Method in class com.pelzer.util.l10n.Localizable
Overrides the default locale value.
setDefaultEnvironment(String) - Static method in class com.pelzer.util.EnvironmentManager
Overrides and resets the PropertyManager to a new environment.
setDiscNumber(Integer) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setEncodedBy(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setFrames(int) - Method in class com.pelzer.util.Timecode
 
setFramesPerSecond(float) - Method in class com.pelzer.util.Timecode
 
setGenre(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setHours(int) - Method in class com.pelzer.util.Timecode
 
setMinutes(int) - Method in class com.pelzer.util.Timecode
 
setPLine(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setSamples(long) - Method in class com.pelzer.util.Timecode
 
setSamplesPerSecond(float) - Method in class com.pelzer.util.Timecode
 
setSeconds(int) - Method in class com.pelzer.util.Timecode
 
setTermsOfUse(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setTitle(String) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setTotalTracks(Integer) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setTrackNumber(Integer) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
setUseSamples(boolean) - Method in class com.pelzer.util.Timecode
If true, samples per second will be used in computing fractions of frames.
setWrappedMap(Map<Locale, E>) - Method in class com.pelzer.util.l10n.Localizable
 
setYear(Integer) - Method in class com.pelzer.util.mp3.MP3Util.Metadata
 
SimplePersistenceBeanInfo - Class in com.pelzer.util
This is a simple class that can be extended to specify how to persist a class using the Encoder system.
SimplePersistenceBeanInfo() - Constructor for class com.pelzer.util.SimplePersistenceBeanInfo
 
size() - Method in class com.pelzer.util.l10n.Localizable
 
sleep(TimeUnit, long) - Static method in class com.pelzer.util.Absorb
Sleeps in exactly the same way as calling timeUnit.sleep(units), but absorbs any InterruptedException and exits normally.
sleep(long) - Static method in class com.pelzer.util.Absorb
Shortcut to #sleep(TimeUnit.MILLISECONDS, long)
start() - Method in class com.pelzer.util.StopWatch
If the clock is not ticking, resets the elapsed time StopWatch.reset() and then starts the clock.
stop() - Method in class com.pelzer.util.StopWatch
Stops the clock if it is running.
StopWatch - Class in com.pelzer.util
This is a quick utility to aid in getting timing info for debugging/etc.
StopWatch() - Constructor for class com.pelzer.util.StopWatch
Creates a new stopwatch.
StringMan - Class in com.pelzer.util
Utility class for string manipulation.
stringToSalt(String) - Static method in class com.pelzer.util.PasswordCrypt
Uses SHA-1 to hash the given string and returns the byte array.
stripNonAlphaNumericCharacters(String) - Static method in class com.pelzer.util.StringMan
Strips all non A-Z/0-9 characters from the input string.
stripNonEmailCharacters(String) - Static method in class com.pelzer.util.StringMan
Strips everything except A-Z a-z 0-9 @ .
stripWhitespace(String) - Static method in class com.pelzer.util.StringMan
Strips all characters c satisfying Character.isWhitespace(c).

T

TerritoryLocalizer - Class in com.pelzer.util.l10n.localizers
Used to localize based on two character ISO 3166 territory codes (United States would be 'US'), or 'WW' (which is not an official code)
TerritoryLocalizer(String, String) - Constructor for class com.pelzer.util.l10n.localizers.TerritoryLocalizer
Always capitalizes the territory, should be something like 'US' or 'WW'
TerritoryLocalizer(String, String, String) - Constructor for class com.pelzer.util.l10n.localizers.TerritoryLocalizer
Always capitalizes the territory, should be something like 'US' or 'WW'
TerritoryLocalizerBeanInfo - Class in com.pelzer.util.l10n.localizers
 
TerritoryLocalizerBeanInfo() - Constructor for class com.pelzer.util.l10n.localizers.TerritoryLocalizerBeanInfo
 
Timecode - Class in com.pelzer.util
Offers methods to act on timecodes, SMPTE or otherwise.
Timecode() - Constructor for class com.pelzer.util.Timecode
Deprecated. This is here for XMLEncode/Decode only. Use Timecode.Timecode(com.pelzer.util.Timecode.Type) instead.
Timecode(Timecode.Type) - Constructor for class com.pelzer.util.Timecode
Creates a new blank timecode of the given type set at 00:00:00:00
Timecode(String) - Constructor for class com.pelzer.util.Timecode
Creates a new CD timecode based on a string in the form HH:MM:SS:FF
Timecode(String, Timecode.Type) - Constructor for class com.pelzer.util.Timecode
Creates a new timecode of the given type based on a string in the form HH:MM:SS:FF
Timecode(float) - Constructor for class com.pelzer.util.Timecode
Creates a new CD timecode based on seconds using default seconds->frames rate from UploadConstants
Timecode(float, Timecode.Type) - Constructor for class com.pelzer.util.Timecode
Creates a new timecode of the given type based on seconds.
Timecode.TimecodeException - Exception in com.pelzer.util
 
Timecode.TimecodeException(String) - Constructor for exception com.pelzer.util.Timecode.TimecodeException
 
Timecode.Type - Class in com.pelzer.util
 
toDoubleSeconds() - Method in class com.pelzer.util.Timecode
 
toFrames() - Method in class com.pelzer.util.Timecode
 
toHHMMSS() - Method in class com.pelzer.util.Timecode
Uses the default ":" delimiter
toHHMMSS(String) - Method in class com.pelzer.util.Timecode
Units smaller than seconds are ignored completely.
toInitialCaps(String) - Static method in class com.pelzer.util.StringMan
Takes the inString and capitalizes every leter that occurs after a non-alpha character.
"I like pizza" becomes "I Like Pizza"
"DON'T EAT THAT" becomes "Don'T Eat That"
toIntSeconds() - Method in class com.pelzer.util.Timecode
Hours are added to the minutes and minutes are added to the seconds value so seconds could be larger than 60.
tokenize(String) - Static method in class com.pelzer.util.StringMan
Splits string into an array using StringTokenizer's default delimeter set which is * " \t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character.
tokenize(String, String) - Static method in class com.pelzer.util.StringMan
Splits string into an array using the given delimiter
toMMSS(String) - Method in class com.pelzer.util.Timecode
Hours are added to the minutes value so minutes could be larger than 60.
toMMSS() - Method in class com.pelzer.util.Timecode
Uses the default ":" delimiter
toSamples() - Method in class com.pelzer.util.Timecode
 
toSeconds() - Method in class com.pelzer.util.Timecode
 
toString() - Method in class com.pelzer.util.Logging.Priority
 
toString() - Method in class com.pelzer.util.ObfuscatedString
this class stores its data in mangled form, so if you constantly need to access this, you should cache it locally, to avoid repeated clarification runs.
toString() - Method in class com.pelzer.util.Timecode
 
TYPE_AUDIO_CD - Static variable in class com.pelzer.util.Timecode.Type
75 frames/sec, 44,100 samples/sec
TYPE_VIDEO_FILM - Static variable in class com.pelzer.util.Timecode.Type
24 frames/sec, 24,000 samples/sec
TYPE_VIDEO_NTSC - Static variable in class com.pelzer.util.Timecode.Type
29.97 frames/sec, 29,970 samples/sec
TYPE_VIDEO_PAL - Static variable in class com.pelzer.util.Timecode.Type
25 frames/sec, 25,000 samples/sec

U

UnixCrypt - Class in com.pelzer.util
UnixCrypt is a class to implement password encryption as used on Unix systems.
UnixCrypt() - Constructor for class com.pelzer.util.UnixCrypt
 
unmute() - Method in class com.pelzer.util.Logging.Logger
Unmutes this particular logger, or does nothing if this logger is not currently muted.
unmute() - Static method in class com.pelzer.util.Logging
Turns logging back on after calling Logging.mute()
useSamples() - Method in class com.pelzer.util.Timecode
 
usesSamples() - Method in class com.pelzer.util.Timecode.Type
 

V

values() - Method in class com.pelzer.util.l10n.Localizable
 
VERBOSE - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.FINER

W

warn(String, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
warn(String, Throwable, Object...) - Method in class com.pelzer.util.Logging.Logger
Takes a message and an unspecified number of tokens to put into that message, looking for the pattern "{}".
WARN - Static variable in class com.pelzer.util.Logging.Priority
Maps to Level.INFO
WILDCARD_IDENTIFIER - Static variable in class com.pelzer.util.l10n.localizers.Localizer
 
write(int) - Method in class com.pelzer.util.XMLPrettyPrintOutputStream
 
write(byte[]) - Method in class com.pelzer.util.XMLPrettyPrintOutputStream
 
write(byte[], int, int) - Method in class com.pelzer.util.XMLPrettyPrintOutputStream
 
WW - Static variable in class com.pelzer.util.l10n.localizers.TerritoryLocalizer
Worldwide (WW)

X

XMLPrettyPrintOutputStream - Class in com.pelzer.util
As you pass in non-pretty xml, this will write out 'pretty' xml as best it can, but without validating the underlying XML in any way (as using the xerces code would require).
XMLPrettyPrintOutputStream(OutputStream) - Constructor for class com.pelzer.util.XMLPrettyPrintOutputStream
 

A B C D E F G H I K L M N O P R S T U V W X

Copyright © 2012. All Rights Reserved.