com.onionnetworks.fec
Class DefaultFECCodeFactory
java.lang.Object
com.onionnetworks.fec.FECCodeFactory
com.onionnetworks.fec.DefaultFECCodeFactory
public class DefaultFECCodeFactory
- extends FECCodeFactory
This is the default FECCodeFactory that wraps all of the FECCode
implementations. It provides a way to customize the codes through
a properties file specified by the property
"com.onionnetworks.fec.defaultfeccodefactorypropertiesfile". By default
it will use the "lib/fec.properties" file distributed with the JAR.
Please consult this file for an example of how this should be done.
The properties in this file can also be passed manually to the
System properties. Again, consult the provided properties file for an
example. This given, if you are adding new codes to this stuff please
let me know because I worked my ass of to provide this for you, so do me
a favor and at least let me know what you're using this for.
(c) Copyright 2001 Onion Networks
(c) Copyright 2000 OpenCola
- Author:
- Justin F. Chapweske (justin@chapweske.com)
Method Summary |
FECCode |
createFECCode(int k,
int n)
If you're only asking for an 8 bit code we will NOT give you a 16 bit
one. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CACHE_TIME
public static final int DEFAULT_CACHE_TIME
- See Also:
- Constant Field Values
DefaultFECCodeFactory
public DefaultFECCodeFactory()
createFECCode
public FECCode createFECCode(int k,
int n)
- If you're only asking for an 8 bit code we will NOT give you a 16 bit
one.
- Specified by:
createFECCode
in class FECCodeFactory
- Returns:
- An FECCode for the appropriate
k
and n
values.
Copyright © 2002 Onion Networks. All Rights Reserved.