Package de.willuhn.io
Class IOUtil
java.lang.Object
de.willuhn.io.IOUtil
Util-Klasse mit Hilfsfunktionen fuer Streams.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanSchliesst Streams.static longcopy(InputStream is, OutputStream os) Kopiert die Daten vom InputStream in den OutputStream.
-
Constructor Details
-
IOUtil
public IOUtil()
-
-
Method Details
-
copy
Kopiert die Daten vom InputStream in den OutputStream.- Parameters:
is- Quell-Stream.os- Ziel-Stream.- Returns:
- Anzahl der kopierten Bytes.
- Throws:
IOException
-
close
Schliesst Streams. Ggf. auftretende Exceptions werden nicht weitergeworfen sondern nur geloggt.- Parameters:
closeables- Liste zu schliessender Streams. NULL wird toleriert.- Returns:
- true, wenn das Schliessen erfolgreich war, sonst false.
-