类 CodeFileUtils

java.lang.Object
cloud.opencode.base.util.CodeFileUtils

public final class CodeFileUtils extends Object
版本:
v1.0.0
作者:
Jon So, e-mail: ijonso123@gmail.com url: Jon's blog url: project github
  • 构造器详细资料

    • CodeFileUtils

      private CodeFileUtils()
  • 方法详细资料

    • getBytes

      public static byte[] getBytes(String path) throws IOException
      Read files from the resource directory as byte arrays
      参数:
      path -
      返回:
      byte[]
      抛出:
      IOException
    • getStream

      public static InputStream getStream(String path) throws IOException
      Read a file from a resource directory as a file stream
      参数:
      path -
      返回:
      stream
      抛出:
      IOException