Package com.io7m.changelog.xml.api
Interface CXMLChangelogWriterProviderType
- All Superinterfaces:
CChangelogWriterProviderType
- All Known Implementing Classes:
CXMLChangelogWriters
The type of writer providers.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(URI uri, OutputStream stream) Create a new writer.default voidwrite(Path file, Path fileTemp, CChangelog changelog) Create a new writer, write the contents ofchangelogtofileTempand then atomically renamefileTemptofile.
-
Method Details
-
create
Description copied from interface:CChangelogWriterProviderTypeCreate a new writer.- Specified by:
createin interfaceCChangelogWriterProviderType- Parameters:
uri- The URI of the stream, for diagnostic messagesstream- The stream- Returns:
- A new writer
- Throws:
IOException- On I/O errors
-
write
Create a new writer, write the contents ofchangelogtofileTempand then atomically renamefileTemptofile.- Parameters:
file- The output filefileTemp- The temporary output filechangelog- The changelog- Throws:
IOException- On I/O errors
-