public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(java.io.InputStream source,
java.io.OutputStream target) |
static void |
copy(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry entry,
java.io.OutputStream target) |
static java.util.function.Predicate<java.lang.String> |
createPathFilter(java.util.Collection<java.lang.String> filters) |
static java.lang.String |
pathFilterToRegexp(java.util.Collection<java.lang.String> filters)
Create a regular expression from an Ant-Style path filter.
|
static byte[] |
toByteArray(java.util.zip.ZipFile zf,
java.util.zip.ZipEntry entry) |
public static byte[] toByteArray(java.util.zip.ZipFile zf,
java.util.zip.ZipEntry entry)
throws java.io.IOException
java.io.IOExceptionpublic static void copy(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry entry,
java.io.OutputStream target)
throws java.io.IOException
java.io.IOExceptionpublic static void copy(java.io.InputStream source,
java.io.OutputStream target)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.function.Predicate<java.lang.String> createPathFilter(java.util.Collection<java.lang.String> filters)
public static java.lang.String pathFilterToRegexp(java.util.Collection<java.lang.String> filters)
Supports: - ? matches one character - * matches zero or more characters (within a path segment) - ** matches zero or more path segments
filters - the Ant-style path filters.