com.infoengine.ieinstall
Class IePropertiesAction.MyTextDerivedFile
java.lang.Object
com.ptc.windchill.structconf.DerivedFile
com.infoengine.ieinstall.IePropertiesAction.MyTextDerivedFile
- Enclosing class:
- IePropertiesAction
- private class IePropertiesAction.MyTextDerivedFile
- extends DerivedFile
Inner class to handle writing the destination file.
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 |
file_
private File file_
lines_
private ArrayList lines_
IePropertiesAction.MyTextDerivedFile
IePropertiesAction.MyTextDerivedFile(File file)
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.