org.apache.maven.doxia.sink.Sink.flush()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中org.apache.maven.doxia.sink.Sink.flush()方法的一些代码示例,展示了Sink.flush()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.flush()方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:flush

Sink.flush介绍

暂无

代码示例

代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin

protected void renderPageEndAndFinalize()
{
 sink.body_();
 sink.flush();
 sink.close();
}

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

@Override
protected void endBaseline(final Object context)
{
  final Context ctx = (Context)context;
  ctx.sink.body_();
  ctx.sink.flush();
  ctx.sink.close();
}

代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin

public void endDocument()
  throws IOException
{
  // The Metrics report useless with the current PMD metrics impl.
  // For instance, run the coupling ruleset and you will get a boatload
  // of excessive imports metrics, none of which is really any use.
  // TODO Determine if we are going to just ignore metrics.
  // processMetrics();
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin

protected void renderPageEndAndFinalize()
{
 sink.body_();
 sink.flush();
 sink.close();
}

代码示例来源:origin: com.github.sebhoss.doxia/doxia-wikitext-common

@Override
public void parse(final @Nullable Reader reader, final @Nullable Sink sink) throws ParseException {
  final String markupContent = readMarkupContent(Nullsafe.nullsafe(reader));
  final String htmlContent = parseToHtml(markupContent);
  final Sink nullsafeSink = Nullsafe.nullsafe(sink);
  nullsafeSink.rawText(htmlContent);
  nullsafeSink.flush();
  nullsafeSink.close();
}

代码示例来源:origin: org.apache.maven.doxia/doxia-converter

/**
 * @param parser not null
 * @param reader not null
 * @param sink not null
 * @throws ConverterException if any
 */
private void parse( Parser parser, Reader reader, Sink sink )
  throws ConverterException
{
  try
  {
    parser.parse( reader, sink );
  }
  catch ( ParseException e )
  {
    throw new ConverterException( "ParseException: " + e.getMessage(), e );
  }
  finally
  {
    IOUtil.close( reader );
    sink.flush();
    sink.close();
  }
}

代码示例来源:origin: ru.yandex.qatools.allure/allure-maven-plugin

/**
 * Render allure report page in project-reports.html.
 */
protected void render(Sink sink, String title) {
  sink.head();
  sink.title();
  sink.text(title);
  sink.title_();
  sink.head_();
  sink.body();
  sink.lineBreak();
  Path indexHtmlFile = Paths.get(reportDirectory, "index.html");
  String relativePath = Paths.get(reportingOutputDirectory)
      .relativize(indexHtmlFile).toString();
  sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
      relativePath));
  sink.link(relativePath);
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: allure-framework/allure-maven

/**
 * Render allure report page in project-reports.html.
 */
protected void render(Sink sink, String title) {
  sink.head();
  sink.title();
  sink.text(title);
  sink.title_();
  sink.head_();
  sink.body();
  sink.lineBreak();
  Path indexHtmlFile = Paths.get(getReportDirectory(), "index.html");
  String relativePath = Paths.get(reportingOutputDirectory)
      .relativize(indexHtmlFile).toString();
  sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
      relativePath));
  sink.link(relativePath);
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: net.thucydides.maven.plugins/maven-thucydides-plugin

public void generateReport(TestOutcomes testOutcomes, Sink sink) {
  sink.head();
  generateTitle(sink);
  sink.head_();
  sink.body();
  generateOverviewSection(sink);
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: stackoverflow.com

Sink sink = getSink();
   sink.head();
   sink.title();
   sink.text("Hello");
   sink.title_();
   sink.head_();
   sink.body();
   sink.rawText("Hello World");
   sink.body_();
   sink.flush();
   sink.close();

代码示例来源:origin: org.apache.maven.plugins/maven-checkstyle-plugin

public void generateReport( CheckstyleResults results )
{
  doHeading();
  if ( getSeverityLevel() == null )
  {
    if ( enableSeveritySummary )
    {
      doSeveritySummary( results );
    }
    if ( enableFilesSummary )
    {
      doFilesSummary( results );
    }
    if ( enableRulesSummary )
    {
      doRulesSummary( results );
    }
  }
  doDetails( results );
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin

sink.flush();
sink.close();

代码示例来源:origin: org.codehaus.mojo/javacc-maven-plugin

sink.flush();
sink.close();

代码示例来源:origin: org.apache.maven.plugins/maven-dependency-plugin

sink.flush();
sink.close();

代码示例来源:origin: org.jvnet.hudson.plugins/jdepend

public void doGenerateReport( ResourceBundle bundle, Sink sink, JDependParser jdepend )
{
  this.jdepend = jdepend;
  sink.head();
  sink.title();
  sink.text( bundle.getString( "report.title" ) ); //$NON-NLS-1$
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.metricresults" ) ); //$NON-NLS-1$
  sink.sectionTitle1_();
  doSectionLinks( bundle, sink );
  sink.lineBreak();
  sink.lineBreak();
  sink.text( bundle.getString( "report.intro" ) ); //$NON-NLS-1$
  sink.lineBreak();
  sink.lineBreak();
  doSummarySection( bundle, sink );
  doPackagesSection( bundle, sink );
  doCycleSection( bundle, sink );
  doExplanationSection( bundle, sink );
  sink.section1_();
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: apache/maven-surefire

sink.flush();

代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin

sink.flush();

代码示例来源:origin: org.apache.maven.doxia/doxia-doc-renderer

sink.flush();

代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki

sink.flush();
sink.close();

代码示例来源:origin: org.apache.maven.plugins/maven-project-info-reports-plugin

sink.flush();
sink.close();

相关文章