From 966ee1615e16bf1e4864d61d5346296d546f6227 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 21 Nov 2015 03:47:44 +0100 Subject: Move some shared code to the parent class --- Source/SPExporter.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Source/SPExporter.h') diff --git a/Source/SPExporter.h b/Source/SPExporter.h index a2a19020..83a519c4 100644 --- a/Source/SPExporter.h +++ b/Source/SPExporter.h @@ -130,9 +130,26 @@ - (void)setExportOutputCompressFile:(BOOL)compress; +#pragma mark Shared Private + /** * This is the method you should override in every concrete exporter implementation. */ - (void)exportOperation; +/** + * Write a string to the current output file using the current output encoding + * @param input The string to write + */ +- (void)writeString:(NSString *)input; + +/** + * Write a string to the current output file using UTF-8 encoding + * @param input The string to write + */ +#warning This method mainly exists to shorten some old code which sometimes uses [self exportOutputEncoding] and sometimes NSUTF8StringEncoding. \ + In general there should be no need to have more than one encoding in a file. \ + Someone needs to check if that was an oversight or intentional. +- (void)writeUTF8String:(NSString *)input; + @end -- cgit v1.2.3