|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.myJava.file.metadata.posix.jni.JNIMetaDataAccessor
public class JNIMetaDataAccessor
Metadata accessor that uses JNI to invoke C functions.
It handles basic attributes (owner, group, permissions, sticky bit, set uid, set gid), extended attributers and ACLs.
Constructor Summary | |
---|---|
JNIMetaDataAccessor()
|
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 ? |
boolean |
extendedMetaDataSupported()
|
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 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 f,
FileMetaData abstractAttr)
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 JNIMetaDataAccessor()
Method Detail |
---|
public FileMetaData getMetaData(java.io.File f, boolean onlyBasicAttributes) throws java.io.IOException
FileMetaDataAccessor
getMetaData
in interface FileMetaDataAccessor
java.io.IOException
public FileMetaDataSerializer getMetaDataSerializer()
FileMetaDataAccessor
getMetaDataSerializer
in interface FileMetaDataAccessor
public FileMetaData buildEmptyMetaData()
FileMetaDataAccessor
buildEmptyMetaData
in interface FileMetaDataAccessor
public void setMetaData(java.io.File f, FileMetaData abstractAttr) throws java.io.IOException
FileMetaDataAccessor
setMetaData
in interface FileMetaDataAccessor
java.io.IOException
public boolean isNonStandardFile(java.io.File file) throws java.io.IOException
FileMetaDataAccessor
isNonStandardFile
in interface FileMetaDataAccessor
java.io.IOException
public boolean isSymLink(java.io.File file) throws java.io.IOException
FileMetaDataAccessor
isSymLink
in interface FileMetaDataAccessor
java.io.IOException
public boolean nonStandardFilesSupported()
FileMetaDataAccessor
nonStandardFilesSupported
in interface FileMetaDataAccessor
public boolean symLinksSupported()
FileMetaDataAccessor
symLinksSupported
in interface FileMetaDataAccessor
public boolean extendedMetaDataSupported()
public boolean ACLSupported()
FileMetaDataAccessor
ACLSupported
in interface FileMetaDataAccessor
public boolean extendedAttributesSupported()
FileMetaDataAccessor
extendedAttributesSupported
in interface FileMetaDataAccessor
public boolean test()
FileMetaDataAccessor
test
in interface FileMetaDataAccessor
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 |