|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<IOCache.Strategy>
de.schlichtherle.truezip.socket.IOCache.Strategy
public static enum IOCache.Strategy
Provides different cache strategies.
| Enum Constant Summary | |
|---|---|
READ_ONLY
Any attempt to obtain an output socket will result in a NullPointerException. |
|
WRITE_BACK
A write-back cache flushes any written data if and only if it gets explicitly flushed. |
|
WRITE_THROUGH
A write-through cache flushes any written data as soon as the output stream created by IOCache.getOutputSocket() gets closed. |
|
| Method Summary | |
|---|---|
IOCache |
newCache(IOPool<?> pool)
Returns a new cache. |
(package private) IOCache.InputBufferPool |
newInputBufferPool(IOCache cache)
|
(package private) abstract IOCache.OutputBufferPool |
newOutputBufferPool(IOCache cache)
|
static IOCache.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IOCache.Strategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IOCache.Strategy READ_ONLY
NullPointerException.
public static final IOCache.Strategy WRITE_THROUGH
IOCache.getOutputSocket() gets closed.
public static final IOCache.Strategy WRITE_BACK
flushed.
| Method Detail |
|---|
public static IOCache.Strategy[] values()
for (IOCache.Strategy c : IOCache.Strategy.values()) System.out.println(c);
public static IOCache.Strategy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic IOCache newCache(IOPool<?> pool)
pool - the pool of temporary entries to cache the entry data.
IOCache.InputBufferPool newInputBufferPool(IOCache cache)
abstract IOCache.OutputBufferPool newOutputBufferPool(IOCache cache)
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||