Class ArchiveMemberHandler
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.ArchiveMemberHandler
-
- All Implemented Interfaces:
ArchiveMember,Substitutable
public class ArchiveMemberHandler extends Object implements ArchiveMember
- See Also:
FileSubstitutionHandler
-
-
Constructor Summary
Constructors Constructor Description ArchiveMemberHandler(File file, ArchiveEntryWrapper wrapper)Constructs theArchiveMemberHandlerfor the given input 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.ArchiveEntryWrappergetParent()Gets theArchiveEntryWrapperof the member entry.ReadergetReader()Gets the character stream from the input.WritergetWriter()Gets theWriterobject to write the character stream in to the output.
-
-
-
Constructor Detail
-
ArchiveMemberHandler
public ArchiveMemberHandler(File file, ArchiveEntryWrapper wrapper) throws FileNotFoundException
Constructs theArchiveMemberHandlerfor the given input file.- Parameters:
file- Member entry that has to undergo string substitution.wrapper- Parent archive of the input file.- Throws:
FileNotFoundException- If file is not found.
-
-
Method Detail
-
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
-
getParent
public ArchiveEntryWrapper getParent()
Description copied from interface:ArchiveMemberGets theArchiveEntryWrapperof the member entry.- Specified by:
getParentin interfaceArchiveMember- Returns:
- The parental archive wrapper of the entry.
-
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.
-
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.
- Specified by:
getReaderin interfaceSubstitutable- 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.
- Specified by:
getWriterin interfaceSubstitutable- Returns:
- A Writer.
-
-