public abstract class AbstractBinaryStore extends Base implements BinaryStore
Base.LoggingWriter, Base.StackFrame
BinaryStore.KeySetAware, BinaryStore.SizeAware
Constructor and Description |
---|
AbstractBinaryStore() |
Modifier and Type | Method and Description |
---|---|
void |
erase(Binary binKey)
Remove the specified key from the underlying store if present.
|
void |
eraseAll()
Remove all data from the underlying store.
|
static File |
getDefaultDirectory()
Obtain a File object for the default directory to use for file storage.
|
Iterator |
keys()
Iterate all keys in the underlying store.
|
abstract Binary |
load(Binary binKey)
Return the value associated with the specified key, or null if the
key does not have an associated value in the underlying store.
|
void |
store(Binary binKey,
Binary binValue)
Store the specified value under the specific key in the underlying
store.
|
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
public abstract Binary load(Binary binKey)
load
in interface BinaryStore
binKey
- key whose associated value is to be returnedpublic void store(Binary binKey, Binary binValue)
store
in interface BinaryStore
binKey
- key to store the value underbinValue
- value to be storedUnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void erase(Binary binKey)
erase
in interface BinaryStore
binKey
- key whose mapping is to be removed from the mapUnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void eraseAll()
eraseAll
in interface BinaryStore
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic Iterator keys()
keys
in interface BinaryStore
UnsupportedOperationException
- if the underlying store is not
iterablepublic static File getDefaultDirectory()