com.sun.codemodel.fmt
Class JBinaryFile

java.lang.Object
  extended by com.sun.codemodel.JResourceFile
      extended by com.sun.codemodel.fmt.JBinaryFile

public final class JBinaryFile
extends JResourceFile

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
JBinaryFile(java.lang.String name)
           
 
Method Summary
 void build(java.io.OutputStream os)
          called by JPackage to produce the file image.
 java.io.OutputStream getDataStore()
           
 
Methods inherited from class com.sun.codemodel.JResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBinaryFile

public JBinaryFile(java.lang.String name)
Method Detail

getDataStore

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

build

public void build(java.io.OutputStream os)
           throws java.io.IOException
Description copied from class: JResourceFile
called by JPackage to produce the file image.

Specified by:
build in class JResourceFile
Throws:
java.io.IOException


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