org.jgroups.conf
public class MagicNumberReader extends Object
Version: 1.0
Field Summary | |
---|---|
protected static Log | log |
String | mMagicNumberFile |
static String | MAGIC_NUMBER_FILE |
Method Summary | |
---|---|
protected static ClassMap[] | parse(InputStream stream) |
protected static ClassMap | parseClassData(Node protocol) |
ClassMap[] | readMagicNumberMapping()
try to read the magic number configuration file as a Resource form the classpath using getResourceAsStream
if this fails this method tries to read the configuration file from mMagicNumberFile using a FileInputStream (not in classpath but somewhere else in the disk)
|
void | setFilename(String file) |
Returns: an array of ClassMap objects that where parsed from the file (if found) or an empty array if file not found or had en exception