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 theArchiveMemberHandler
for the given input file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
Called at the completion of the substitution process to perform post operation.String
getName()
Gets the processing entity name on which string substitution operation is carrying on.ArchiveEntryWrapper
getParent()
Gets theArchiveEntryWrapper
of the member entry.Reader
getReader()
Gets the character stream from the input.Writer
getWriter()
Gets theWriter
object to write the character stream in to the output.
-
-
-
Constructor Detail
-
ArchiveMemberHandler
public ArchiveMemberHandler(File file, ArchiveEntryWrapper wrapper) throws FileNotFoundException
Constructs theArchiveMemberHandler
for 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: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 interfaceSubstitutable
-
getParent
public ArchiveEntryWrapper getParent()
Description copied from interface:ArchiveMember
Gets theArchiveEntryWrapper
of the member entry.- Specified by:
getParent
in interfaceArchiveMember
- Returns:
- The parental archive wrapper of the entry.
-
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 interfaceSubstitutable
- Returns:
- Name of the entity.
-
getReader
public Reader getReader()
Description copied from interface:Substitutable
Gets the character stream from the input.Implementation note: It is a good idea for the input stream to be buffered.
- Specified by:
getReader
in interfaceSubstitutable
- Returns:
- A Reader.
-
getWriter
public Writer getWriter()
Description copied from interface:Substitutable
Gets theWriter
object 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:
getWriter
in interfaceSubstitutable
- Returns:
- A Writer.
-
-