Package com.sun.jna.platform.linux
Klasse XAttrUtil
java.lang.Object
com.sun.jna.platform.linux.XAttrUtil
Utility functions class for handling file extended attributes on Linux.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
Get extended attribute value.static String
Get extended attribute value.static Memory
fGetXAttrAsMemory
(int fd, String name) Get extended attribute value.static byte[]
fGetXAttrBytes
(int fd, String name) Get extended attribute value.static Collection
<String> fListXAttr
(int fd) List extended attributes on file.static Collection
<String> fListXAttr
(int fd, String encoding) List extended attributes on file.static void
fRemoveXAttr
(int fd, String name) Remove extended attribute from file.static void
Set or replace value of extended attribute.static void
Set or replace value of extended attribute.static void
Set or replace value of extended attribute.static String
Get extended attribute value.static String
Get extended attribute value.static Memory
getXAttrAsMemory
(String path, String name) Get extended attribute value.static byte[]
getXAttrBytes
(String path, String name) Get extended attribute value.static String
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.static String
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.static Memory
lGetXAttrAsMemory
(String path, String name) Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.static byte[]
lGetXAttrBytes
(String path, String name) Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.static Collection
<String> List extended attributes on file.static Collection
<String> List extended attributes on file.static Collection
<String> lListXAttr
(String path) List extended attributes on file but in case of symbolic link get extended attributes of the link itself instead of linked file.static Collection
<String> lListXAttr
(String path, String encoding) List extended attributes on file but in case of symbolic link get extended attributes of the link itself instead of linked file.static void
lRemoveXAttr
(String path, String name) Remove extended attribute from file but in case of symbolic link remove extended attribute from the link itself instead of linked file.static void
Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.static void
Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.static void
Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.static void
removeXAttr
(String path, String name) Remove extended attribute from file.static void
Set or replace value of extended attribute.static void
Set or replace value of extended attribute.static void
Set or replace value of extended attribute.
-
Methodendetails
-
setXAttr
Set or replace value of extended attribute.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
setXAttr
public static void setXAttr(String path, String name, String value, String encoding) throws IOException Set or replace value of extended attribute.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored value- Löst aus:
IOException
- on any error
-
setXAttr
Set or replace value of extended attribute.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
lSetXAttr
Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
lSetXAttr
public static void lSetXAttr(String path, String name, String value, String encoding) throws IOException Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored value- Löst aus:
IOException
- on any error
-
lSetXAttr
Set or replace value of extended attribute but in case of symbolic link set the extended attribute on the link itself instead linked file.- Parameter:
path
- file pathname
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
fSetXAttr
Set or replace value of extended attribute.- Parameter:
fd
- file handlename
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
fSetXAttr
Set or replace value of extended attribute.- Parameter:
fd
- file handlename
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored value- Löst aus:
IOException
- on any error
-
fSetXAttr
Set or replace value of extended attribute.- Parameter:
fd
- file handlename
- extended attribute namevalue
- value to set- Löst aus:
IOException
- on any error
-
getXAttr
Get extended attribute value.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
getXAttr
Get extended attribute value.- Parameter:
path
- file pathname
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute value- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
getXAttrBytes
Get extended attribute value.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
getXAttrAsMemory
Get extended attribute value.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lGetXAttr
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lGetXAttr
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.- Parameter:
path
- file pathname
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute value- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lGetXAttrBytes
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lGetXAttrAsMemory
Get extended attribute value but in case of symbolic link get the value from the link itself instead of linked file.- Parameter:
path
- file pathname
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fGetXAttr
Get extended attribute value.- Parameter:
fd
- file handlename
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fGetXAttr
Get extended attribute value.- Parameter:
fd
- file handlename
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute value- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fGetXAttrBytes
Get extended attribute value.- Parameter:
fd
- file handlename
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fGetXAttrAsMemory
Get extended attribute value.- Parameter:
fd
- file handlename
- extended attribute name- Gibt zurück:
- extended attribute value
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
listXAttr
List extended attributes on file.- Parameter:
path
- file path- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
listXAttr
List extended attributes on file.- Parameter:
path
- file pathencoding
- character encoding use to decode extended attributes' names- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lListXAttr
List extended attributes on file but in case of symbolic link get extended attributes of the link itself instead of linked file.- Parameter:
path
- file path- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
lListXAttr
List extended attributes on file but in case of symbolic link get extended attributes of the link itself instead of linked file.- Parameter:
path
- file pathencoding
- character encoding use to decode extended attributes' names- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fListXAttr
List extended attributes on file.- Parameter:
fd
- file handle- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
fListXAttr
List extended attributes on file.- Parameter:
fd
- file handleencoding
- character encoding use to decode extended attributes' names- Gibt zurück:
- collection of extended attributes' names
- Löst aus:
IOException
- on any error exceptERANGE
which handled internally
-
removeXAttr
Remove extended attribute from file.- Parameter:
path
- file pathname
- extended attribute name- Löst aus:
IOException
- on any error
-
lRemoveXAttr
Remove extended attribute from file but in case of symbolic link remove extended attribute from the link itself instead of linked file.- Parameter:
path
- file pathname
- extended attribute name- Löst aus:
IOException
- on any error
-
fRemoveXAttr
Remove extended attribute from file.- Parameter:
fd
- file handlename
- extended attribute name- Löst aus:
IOException
- on any error
-