public class SnippetReader
extends java.lang.Object
Constructor and Description |
---|
SnippetReader(java.net.URL src)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SnippetReader(java.net.URL src)
src
- The source.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.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.