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

public final Class JBinaryFile

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

Allows the application to use OutputStream to define data that will be stored into a file.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final ByteArrayOutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

called by JPackage to produce the file image.

public OutputStream
getDataStore()

Returns: Data written to the returned output stream will be written to the file.

Inherited from com.sun.codemodel.JResourceFile:
isResourcename

Field Detail

baosback to summary
private final ByteArrayOutputStream baos

Constructor Detail

JBinaryFileback to summary
public JBinaryFile(String name)

Method Detail

buildback to summary
public 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
getDataStoreback to summary
public OutputStream getDataStore()
Returns:OutputStream

Data written to the returned output stream will be written to the file.