Interface CXMLChangelogWriterProviderType

All Superinterfaces:
CChangelogWriterProviderType
All Known Implementing Classes:
CXMLChangelogWriters

public interface CXMLChangelogWriterProviderType
extends CChangelogWriterProviderType
The type of writer providers.
  • Method Summary

    Modifier and Type Method Description
    CXMLChangelogWriterType create​(java.net.URI uri, java.io.OutputStream stream)
    Create a new writer.
    default void write​(java.nio.file.Path file, java.nio.file.Path fileTemp, CChangelog changelog)
    Create a new writer, write the contents of changelog to fileTemp and then atomically rename fileTemp to file.
  • Method Details

    • create

      CXMLChangelogWriterType create​(java.net.URI uri, java.io.OutputStream stream) throws java.io.IOException
      Description copied from interface: CChangelogWriterProviderType
      Create a new writer.
      Specified by:
      create in interface CChangelogWriterProviderType
      Parameters:
      uri - The URI of the stream, for diagnostic messages
      stream - The stream
      Returns:
      A new writer
      Throws:
      java.io.IOException - On I/O errors
    • write

      default void write​(java.nio.file.Path file, java.nio.file.Path fileTemp, CChangelog changelog) throws java.io.IOException
      Create a new writer, write the contents of changelog to fileTemp and then atomically rename fileTemp to file.
      Parameters:
      file - The output file
      fileTemp - The temporary output file
      changelog - The changelog
      Throws:
      java.io.IOException - On I/O errors