public final class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream inputStream,
OutputStream os)
Backport of
InputStream#transferTo(OutputStream)
in order to support JDK 8 |
static void |
extract(URL archiveUrl,
Path destinationDir) |
static void |
untar(InputStream inputStream,
File targetDir) |
static void |
unzip(ZipInputStream zipInputStream,
Path targetPath) |
public static void extract(URL archiveUrl, Path destinationDir) throws IOException
IOExceptionpublic static void unzip(ZipInputStream zipInputStream, Path targetPath) throws IOException
IOExceptionpublic static void untar(InputStream inputStream, File targetDir) throws IOException
IOExceptionpublic static void copy(InputStream inputStream, OutputStream os) throws IOException
InputStream#transferTo(OutputStream)
in order to support JDK 8IOExceptionInputStream#transferTo(OutputStream)