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 FileinputFileInput file.protected static LoggerLOGGERprotected ReaderreaderAReaderto read the character stream from input file.protected static LocalStringsImplSTRINGSprotected WriterwriterAWriterto 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
-
-
-
-
Field Detail
-
LOGGER
protected static final Logger LOGGER
-
STRINGS
protected static final LocalStringsImpl STRINGS
-
inputFile
protected File inputFile
Input file.
-
-
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
-
-