Class FileUtils


  • public class FileUtils
    extends Object
    • Constructor Detail

      • FileUtils

        public FileUtils()
    • Method Detail

      • getCurrDirPathStr

        public static String getCurrDirPathStr()
        Get current dir (without resolving symlinks), and normalize path by calling FastPathResolver.resolve().
      • isClassfile

        public static boolean isClassfile​(String path)
        Returns true if path has a .class extension, ignoring case.
      • byteBufferToInputStream

        public static InputStream byteBufferToInputStream​(ByteBuffer byteBuffer)
        Produce an InputStream from a ByteBuffer. From: https://stackoverflow.com/questions/4332264/wrapping-a-bytebuffer-with-an-inputstream/6603018#6603018