Top Description Fields Constructors Methods
com.sun.codemodel.fmt

public final Class JStaticFile

extends JResourceFile
Class Inheritance
Imports
java.io.DataInputStream, .IOException, .OutputStream, com.sun.codemodel.JResourceFile

Allows an application to copy a resource file to the output.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
public
JStaticFile(String _resourceName)

public
JStaticFile(String _resourceName, boolean isResource)

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

Method Summary

Modifier and TypeMethod and Description
protected void
build(OutputStream os)

Implements abstract com.sun.codemodel.JResourceFile.build.

called by JPackage to produce the file image.

protected boolean
isResource()

Overrides com.sun.codemodel.JResourceFile.isResource.

Returns true if this file should be generated into the directory that the resource files go into.

Inherited from com.sun.codemodel.JResourceFile:
name

Field Detail

classLoaderback to summary
private final ClassLoader classLoader
isResourceback to summary
private final boolean isResource
resourceNameback to summary
private final String resourceName

Constructor Detail

JStaticFileback to summary
public JStaticFile(String _resourceName)
JStaticFileback to summary
public JStaticFile(String _resourceName, boolean isResource)
JStaticFileback to summary
public JStaticFile(ClassLoader _classLoader, String _resourceName, boolean isResource)
Parameters
isResource:boolean

false if this is a Java source file. True if this is other resource files.

Method Detail

buildback to summary
protected void build(OutputStream os) throws IOException

Implements abstract com.sun.codemodel.JResourceFile.build.

Doc from com.sun.codemodel.JResourceFile.build.

called by JPackage to produce the file image.

Annotations
@Override
isResourceback to summary
protected boolean isResource()

Overrides com.sun.codemodel.JResourceFile.isResource.

Doc from com.sun.codemodel.JResourceFile.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.

Annotations
@Override