org.jboss.virtual.plugins.copy
Class ExactCopyMechanism

java.lang.Object
  extended by org.jboss.virtual.plugins.copy.AbstractCopyMechanism
      extended by org.jboss.virtual.plugins.copy.ExactCopyMechanism
All Implemented Interfaces:
CopyMechanism
Direct Known Subclasses:
TempCopyMechanism, UnpackCopyMechanism

public abstract class ExactCopyMechanism
extends AbstractCopyMechanism

Excat copy mechanism.

Author:
Ales Justin

Constructor Summary
ExactCopyMechanism()
           
 
Method Summary
protected  File createCopy(File guidDir, VirtualFileHandler handler)
          Create copy destination.
protected  void doCopy(File copy, VirtualFileHandler handler)
          Do copy.
 
Methods inherited from class org.jboss.virtual.plugins.copy.AbstractCopyMechanism
copy, copy, createTempDirectory, exactCopy, explode, getTempDirectory, getType, isAlreadyModified, replaceOldHandler, rewrite, unjar, unpack, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactCopyMechanism

public ExactCopyMechanism()
Method Detail

createCopy

protected File createCopy(File guidDir,
                          VirtualFileHandler handler)
                   throws IOException
Description copied from class: AbstractCopyMechanism
Create copy destination.

Overrides:
createCopy in class AbstractCopyMechanism
Parameters:
guidDir - the guid dir
handler - the handler to copy
Returns:
copy's destination
Throws:
IOException - for any error

doCopy

protected void doCopy(File copy,
                      VirtualFileHandler handler)
               throws IOException
Description copied from class: AbstractCopyMechanism
Do copy.

Specified by:
doCopy in class AbstractCopyMechanism
Parameters:
copy - the copy destination
handler - the handler
Throws:
IOException - for any error


Copyright © 2011 JBoss, A division of Red Hat, Inc. All Rights Reserved.