Package lazyj
Class Utils.Base64Coder
java.lang.Object
java.util.prefs.Preferences
java.util.prefs.AbstractPreferences
lazyj.Utils.Base64Coder
- Enclosing class:
- Utils
- Since:
- Nov 6, 2010
- Author:
- costing (original code from a Sun forum thread that was removed in the mean time)
- 
Field SummaryFields inherited from class java.util.prefs.AbstractPreferenceslock, newNodeFields inherited from class java.util.prefs.PreferencesMAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
- 
Method SummaryModifier and TypeMethodDescriptionprotected String[]protected AbstractPreferencesstatic byte[]Given a String containing a Base64 representation, return the corresponding byte array.static Stringencode(byte[] b) Given a byte array, return its Base64 representation as a String.protected voidflushSpi()protected Stringprotected String[]keysSpi()voidprotected voidprotected voidprotected voidprotected voidsyncSpi()Methods inherited from class java.util.prefs.AbstractPreferencesabsolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, flush, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, sync, toStringMethods inherited from class java.util.prefs.PreferencesimportPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
- 
Method Details- 
encodeGiven a byte array, return its Base64 representation as a String.- Parameters:
- b-
- Returns:
- encoded bytes
 
- 
decodeGiven a String containing a Base64 representation, return the corresponding byte array.- Parameters:
- base64String-
- Returns:
- decoded bytes
 
- 
get- Overrides:
- getin class- AbstractPreferences
 
- 
put- Overrides:
- putin class- AbstractPreferences
 
- 
childSpi- Specified by:
- childSpiin class- AbstractPreferences
 
- 
putSpi- Specified by:
- putSpiin class- AbstractPreferences
 
- 
getSpi- Specified by:
- getSpiin class- AbstractPreferences
 
- 
removeSpi- Specified by:
- removeSpiin class- AbstractPreferences
 
- 
keysSpi- Specified by:
- keysSpiin class- AbstractPreferences
- Throws:
- BackingStoreException
 
- 
childrenNamesSpi- Specified by:
- childrenNamesSpiin class- AbstractPreferences
- Throws:
- BackingStoreException
 
- 
syncSpi- Specified by:
- syncSpiin class- AbstractPreferences
- Throws:
- BackingStoreException
 
- 
removeNodeSpi- Specified by:
- removeNodeSpiin class- AbstractPreferences
- Throws:
- BackingStoreException
 
- 
flushSpi- Specified by:
- flushSpiin class- AbstractPreferences
- Throws:
- BackingStoreException
 
 
-