Package org.simpleframework.xml.stream
Class HyphenBuilder.Parser
- java.lang.Object
-
- org.simpleframework.xml.stream.Splitter
-
- org.simpleframework.xml.stream.HyphenBuilder.Parser
-
- Enclosing class:
- HyphenBuilder
private class HyphenBuilder.Parser extends Splitter
This is used to parse the style for this builder. This takes all of the words split from the original string and builds all of the processed tokens for the styles elements and attributes.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Parser(java.lang.String source)
Constructor for theParser
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commit(char[] text, int off, int len)
This is used to commit the provided text in to the style that is required.protected void
parse(char[] text, int off, int len)
This is used to parse the provided text in to the style that is required.
-
-
-
Method Detail
-
parse
protected void parse(char[] text, int off, int len)
This is used to parse the provided text in to the style that is required. Manipulation of the text before committing it ensures that the text adheres to the required style.
-
commit
protected void commit(char[] text, int off, int len)
This is used to commit the provided text in to the style that is required. Committing the text to the buffer assembles the tokens resulting in a complete token.
-
-