Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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