public class BasicTextCommentEventReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>> extends BasicEventReceiver<P>
Constructor and Description |
---|
BasicTextCommentEventReceiver(P streamDataProvider,
ReadWriteParameterMap parameterMap,
String commentStart,
String commentEnd)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommentEnd() |
String |
getCommentStart() |
protected void |
handleComment(CommentEvent event) |
static void |
writeComment(BasicEventReceiver<?> receiver,
CommentEvent event,
String commentStart,
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, String commentStart, 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 String getCommentStart()
public String getCommentEnd()
protected void handleComment(CommentEvent event) throws IOException, XMLStreamException
handleComment
in class BasicEventReceiver<P extends TextWriterStreamDataProvider<? extends AbstractTextEventWriter<P>>>
IOException
XMLStreamException
public static void writeComment(BasicEventReceiver<?> receiver, CommentEvent event, String commentStart, String commentEnd) throws IOException
IOException