|
||||||||||
| 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(URL src)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
isDemarcator(String snippetId,
String what,
String line)
Determines if the given line is a demarcator. |
protected boolean |
isEnd(String snippetId,
String line)
Determines if the given line is an end demarcator. |
protected boolean |
isStart(String snippetId,
String line)
Determines if the given line is a start demarcator. |
StringBuffer |
readSnippet(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(URL src)
src - The source.| Method Detail |
|---|
public StringBuffer readSnippet(String snippetId)
throws IOException
snippetId - The id of the snippet.
IOException - if something goes wrong.
protected boolean isStart(String snippetId,
String line)
snippetId - the id of the snippet.line - the line.
protected boolean isDemarcator(String snippetId,
String what,
String line)
snippetId - the id of the snippet.what - Identifier for the demarcator.line - the line.
protected boolean isEnd(String snippetId,
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 | |||||||||