com.myJava.file.metadata
Interface FileMetaDataAccessor

All Known Implementing Classes:
DefaultMetaDataAccessor, JNIMetaDataAccessor, WindowsMetaDataAccessor

public interface FileMetaDataAccessor

Interface which is able to set and read part of / all the filesystem's metadata.

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Method Summary
 boolean ACLSupported()
          Is the accessor able to handle ACL ?
 FileMetaData buildEmptyMetaData()
          Return an empty instance of meta data
 boolean extendedAttributesSupported()
          Is the accessor able to handle extended attributes ?
 java.lang.String getDescription()
          Return a description of the accessor
 FileMetaData getMetaData(java.io.File file, boolean onlyBasicData)
          Return the meta data for the requested file
 FileMetaDataSerializer getMetaDataSerializer()
          Return a FileMetaDataSerializer which is compatible with the metadata produced by this accessor.
 boolean isNonStandardFile(java.io.File file)
          Is the file a non standard file (pipes, socket, block special files, ...) ?
 boolean isSymLink(java.io.File file)
          Is the file a symbolic link ?
 boolean nonStandardFilesSupported()
          Is the accessor able to distinguish between standard files / directories and non standard files (pipes, socket, block special files, ...) ?
 void setMetaData(java.io.File file, FileMetaData mdt)
          Set the file's meta data
 boolean symLinksSupported()
          Is the accessor able to distinguish between standard files / directories and symbolic links ?
 boolean test()
          Test whether the accessor is compatible with the current system or not.
 

Method Detail

getDescription

java.lang.String getDescription()
Return a description of the accessor


getMetaDataSerializer

FileMetaDataSerializer getMetaDataSerializer()
Return a FileMetaDataSerializer which is compatible with the metadata produced by this accessor.


getMetaData

FileMetaData getMetaData(java.io.File file,
                         boolean onlyBasicData)
                         throws java.io.IOException
Return the meta data for the requested file

Throws:
java.io.IOException

buildEmptyMetaData

FileMetaData buildEmptyMetaData()
Return an empty instance of meta data


setMetaData

void setMetaData(java.io.File file,
                 FileMetaData mdt)
                 throws java.io.IOException
Set the file's meta data

Throws:
java.io.IOException

test

boolean test()
Test whether the accessor is compatible with the current system or not.
This method may be useful if native code is used.


ACLSupported

boolean ACLSupported()
Is the accessor able to handle ACL ?


extendedAttributesSupported

boolean extendedAttributesSupported()
Is the accessor able to handle extended attributes ?


symLinksSupported

boolean symLinksSupported()
Is the accessor able to distinguish between standard files / directories and symbolic links ?


isSymLink

boolean isSymLink(java.io.File file)
                  throws java.io.IOException
Is the file a symbolic link ?

Throws:
java.io.IOException

nonStandardFilesSupported

boolean nonStandardFilesSupported()
Is the accessor able to distinguish between standard files / directories and non standard files (pipes, socket, block special files, ...) ?


isNonStandardFile

boolean isNonStandardFile(java.io.File file)
                          throws java.io.IOException
Is the file a non standard file (pipes, socket, block special files, ...) ?

Throws:
java.io.IOException