public final class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LINE_SEP |
static String |
MANIFEST_NAME |
static long |
ONE_GB |
static long |
ONE_KB |
static long |
ONE_MB |
static long |
ONE_TB |
static char |
SYS_SEP |
static char |
WIN_SEP |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSymlink(org.jboss.vfs.VirtualFile vFile) |
static boolean |
isWindows() |
static List<String> |
readLines(InputStream input) |
static void |
safeClose(JarFile jf) |
static void |
safelyClose(InputStream is) |
static void |
skip(InputStream is,
long amount)
Ensure InputStream actually skips ahead the required number of bytes
|
static byte[] |
toBytes(org.jboss.vfs.VirtualFile r) |
static String |
toString(org.jboss.vfs.VirtualFile r) |
public static final String MANIFEST_NAME
public static final String LINE_SEP
public static final char WIN_SEP
public static final char SYS_SEP
public static final long ONE_KB
public static final long ONE_MB
public static final long ONE_GB
public static final long ONE_TB
public static void safeClose(JarFile jf)
public static void safelyClose(InputStream is)
public static List<String> readLines(InputStream input) throws IOException
IOExceptionpublic static String toString(org.jboss.vfs.VirtualFile r) throws IOException
IOExceptionpublic static byte[] toBytes(org.jboss.vfs.VirtualFile r)
throws IOException
IOExceptionpublic static void skip(InputStream is, long amount) throws IOException
is - amount - IOExceptionpublic static boolean isSymlink(org.jboss.vfs.VirtualFile vFile)
throws IOException
IOExceptionpublic static boolean isWindows()
Copyright © 2023 JBoss by Red Hat. All rights reserved.