Class JStaticFile


  • public final class JStaticFile
    extends JResourceFile
    Allows an application to copy a resource file to the output.
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      JStaticFile​(java.lang.ClassLoader _classLoader, java.lang.String _resourceName, boolean isResource)  
      JStaticFile​(java.lang.String _resourceName)  
      JStaticFile​(java.lang.String _resourceName, boolean isResource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void build​(java.io.OutputStream os)
      called by JPackage to produce the file image.
      protected boolean isResource()
      Returns true if this file should be generated into the directory that the resource files go into.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JStaticFile

        public JStaticFile​(java.lang.String _resourceName)
      • JStaticFile

        public JStaticFile​(java.lang.String _resourceName,
                           boolean isResource)
      • JStaticFile

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

      • 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​(java.io.OutputStream os)
                      throws java.io.IOException
        Description copied from class: JResourceFile
        called by JPackage to produce the file image.
        Specified by:
        build in class JResourceFile
        Throws:
        java.io.IOException