public class TextSequenceContentReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>> extends AbstractSequenceContentReceiver<P>
null
is specified as the comment start token.
It will log an according warning, if comments need to be edited (e.g. because they contain character that are reserved in the target format).
Constructor and Description |
---|
TextSequenceContentReceiver(P streamDataProvider,
ReadWriteParameterMap parameterMap,
boolean longTokens,
java.lang.String commentStart,
java.lang.String commentEnd) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleComment(CommentEvent event) |
protected void |
handleToken(java.lang.String token,
java.lang.String label)
Creates a new instance of this class.
|
doAdd, isLongTokens
add, addIgnoredComments, addIgnoredLiteralMetadata, addIgnoredResourceMetadata, addIgnoreLogMessage, didIgnoreComments, didIgnoreLiteralMetadata, didIgnoreMetadata, didIgnoreResourceMetadata, getIgnoredComments, getIgnoredLiteralMetadata, getIgnoredMetadata, getIgnoredResourceMetadata, getLogger, getParameterMap, getParentEvent, getParentEvents, getStreamDataProvider, handleLiteralContentMeta, handleLiteralMetaStart, handleMetaEndEvent, handleResourceMetaStart, isInComment
public TextSequenceContentReceiver(P streamDataProvider, ReadWriteParameterMap parameterMap, boolean longTokens, java.lang.String commentStart, java.lang.String commentEnd)
protected void handleToken(java.lang.String token, java.lang.String label) throws java.io.IOException
handleToken
in class AbstractSequenceContentReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>>
writer
- the writer to write the sequence toparameterMap
- the parameter map specified to the calling event writercommentStart
- a comment start token or null
, if this writer shall ignore comment eventscommentEnd
- a comment end token or null
, if this writer shall ignore comment eventslongTokens
- Specify true
here if sequence tokens shall be separated by spaces (if one token may
be longer than one character) or false
otherwise.java.io.IOException
protected void handleComment(CommentEvent event) throws java.io.IOException, javax.xml.stream.XMLStreamException
handleComment
in class BasicEventReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>>
java.io.IOException
javax.xml.stream.XMLStreamException