Class SmallFileSubstitutionHandler
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.FileSubstitutionHandler
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.SmallFileSubstitutionHandler
-
- All Implemented Interfaces:
Substitutable
public class SmallFileSubstitutionHandler extends FileSubstitutionHandler
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.servermgmt.stringsubs.impl.FileSubstitutionHandler
_inputFile, _logger, _reader, _strings, _writer
-
-
Constructor Summary
Constructors Constructor Description SmallFileSubstitutionHandler(File file)Constructs theSmallFileSubstitutionHandlerfor the given input file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadergetReader()Gets the character stream from the input.WritergetWriter()Gets theWriterobject to write the character stream in to the output.-
Methods inherited from class com.sun.enterprise.admin.servermgmt.stringsubs.impl.FileSubstitutionHandler
finish, getName
-
-
-
-
Constructor Detail
-
SmallFileSubstitutionHandler
public SmallFileSubstitutionHandler(File file) throws FileNotFoundException
Constructs theSmallFileSubstitutionHandlerfor the given input file.- Parameters:
file- Input file.- Throws:
FileNotFoundException- If file is not found.
-
-
Method Detail
-
getReader
public Reader getReader()
Description copied from interface:SubstitutableGets the character stream from the input.Implementation note: It is a good idea for the input stream to be buffered.
- Returns:
- A Reader.
-
getWriter
public Writer getWriter()
Description copied from interface:SubstitutableGets theWriterobject to write the character stream in to the output.Implementation note: It is a good idea for the output stream to be buffered.
- Returns:
- A Writer.
-
-