Package com.sun.codemodel.fmt
Class JStaticFile
java.lang.Object
com.sun.codemodel.JResourceFile
com.sun.codemodel.fmt.JStaticFile
Allows an application to copy a resource file to the output.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Constructor Summary
ConstructorsConstructorDescriptionJStaticFile(ClassLoader _classLoader, String _resourceName, boolean isResource) JStaticFile(String _resourceName) JStaticFile(String _resourceName, boolean isResource) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild(OutputStream os) called by JPackage to produce the file image.protected booleanReturns true if this file should be generated into the directory that the resource files go into.Methods inherited from class com.sun.codemodel.JResourceFile
name
-
Constructor Details
-
JStaticFile
-
JStaticFile
-
JStaticFile
- 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:JResourceFileReturns 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:
isResourcein classJResourceFile
-
build
Description copied from class:JResourceFilecalled by JPackage to produce the file image.- Specified by:
buildin classJResourceFile- Throws:
IOException
-