public class ChunkDecoderFactory
extends java.lang.Object
ChunkDecoder
implementations, based on criteria
such as "fastest available".
Yes, it looks butt-ugly, but does the job. Nonetheless, if anyone has lipstick for this pig, let me know.
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends ChunkDecoder> |
_implClass |
private static ChunkDecoderFactory |
_instance |
Modifier | Constructor and Description |
---|---|
private |
ChunkDecoderFactory(java.lang.Class<?> imp) |
Modifier and Type | Method and Description |
---|---|
static ChunkDecoder |
optimalInstance()
Method to use for getting decoder instance that uses the most optimal
available methods for underlying data access.
|
static ChunkDecoder |
safeInstance()
Method that can be used to ensure that a "safe" decoder instance is loaded.
|
private static final ChunkDecoderFactory _instance
private final java.lang.Class<? extends ChunkDecoder> _implClass
public static ChunkDecoder optimalInstance()
safeInstance()
.public static ChunkDecoder safeInstance()