org.jboss.virtual.plugins.copy
Interface CopyMechanism

All Known Implementing Classes:
AbstractCopyMechanism, ExactCopyMechanism, ExplodedCopyMechanism, TempCopyMechanism, UnjarCopyMechanism, UnpackCopyMechanism

public interface CopyMechanism

Copy mechanism to be used in VFSUtils.

Author:
Ales Justin

Method Summary
 VirtualFile copy(VirtualFile file, VirtualFileHandler handler)
          Copy handler.
 

Method Detail

copy

VirtualFile copy(VirtualFile file,
                 VirtualFileHandler handler)
                 throws IOException,
                        URISyntaxException
Copy handler. If already modified, return handler's file.

Parameters:
file - the original file
handler - the handler to copy
Returns:
handler's copy
Throws:
IOException - for any error
URISyntaxException - for any URI syntax error


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