public class BasicTextCommentEventReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>> extends BasicEventReceiver<P>
Constructor and Description |
---|
BasicTextCommentEventReceiver(P streamDataProvider,
ReadWriteParameterMap parameterMap,
java.lang.String commentStart,
java.lang.String commentEnd)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommentEnd() |
java.lang.String |
getCommentStart() |
protected void |
handleComment(CommentEvent event) |
static void |
writeComment(BasicEventReceiver<?> receiver,
CommentEvent event,
java.lang.String commentStart,
java.lang.String commentEnd) |
add, addIgnoredComments, addIgnoredLiteralMetadata, addIgnoredResourceMetadata, addIgnoreLogMessage, didIgnoreComments, didIgnoreLiteralMetadata, didIgnoreMetadata, didIgnoreResourceMetadata, doAdd, getIgnoredComments, getIgnoredLiteralMetadata, getIgnoredMetadata, getIgnoredResourceMetadata, getLogger, getParameterMap, getParentEvent, getParentEvents, getStreamDataProvider, handleLiteralContentMeta, handleLiteralMetaStart, handleMetaEndEvent, handleResourceMetaStart, isInComment
public BasicTextCommentEventReceiver(P streamDataProvider, ReadWriteParameterMap parameterMap, java.lang.String commentStart, java.lang.String commentEnd)
writer
- the writer to write data toparameterMap
- the parameter map of the event writer that will be using this receiver instancecommentStart
- a string indicating the start of a comment in the target formatcommentEnd
- a string indicating the end of a comment in the target formatpublic java.lang.String getCommentStart()
public java.lang.String getCommentEnd()
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
public static void writeComment(BasicEventReceiver<?> receiver, CommentEvent event, java.lang.String commentStart, java.lang.String commentEnd) throws java.io.IOException
java.io.IOException