com.sun.codemodel
Class JResourceFile

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

public abstract class JResourceFile
extends java.lang.Object

Represents a resource file in the application-specific file format.


Constructor Summary
protected JResourceFile(java.lang.String name)
           
 
Method Summary
protected abstract  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.
 java.lang.String name()
          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
 

Constructor Detail

JResourceFile

protected JResourceFile(java.lang.String name)
Method Detail

name

public java.lang.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(java.io.OutputStream os)
                       throws java.io.IOException
called by JPackage to produce the file image.

Throws:
java.io.IOException


Copyright © 2005-2010 Sun Microsystems. All Rights Reserved.