[out of topic] does anyone know an asciidoc library?

Please excuse the out of topic!

But I can’t find any answer on the www and not only me:
e.g.: AsciiDoc and Java

When I write xml I can either use StringBuilder or SAX Writer.

Using StringBuilder doesn’t check syntax, so bad idea.

But if I want to create asciidoc document, I can either use StringBuilder or any unknown writer.

The asciidoc writer should ensure that every open bracket, bold, etc. finds its own end. As each tag in the xml finds its end in SAX, otherwise exception.

There should be a writer hidden in all your documentation tools - I think.
Does anyone here in this forum know an asciidoc writer?
Of course, realize it myself would also be a solution.

Thank you very much.