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
Abstract class initialize the input file for the string substitution. The sub-classes provides the way to create the Reader and Writer for the input invalid input: '&' output file.
  • Field Details

    • _logger

      protected static final Logger _logger
    • _strings

      protected static final com.sun.enterprise.universal.i18n.LocalStringsImpl _strings
    • _reader

      protected Reader _reader
      A Reader to read the character stream from input file.
    • _writer

      protected Writer _writer
      A Writer to write the character stream to the output file.
    • _inputFile

      protected File _inputFile
      Input file.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Substitutable
      Gets the processing entity name on which string substitution operation is carrying on.
      Specified by:
      getName in interface Substitutable
      Returns:
      Name of the entity.
    • finish

      public void finish()
      Description copied from interface: Substitutable
      Called 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:
      finish in interface Substitutable