Package org.commonmark.testutil.example
Class ExampleReader
java.lang.Object
org.commonmark.testutil.example.ExampleReader
Reader for files containing examples of CommonMark source and the expected HTML rendering (e.g. spec.txt).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate intprivate final Stringprivate StringBuilderprivate Stringprivate final InputStreamprivate Stringprivate static final Patternprivate StringBuilderprivate ExampleReader.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprocessLine(String line) read()readExampleObjects(URL url, String info) readExamples(URL url) readExampleSources(URL url) private void
-
Field Details
-
SECTION_PATTERN
-
EXAMPLE_START_MARKER
- See Also:
-
inputStream
-
filename
-
state
-
section
-
info
-
source
-
html
-
exampleNumber
private int exampleNumber -
examples
-
-
Constructor Details
-
ExampleReader
-
-
Method Details
-
readExamples
-
readExampleObjects
-
readExampleSources
-
read
- Throws:
IOException
-
processLine
-
resetContents
private void resetContents()
-