JSecurity

org.jsecurity.io
Class TextResource

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

public abstract class TextResource
extends AbstractResource

//TODO complete JavaDoc

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

Field Summary
protected  String charsetName
           
 
Constructor Summary
TextResource()
           
TextResource(InputStream is)
           
TextResource(Reader r)
           
TextResource(Scanner s)
           
TextResource(String configBodyOrResourcePath)
           
TextResource(String configBodyOrResourcePath, String charsetName)
           
 
Method Summary
protected  void doLoad(BufferedReader reader)
           
protected  void doLoad(InputStream is)
           
 String getCharsetName()
           
 void load(Reader reader)
           
abstract  void load(Scanner scanner)
           
 void load(String resourcePath)
           
 void setCharsetName(String charsetName)
           
 
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

charsetName

protected String charsetName
Constructor Detail

TextResource

public TextResource()

TextResource

public TextResource(String configBodyOrResourcePath)

TextResource

public TextResource(String configBodyOrResourcePath,
                    String charsetName)

TextResource

public TextResource(InputStream is)

TextResource

public TextResource(Reader r)

TextResource

public TextResource(Scanner s)
Method Detail

getCharsetName

public String getCharsetName()

setCharsetName

public void setCharsetName(String charsetName)

load

public void load(String resourcePath)
Overrides:
load in class AbstractResource

doLoad

protected void doLoad(InputStream is)
               throws Exception
Specified by:
doLoad in class AbstractResource
Throws:
Exception

load

public void load(Reader reader)

doLoad

protected void doLoad(BufferedReader reader)

load

public abstract void load(Scanner scanner)

JSecurity

Copyright © 2004-2008 JSecurity.