public class FileUtils extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FileUtils.ByteBufferBackedInputStream |
InputStream for backed by a ByteBuffer.
|
Constructor | Description |
---|---|
FileUtils() |
Modifier and Type | Method | Description |
---|---|---|
static String |
getCurrDirPathStr() |
Get current dir (without resolving symlinks), and normalize path by calling FastPathResolver.resolve().
|
static boolean |
isClassfile(String path) |
Returns true if path has a .class extension, ignoring case.
|
static byte[] |
readAllBytes(InputStream inputStream,
long fileSize,
LogNode log) |
Read all the bytes in an InputStream.
|
public static String getCurrDirPathStr()
public static byte[] readAllBytes(InputStream inputStream, long fileSize, LogNode log) throws IOException
IOException
public static boolean isClassfile(String path)
Copyright © 2018. All rights reserved.