diff options
Diffstat (limited to 'scripting/java/org/openoffice/idesupport/xml/Manifest.java')
-rw-r--r-- | scripting/java/org/openoffice/idesupport/xml/Manifest.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/scripting/java/org/openoffice/idesupport/xml/Manifest.java b/scripting/java/org/openoffice/idesupport/xml/Manifest.java index a349ff51d60f..9bd6d2576798 100644 --- a/scripting/java/org/openoffice/idesupport/xml/Manifest.java +++ b/scripting/java/org/openoffice/idesupport/xml/Manifest.java @@ -120,33 +120,6 @@ public class Manifest { return result; } - private InputStream replaceNewlines(byte[] bytes) throws IOException { - InputStream result; - ByteArrayOutputStream out; - BufferedReader reader; - - reader = new BufferedReader(new InputStreamReader( - new ByteArrayInputStream(bytes))); - out = new ByteArrayOutputStream(); - - int previous = reader.read(); - out.write(previous); - int current; - - while ((current = reader.read()) != -1) { - if (((char)current == '\n' || (char)current == ' ') && - (char)previous == '\n') - continue; - else { - out.write(current); - previous = current; - } - } - result = new ByteArrayInputStream(out.toByteArray()); - - return result; - } - public void write(OutputStream out) throws IOException { XMLParserFactory.getParser().write(document, out); } |