public final class StreamCacheFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
StreamCache |
createStreamCache()
Get the correct implementation (based on cacheToFile) of
StreamCache.
|
StreamCache |
createStreamCache(int hintSize)
Get the correct implementation (based on cacheToFile) of
StreamCache.
|
static StreamCacheFactory |
getInstance()
Returns an instance of a StreamCacheFactory with the requested features.
|
public static StreamCacheFactory getInstance()
public StreamCache createStreamCache() throws java.io.IOException
java.io.IOException
- if there is an IO errorpublic StreamCache createStreamCache(int hintSize) throws java.io.IOException
hintSize
- a hint about the approximate expected size of the bufferjava.io.IOException
- if there is an IO errorCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.