Class JResourceFile

java.lang.Object
com.sun.codemodel.JResourceFile
Direct Known Subclasses:
JBinaryFile, JPropertyFile, JSerializedObject, JStaticFile, JStaticJavaFile, JTextFile

public abstract class JResourceFile extends Object
Represents a resource file in the application-specific file format.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    called by JPackage to produce the file image.
    protected boolean
    Returns true if this file should be generated into the directory that the resource files go into.
    Gets the name of this property file

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      private final String name
  • Constructor Details

    • JResourceFile

      protected JResourceFile(String name)
  • Method Details

    • name

      public String name()
      Gets the name of this property file
    • isResource

      protected boolean isResource()
      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.

    • build

      protected abstract void build(OutputStream os) throws IOException
      called by JPackage to produce the file image.
      Throws:
      IOException