com.infoengine.ieinstall
Class IePropertiesAction.MyTextDerivedFile

java.lang.Object
  extended bycom.ptc.windchill.structconf.DerivedFile
      extended bycom.infoengine.ieinstall.IePropertiesAction.MyTextDerivedFile
Enclosing class:
IePropertiesAction

private class IePropertiesAction.MyTextDerivedFile
extends DerivedFile

Inner class to handle writing the destination file.


Field Summary
private  File file_
           
private  ArrayList lines_
           
 
Constructor Summary
(package private) IePropertiesAction.MyTextDerivedFile(File file)
           
 
Method Summary
 void addLine(String line)
           
 File getTargetFile()
           
 void write(BufferedOutputStream bos)
          Write the contents of the derived file returned in getTargetFile() to the BufferedOutputStream.
 
Methods inherited from class com.ptc.windchill.structconf.DerivedFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file_

private File file_

lines_

private ArrayList lines_
Constructor Detail

IePropertiesAction.MyTextDerivedFile

IePropertiesAction.MyTextDerivedFile(File file)
Method Detail

getTargetFile

public File getTargetFile()
Specified by:
getTargetFile in class DerivedFile

addLine

public void addLine(String line)

write

public void write(BufferedOutputStream bos)
           throws IOException
Description copied from class: DerivedFile
Write the contents of the derived file returned in getTargetFile() to the BufferedOutputStream. If character set conversion is desired, then use java.util.OutputStreamWriter to produce an appropriate writer.

Subclasses needs only worry about flushing the stream if they wrap the stream with a buffering stream of their own. Otherwise this base class manages flushing and closing the stream.

Note subclasses should not supposed directly open and close the file streams themselfs. The sturcutured configuration manager does this to facility proper backup and recovery in the event of a file writing failure.

Specified by:
write in class DerivedFile
Throws:
IOException - subclasses may throw an IOException to signal problems while writing the DerivedFile contents.