JSecurity

org.jsecurity.io
Class IniResource

java.lang.Object
  extended by org.jsecurity.io.AbstractResource
      extended by org.jsecurity.io.TextResource
          extended by org.jsecurity.io.IniResource
All Implemented Interfaces:
Serializable

public class IniResource
extends TextResource

Since:
0.9
Author:
Les Hazlewood
See Also:
Serialized Form

Field Summary
static String COMMENT_POUND
           
static String COMMENT_SEMICOLON
           
static String HEADER_PREFIX
           
static String HEADER_SUFFIX
           
protected  Map<String,Map<String,String>> sections
           
 
Fields inherited from class org.jsecurity.io.TextResource
charsetName
 
Constructor Summary
IniResource()
           
IniResource(InputStream is)
           
IniResource(Reader r)
           
IniResource(Scanner s)
           
IniResource(String configBodyOrResourcePath)
           
IniResource(String configBodyOrResourcePath, String charsetName)
           
 
Method Summary
protected static String getSectionName(String line)
           
 Map<String,Map<String,String>> getSections()
           
protected static boolean isSectionHeader(String line)
           
 void load(Scanner scanner)
           
 void setSections(Map<String,Map<String,String>> sections)
           
 
Methods inherited from class org.jsecurity.io.TextResource
doLoad, doLoad, getCharsetName, load, load, setCharsetName
 
Methods inherited from class org.jsecurity.io.AbstractResource
getPathInputStream, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMENT_POUND

public static final String COMMENT_POUND
See Also:
Constant Field Values

COMMENT_SEMICOLON

public static final String COMMENT_SEMICOLON
See Also:
Constant Field Values

HEADER_PREFIX

public static final String HEADER_PREFIX
See Also:
Constant Field Values

HEADER_SUFFIX

public static final String HEADER_SUFFIX
See Also:
Constant Field Values

sections

protected Map<String,Map<String,String>> sections
Constructor Detail

IniResource

public IniResource()

IniResource

public IniResource(String configBodyOrResourcePath)

IniResource

public IniResource(String configBodyOrResourcePath,
                   String charsetName)

IniResource

public IniResource(InputStream is)

IniResource

public IniResource(Reader r)

IniResource

public IniResource(Scanner s)
Method Detail

getSections

public Map<String,Map<String,String>> getSections()

setSections

public void setSections(Map<String,Map<String,String>> sections)

load

public void load(Scanner scanner)
Specified by:
load in class TextResource

isSectionHeader

protected static boolean isSectionHeader(String line)

getSectionName

protected static String getSectionName(String line)

JSecurity

Copyright © 2004-2008 JSecurity.