org.jboss.virtual.plugins.copy
Class TempCopyMechanism
java.lang.Object
org.jboss.virtual.plugins.copy.AbstractCopyMechanism
org.jboss.virtual.plugins.copy.ExactCopyMechanism
org.jboss.virtual.plugins.copy.TempCopyMechanism
- All Implemented Interfaces:
- CopyMechanism
public class TempCopyMechanism
- extends ExactCopyMechanism
Copy any non-temp file into temp dir.
- Author:
- Ales Justin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final TempCopyMechanism INSTANCE
TempCopyMechanism
public TempCopyMechanism()
getType
protected String getType()
- Description copied from class:
AbstractCopyMechanism
- Get mechanism type.
- Specified by:
getType in class AbstractCopyMechanism
- Returns:
- the type
isAlreadyModified
protected boolean isAlreadyModified(VirtualFileHandler handler)
throws IOException
- Description copied from class:
AbstractCopyMechanism
- Is handler already modified.
- Specified by:
isAlreadyModified in class AbstractCopyMechanism
- Parameters:
handler - the handler
- Returns:
- true if already modified
- Throws:
IOException - for any error
replaceOldHandler
protected boolean replaceOldHandler(VirtualFileHandler parent,
VirtualFileHandler oldHandler,
VirtualFileHandler newHandler)
throws IOException
- Description copied from class:
AbstractCopyMechanism
- Should we replace old handler with new.
- Specified by:
replaceOldHandler in class AbstractCopyMechanism
- Parameters:
parent - the parent handleroldHandler - the old handlernewHandler - the new handler
- Returns:
- true if needs replacement
- Throws:
IOException - for any error
Copyright © 2011 JBoss, A division of Red Hat, Inc. All Rights Reserved.