类 CodeFileUtils

java.lang.Object
com.abasecode.opencode.base.util.CodeFileUtils

public class CodeFileUtils extends Object
作者:
Jon e-mail: ijonso123@gmail.com url: Jon's blog url: project github url: AbaseCode.com
  • 构造器详细资料

    • CodeFileUtils

      public 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