- java.lang.Object
-
- com.sun.codemodel.JResourceFile
-
- 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 ([email protected])
-
-
Constructor Summary
Constructors Constructor Description JBinaryFile(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(OutputStream os)
called by JPackage to produce the file image.OutputStream
getDataStore()
-
Methods inherited from class com.sun.codemodel.JResourceFile
isResource, name
-
-
-
-
Constructor Detail
-
JBinaryFile
public JBinaryFile(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:JResourceFile
called by JPackage to produce the file image.- Specified by:
build
in classJResourceFile
- Throws:
IOException
-
-