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

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

public final class BinaryFile
extends ResourceFile

Allows the application to use OutputStream to define data that will be stored into a file.

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

Constructor Summary
BinaryFile(String name)
           
 
Method Summary
 void build(OutputStream os)
          called by Package to produce the file image.
 OutputStream getDataStore()
           
 
Methods inherited from class org.mule.devkit.model.code.ResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFile

public BinaryFile(String name)
Method Detail

getDataStore

public OutputStream getDataStore()
Returns:
Data written to the returned output stream will be written to the file.

build

public 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-2013 MuleSoft, Inc.. All Rights Reserved.