Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2018-03-08 16:42:16 +0000
committerPascal Rapicault2018-03-08 16:44:54 +0000
commit24340160c151ff44879ba7e15993493b7df8309a (patch)
treef2fbf17dba293ade3876a44a7c5248587868cd9a
parent49a2b23fc14a2b56e34d271081ba71e1a430c6bf (diff)
downloadrt.equinox.p2-24340160c151ff44879ba7e15993493b7df8309a.tar.gz
rt.equinox.p2-24340160c151ff44879ba7e15993493b7df8309a.tar.xz
rt.equinox.p2-24340160c151ff44879ba7e15993493b7df8309a.zip
Bug 532190 - Buffered writing
Change-Id: I4630b8206e2f404573ea0fe971eb21e1aae49832 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLWriter.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLWriter.java
index 3a532f6ad..ee29a7548 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLWriter.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLWriter.java
@@ -61,7 +61,7 @@ public class XMLWriter implements XMLConstants {
private PrintWriter pw;
public XMLWriter(OutputStream output, ProcessingInstruction[] piElements) {
- this.pw = new PrintWriter(new OutputStreamWriter(output, StandardCharsets.UTF_8), false);
+ this.pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(output, StandardCharsets.UTF_8)), false);
println(ProcessingInstruction.XML_UTF8);
this.elements = new Stack<String>();
this.open = false;

Back to the top