Class ArchiveMemberHandler
java.lang.Object
com.sun.enterprise.admin.servermgmt.stringsubs.impl.ArchiveMemberHandler
- All Implemented Interfaces:
ArchiveMember,Substitutable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveMemberHandler(File file, ArchiveEntryWrapper wrapper) Constructs theArchiveMemberHandlerfor the given input file. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Called at the completion of the substitution process to perform post operation.getName()Gets the processing entity name on which string substitution operation is carrying on.Gets theArchiveEntryWrapperof the member entry.Gets the character stream from the input.Gets theWriterobject to write the character stream in to the output.
-
Constructor Details
-
ArchiveMemberHandler
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 Details
-
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
Description copied from interface:ArchiveMemberGets theArchiveEntryWrapperof the member entry.- Specified by:
getParentin interfaceArchiveMember- Returns:
- The parental archive wrapper of the entry.
-
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
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
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.
-