Class FileSubstitutionHandler
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.FileSubstitutionHandler
-
- All Implemented Interfaces:
Substitutable
- Direct Known Subclasses:
LargeFileSubstitutionHandler,SmallFileSubstitutionHandler
public abstract class FileSubstitutionHandler extends Object implements Substitutable
-
-
Field Summary
Fields Modifier and Type Field Description protected File_inputFileInput file.protected static Logger_loggerprotected Reader_readerAReaderto read the character stream from input file.protected static com.sun.enterprise.universal.i18n.LocalStringsImpl_stringsprotected Writer_writerAWriterto write the character stream to the output file.
-
Constructor Summary
Constructors Constructor Description FileSubstitutionHandler(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Called at the completion of the substitution process to perform post operation.StringgetName()Gets the processing entity name on which string substitution operation is carrying on.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.admin.servermgmt.stringsubs.Substitutable
getReader, getWriter
-
-
-
-
Constructor Detail
-
FileSubstitutionHandler
public FileSubstitutionHandler(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SubstitutableGets the processing entity name on which string substitution operation is carrying on.- Specified by:
getNamein interfaceSubstitutable- Returns:
- Name of the entity.
-
finish
public void finish()
Description copied from interface:SubstitutableCalled at the completion of the substitution process to perform post operation. For e.g closing of reader/writer, cleaning of the temporary data... etc.- Specified by:
finishin interfaceSubstitutable
-
-