Changed the way that the iaRealms.xml file is read to allow for extended
characters being part of it.
This commit is contained in:
parent
d56bb8a320
commit
f00b17d71c
@ -36,7 +36,9 @@ import javax.naming.directory.Attributes;
|
||||
import org.bandit.util.config.Realm;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.FileReader;
|
||||
import java.io.Reader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
@ -94,10 +96,10 @@ public class RealmsInfo
|
||||
RealmsInfo(String realmConfigFilePath) throws Exception
|
||||
{
|
||||
// Go through all of the configured realms
|
||||
FileReader fileReader = null;
|
||||
Reader fileReader = null;
|
||||
try
|
||||
{
|
||||
fileReader = new FileReader(realmConfigFilePath);
|
||||
fileReader = new InputStreamReader(new FileInputStream(realmConfigFilePath), "UTF8");
|
||||
RealmsType realmsType = Realms.unmarshal(fileReader);
|
||||
for (int i = 0; i < realmsType.getRealmsTypeItemCount(); i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user