com.sun.codemodel.fmt
Class JTextFile

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

public class JTextFile
extends JResourceFile

Simple text file.

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

Constructor Summary
JTextFile(String name)
           
 
Method Summary
 void build(OutputStream out)
          called by JPackage to produce the file image.
 void setContents(String _contents)
           
 
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

JTextFile

public JTextFile(String name)
Method Detail

setContents

public void setContents(String _contents)

build

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

Specified by:
build in class JResourceFile
Throws:
IOException


Copyright © 2005-2013 Oracle. All Rights Reserved.