|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.readers.core.ReaderFile
public class ReaderFile
Reader of content of a specified file.
| Field Summary | |
|---|---|
protected IResolver |
resolver
Relative URI resolver. |
| Constructor Summary | |
|---|---|
ReaderFile()
|
|
| Method Summary | |
|---|---|
IResolver |
getResolver()
Resolver of relative links. |
protected ISource |
getSource(URI newHref)
Get source from a URI. |
void |
initialize()
Initialize something. |
boolean |
isReplacer()
Says to replace content after reading. |
String |
read(IContext context,
Object obj,
Object[] args)
Read the content of an object as String. |
void |
setResolver(IResolver resolver)
Change the resolver. |
protected void |
updateHref(nu.xom.Element element,
URI newHref)
Update href link of included files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IResolver resolver
| Constructor Detail |
|---|
public ReaderFile()
| Method Detail |
|---|
public IResolver getResolver()
public void setResolver(IResolver resolver)
resolver - A resolver.public void initialize()
IResetable
initialize in interface IResetable
public String read(IContext context,
Object obj,
Object[] args)
throws ReaderException
IReader
read in interface IReadercontext - The test context.obj - An object reader.args - Arguments of reading.
ReaderException - On reading errors.
protected ISource getSource(URI newHref)
throws PluginException
newHref - The URI.
PluginException - On reading errors.
protected void updateHref(nu.xom.Element element,
URI newHref)
throws PluginException
element - Href container.newHref - The href source.
PluginException - On calculation error.public boolean isReplacer()
IReader
isReplacer in interface IReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||