Skip to content

Commit

Permalink
rem useless method
Browse files Browse the repository at this point in the history
  • Loading branch information
phlppchrtn committed Jun 2, 2024
1 parent 5b8f1fe commit 54f161a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions vertigo-core/src/main/java/io/vertigo/core/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -66,24 +65,14 @@ public static String read(final URL url) {
Assertion.check().isNotNull(url);
//---
try {
Path path = Paths.get(url.toURI());
List<String> lines = Files.readAllLines(path, StandardCharsets.UTF_8);
final Path path = Paths.get(url.toURI());
final List<String> lines = Files.readAllLines(path, StandardCharsets.UTF_8);
return String.join("\r\n", lines);
} catch (final IOException | URISyntaxException e) {
throw WrappedException.wrap(e, "Error when reading file : '{0}'", url);
}
}

/**
* Copie le contenu d'un flux d'entrée vers un flux de sortie.
* @param in flux d'entrée
* @param out flux de sortie
* @throws IOException Erreur d'entrée/sortie
*/
public static void copy(final InputStream in, final OutputStream out) throws IOException {
in.transferTo(out);
}

/**
* Copie le contenu d'un flux d'entrée vers un fichier de sortie.
* @param in flux d'entrée
Expand Down

0 comments on commit 54f161a

Please sign in to comment.