Skip navigation links

Package org.apache.maven.doxia.sink

Maven Doxia API.

See: Description

Package org.apache.maven.doxia.sink Description

Maven Doxia API.

The Doxia API is based on Sinks objects: each sink consumes Doxia events to produce a resultant output format (eg Docbook, PDF, XHTML...).

Using Maven Doxia API

The following snippet shows how to use a Doxia Sink:

  File userDir = new FileSystem.getProperty "user.dir" ) );
  File outputFile = new FileuserDir, "test.html" );

  SinkFactory sinkFactory = (SinkFactorylookupSinkFactory.ROLE, "html" )// Plexus lookup
  Sink sink = sinkFactory.createSinkoutputFile.getParentFile(), outputFile.getName() ) );

  // Sink head

  sink.text"Title" );
  sink.text"Author" );
  sink.text"Date" );

  // Sink head


   sink.text"Paragraph 1, line 1. Paragraph 1, line 2." );






Skip navigation links

Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.