org.at4j.tar.builder
Class FileDirectoryAdapter

java.lang.Object
  extended by org.at4j.tar.builder.FileDirectoryAdapter
All Implemented Interfaces:
DirectoryAdapter<File>

public class FileDirectoryAdapter
extends Object
implements DirectoryAdapter<File>

This object adapts a File directory to the DirectoryAdapter interface.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
FileDirectoryAdapter(File f)
          Create a new adapter.
 
Method Summary
 File getAdapted()
          This method is used by the TarEntryStrategy to get the adapted directory representation if no other method defined in this interface (of which there currently are none) fits its needs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDirectoryAdapter

public FileDirectoryAdapter(File f)
Create a new adapter.

Parameters:
f - The directory to adapt. This directory must exist (and be a directory).
Method Detail

getAdapted

public File getAdapted()
Description copied from interface: DirectoryAdapter
This method is used by the TarEntryStrategy to get the adapted directory representation if no other method defined in this interface (of which there currently are none) fits its needs.

Specified by:
getAdapted in interface DirectoryAdapter<File>
Returns:
The adapted directory entity.