Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-11-04 13:05:24 +0000
committerLars Vogel2019-11-05 09:23:24 +0000
commit3732a5c54b1c1c6638d789ec942569c1e94d28fe (patch)
tree4d2420c90c707ff5d9f2e5fe626e222666ddb6fe
parent2ae281fc55d6797bb96a6a0b87eec7c4bad9363d (diff)
downloadeclipse.platform.text-3732a5c54b1c1c6638d789ec942569c1e94d28fe.tar.gz
eclipse.platform.text-3732a5c54b1c1c6638d789ec942569c1e94d28fe.tar.xz
eclipse.platform.text-3732a5c54b1c1c6638d789ec942569c1e94d28fe.zip
Delete unused methods in FileTool of org.eclipse.search.tests
Change-Id: I5bf3e1d6e74bf2d7a06d2b56a5a86aa6fbbed1cd Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.search.tests/src/org/eclipse/search/tests/FileTool.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/FileTool.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/FileTool.java
index e23fb5c06..f6fb12a0d 100644
--- a/org.eclipse.search.tests/src/org/eclipse/search/tests/FileTool.java
+++ b/org.eclipse.search.tests/src/org/eclipse/search/tests/FileTool.java
@@ -17,13 +17,9 @@ package org.eclipse.search.tests;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
-import java.io.FileReader;
-import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.io.Reader;
-import java.io.Writer;
import java.net.URL;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
@@ -172,34 +168,6 @@ public class FileTool {
return stateLocation.toFile();
}
- public static StringBuffer read(String fileName) throws IOException {
- return read(new FileReader(fileName));
- }
-
- public static StringBuffer read(Reader reader) throws IOException {
- StringBuffer s= new StringBuffer();
- try {
- char[] charBuffer= new char[8196];
- int chars= reader.read(charBuffer);
- while (chars != -1) {
- s.append(charBuffer, 0, chars);
- chars= reader.read(charBuffer);
- }
- } finally {
- try {
- reader.close();
- } catch (IOException e) {
- }
- }
- return s;
- }
-
- public static void write(String fileName, StringBuffer content) throws IOException {
- try (Writer writer= new FileWriter(fileName)) {
- writer.write(content.toString());
- }
- }
-
public static void delete(File file) {
if (file.exists()) {
for (int i= 0; i < MAX_RETRY; i++) {

Back to the top