aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPXMLExporter.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/SPXMLExporter.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/SPXMLExporter.m')
-rw-r--r--Source/SPXMLExporter.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPXMLExporter.m b/Source/SPXMLExporter.m
index 39e89287..e1142d3a 100644
--- a/Source/SPXMLExporter.m
+++ b/Source/SPXMLExporter.m
@@ -157,7 +157,7 @@
[xmlString appendFormat:@"\t<table_data name=\"%@\">\n\n", [self xmlTableName]];
}
- [[self exportOutputFile] writeData:[xmlString dataUsingEncoding:[self exportOutputEncoding]]];
+ [self writeString:xmlString];
}
else {
totalRows = [[self xmlDataArray] count];
@@ -179,7 +179,7 @@
// If required, write an opening tag in the form of the table name
if ([self xmlFormat] == SPXMLExportPlainFormat) {
- [[self exportOutputFile] writeData:[[NSString stringWithFormat:@"\t<%@>\n", ([self xmlTableName]) ? [[self xmlTableName] HTMLEscapeString] : @"custom"] dataUsingEncoding:[self exportOutputEncoding]]];
+ [self writeString:[NSString stringWithFormat:@"\t<%@>\n", ([self xmlTableName]) ? [[self xmlTableName] HTMLEscapeString] : @"custom"]];
}
// Set up the starting row, which is 0 for streaming result sets and
@@ -295,7 +295,7 @@
currentPoolDataLength += [xmlString length];
// Write the row to the filehandle
- [[self exportOutputFile] writeData:[xmlString dataUsingEncoding:[self exportOutputEncoding]]];
+ [self writeString:xmlString];
// Update the progress counter and progress bar
currentRowIndex++;
@@ -324,10 +324,10 @@
}
if (([self xmlFormat] == SPXMLExportMySQLFormat) && isTableExport) {
- [[self exportOutputFile] writeData:[@"\t</table_data>\n\n" dataUsingEncoding:[self exportOutputEncoding]]];
+ [self writeString:@"\t</table_data>\n\n"];
}
else if ([self xmlFormat] == SPXMLExportPlainFormat) {
- [[self exportOutputFile] writeData:[[NSString stringWithFormat:@"\t</%@>\n\n", ([self xmlTableName]) ? [[self xmlTableName] HTMLEscapeString] : @"custom"] dataUsingEncoding:[self exportOutputEncoding]]];
+ [self writeString:[NSString stringWithFormat:@"\t</%@>\n\n", ([self xmlTableName]) ? [[self xmlTableName] HTMLEscapeString] : @"custom"]];
}
[xmlExportPool release];