|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.macro.snippet.SnippetReader
public class SnippetReader
Utility class for reading snippets.
| Constructor Summary | |
|---|---|
SnippetReader(java.net.URL src)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
isDemarcator(java.lang.String snippetId,
java.lang.String what,
java.lang.String line)
Determines if the given line is a demarcator. |
protected boolean |
isEnd(java.lang.String snippetId,
java.lang.String line)
Determines if the given line is an end demarcator. |
protected boolean |
isStart(java.lang.String snippetId,
java.lang.String line)
Determines if the given line is a start demarcator. |
java.lang.StringBuffer |
readSnippet(java.lang.String snippetId)
Reads the snippet with given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnippetReader(java.net.URL src)
src - The source.| Method Detail |
|---|
public java.lang.StringBuffer readSnippet(java.lang.String snippetId)
throws java.io.IOException
snippetId - The id of the snippet.
java.io.IOException - if something goes wrong.
protected boolean isStart(java.lang.String snippetId,
java.lang.String line)
snippetId - the id of the snippet.line - the line.
protected boolean isDemarcator(java.lang.String snippetId,
java.lang.String what,
java.lang.String line)
snippetId - the id of the snippet.what - Identifier for the demarcator.line - the line.
protected boolean isEnd(java.lang.String snippetId,
java.lang.String line)
snippetId - the id of the snippet.line - the line.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||