Package org.jboss.as.jdr.util
Class Utils
java.lang.Object
org.jboss.as.jdr.util.Utils
User: csams
Date: 11/4/12
Time: 3:40 PM
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSymlink(org.jboss.vfs.VirtualFile vFile) static booleanreadLines(InputStream input) static voidstatic voidstatic voidskip(InputStream is, long amount) Ensure InputStream actually skips ahead the required number of bytesstatic byte[]toBytes(org.jboss.vfs.VirtualFile r) static StringtoString(org.jboss.vfs.VirtualFile r)
-
Field Details
-
MANIFEST_NAME
- See Also:
-
LINE_SEP
-
WIN_SEP
public static final char WIN_SEP- See Also:
-
SYS_SEP
public static final char SYS_SEP -
ONE_KB
public static final long ONE_KB- See Also:
-
ONE_MB
public static final long ONE_MB- See Also:
-
ONE_GB
public static final long ONE_GB- See Also:
-
ONE_TB
public static final long ONE_TB- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
safeClose
-
safelyClose
-
readLines
- Throws:
IOException
-
toString
- Throws:
IOException
-
toBytes
- Throws:
IOException
-
skip
Ensure InputStream actually skips ahead the required number of bytes- Parameters:
is-amount-- Throws:
IOException
-
isSymlink
- Throws:
IOException
-
isWindows
public static boolean isWindows()
-