org.mule.devkit.model.code.fmt
Class StaticFile

java.lang.Object
  extended by org.mule.devkit.model.code.ResourceFile
      extended by org.mule.devkit.model.code.fmt.StaticFile

public final class StaticFile
extends ResourceFile

Allows an application to copy a resource file to the output.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Constructor Summary
StaticFile(ClassLoader _classLoader, String _resourceName, boolean isResource)
           
StaticFile(String _resourceName)
           
StaticFile(String _resourceName, boolean isResource)
           
 
Method Summary
protected  void build(OutputStream os)
          called by Package 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 org.mule.devkit.model.code.ResourceFile
name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticFile

public StaticFile(String _resourceName)

StaticFile

public StaticFile(String _resourceName,
                  boolean isResource)

StaticFile

public StaticFile(ClassLoader _classLoader,
                  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: ResourceFile
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 ResourceFile

build

protected void build(OutputStream os)
              throws IOException
Description copied from class: ResourceFile
called by Package to produce the file image.

Specified by:
build in class ResourceFile
Throws:
IOException


Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.