public class ArchiveMemberHandler extends Object implements ArchiveMember
FileSubstitutionHandler| Constructor and Description |
|---|
ArchiveMemberHandler(File file,
ArchiveEntryWrapper wrapper)
Constructs the
ArchiveMemberHandler for the given input file. |
| Modifier and Type | Method and 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 the
ArchiveEntryWrapper of the member entry. |
Reader |
getReader()
Gets the character stream from the input.
|
Writer |
getWriter()
Gets the
Writer object to write the character stream in to
the output. |
public ArchiveMemberHandler(File file, ArchiveEntryWrapper wrapper) throws FileNotFoundException
ArchiveMemberHandler for the given input file.file - Member entry that has to undergo string substitution.wrapper - Parent archive of the input file.FileNotFoundException - If file is not found.public void finish()
Substitutablefinish in interface Substitutablepublic ArchiveEntryWrapper getParent()
ArchiveMemberArchiveEntryWrapper of the member entry.getParent in interface ArchiveMemberpublic String getName()
SubstitutablegetName in interface Substitutablepublic Reader getReader()
SubstitutableImplementation note: It is a good idea for the input stream to be buffered.
getReader in interface Substitutablepublic Writer getWriter()
SubstitutableWriter object to write the character stream in to
the output.
Implementation note: It is a good idea for the output stream to be buffered.
getWriter in interface SubstitutableCopyright © 2018 Eclipse Foundation. All rights reserved.