Interface WritingStrategy
-
- All Known Implementing Classes:
WritingStrategy.WritePartStrategy
public interface WritingStrategyWays to write a file and embed the version comment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWritingStrategy.WritePartStrategy
-
Field Summary
Fields Modifier and Type Field Description static WritingStrategyWITHOUTVERSIONWrites the raw file without the cersion comment.static WritingStrategyWITHVERSIONWrites the file with the version comment.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AIVersionMarkergetRecordedVersionMarker(File output)Version of current output file.voidwrite(File output, String content, String versionComment)
-
-
-
Field Detail
-
WITHOUTVERSION
static final WritingStrategy WITHOUTVERSION
Writes the raw file without the cersion comment.
-
WITHVERSION
static final WritingStrategy WITHVERSION
Writes the file with the version comment.
-
-
Method Detail
-
write
void write(@Nonnull File output, @Nonnull String content, @Nonnull String versionComment) throws IOException- Throws:
IOException
-
getRecordedVersionMarker
AIVersionMarker getRecordedVersionMarker(@Nonnull File output) throws IOException
Version of current output file.- Throws:
IOException
-
-