|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.myJava.file.metadata.posix.basic.DefaultMetaDataAccessor
public class DefaultMetaDataAccessor
Default metadata accessor.
It uses standard posix commands to read / write file metadata (permissions, owner and group only) so it is more robust
(but also less performant) than com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor
Constructor Summary | |
---|---|
DefaultMetaDataAccessor()
|
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 f,
boolean onlyBasicAttributes)
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 f)
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 f,
FileMetaData attr)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMetaDataAccessor()
Method Detail |
---|
public FileMetaData getMetaData(java.io.File f, boolean onlyBasicAttributes) throws java.io.IOException
FileMetaDataAccessor
getMetaData
in interface FileMetaDataAccessor
java.io.IOException
public FileMetaData buildEmptyMetaData()
FileMetaDataAccessor
buildEmptyMetaData
in interface FileMetaDataAccessor
public FileMetaDataSerializer getMetaDataSerializer()
FileMetaDataAccessor
getMetaDataSerializer
in interface FileMetaDataAccessor
public void setMetaData(java.io.File f, FileMetaData attr) throws java.io.IOException
FileMetaDataAccessor
setMetaData
in interface FileMetaDataAccessor
java.io.IOException
public boolean test()
FileMetaDataAccessor
test
in interface FileMetaDataAccessor
public boolean ACLSupported()
FileMetaDataAccessor
ACLSupported
in interface FileMetaDataAccessor
public boolean extendedAttributesSupported()
FileMetaDataAccessor
extendedAttributesSupported
in interface FileMetaDataAccessor
public boolean nonStandardFilesSupported()
FileMetaDataAccessor
nonStandardFilesSupported
in interface FileMetaDataAccessor
public boolean symLinksSupported()
FileMetaDataAccessor
symLinksSupported
in interface FileMetaDataAccessor
public boolean isNonStandardFile(java.io.File file)
FileMetaDataAccessor
isNonStandardFile
in interface FileMetaDataAccessor
public boolean isSymLink(java.io.File f) throws java.io.IOException
FileMetaDataAccessor
isSymLink
in interface FileMetaDataAccessor
java.io.IOException
public java.lang.String getDescription()
FileMetaDataAccessor
getDescription
in interface FileMetaDataAccessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |