aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExporter.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-21 03:47:44 +0100
committerMax <post@wickenrode.com>2015-11-21 03:47:44 +0100
commit966ee1615e16bf1e4864d61d5346296d546f6227 (patch)
treebf7ee9bffa80efdcb6f298ec9b9052acca4f0565 /Source/SPExporter.m
parent7d4ec977bfdc0fea0af962d3859ba6d39c3c3a2d (diff)
downloadsequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.tar.gz
sequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.tar.bz2
sequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.zip
Move some shared code to the parent class
Diffstat (limited to 'Source/SPExporter.m')
-rw-r--r--Source/SPExporter.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPExporter.m b/Source/SPExporter.m
index adfe0545..ff90853c 100644
--- a/Source/SPExporter.m
+++ b/Source/SPExporter.m
@@ -119,6 +119,16 @@
[[[self exportOutputFile] exportFileHandle] setCompressionFormat:(compress) ? [self exportOutputCompressionFormat] : SPNoCompression];
}
+- (void)writeString:(NSString *)input
+{
+ [[self exportOutputFile] writeData:[input dataUsingEncoding:[self exportOutputEncoding]]];
+}
+
+- (void)writeUTF8String:(NSString *)input
+{
+ [[self exportOutputFile] writeData:[input dataUsingEncoding:NSUTF8StringEncoding]];
+}
+
/**
* Get rid of the export data.
*/