Class JStaticFile

java.lang.Object
com.sun.codemodel.JResourceFile
com.sun.codemodel.fmt.JStaticFile

public final class JStaticFile extends JResourceFile
Allows an application to copy a resource file to the output.
Author:
Kohsuke Kawaguchi ([email protected])
  • Constructor Details

    • JStaticFile

      public JStaticFile(String _resourceName)
    • JStaticFile

      public JStaticFile(String _resourceName, boolean isResource)
    • JStaticFile

      public JStaticFile(ClassLoader _classLoader, String _resourceName, boolean isResource)
      Parameters:
      isResource - false if this is a Java source file. True if this is other resource files.
  • Method Details

    • isResource

      protected boolean isResource()
      Description copied from class: JResourceFile
      Returns true if this file should be generated into the directory that the resource files go into.

      Returns false if this file should be generated into the directory where other source files go.

      Overrides:
      isResource in class JResourceFile
    • build

      protected void build(OutputStream os) throws IOException
      Description copied from class: JResourceFile
      called by JPackage to produce the file image.
      Specified by:
      build in class JResourceFile
      Throws:
      IOException