public abstract class XAttrUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fGetXAttr(int fd,
java.lang.String name)
Get extended attribute value.
|
static java.lang.String |
fGetXAttr(int fd,
java.lang.String name,
java.lang.String encoding)
Get extended attribute value.
|
static Memory |
fGetXAttrAsMemory(int fd,
java.lang.String name)
Get extended attribute value.
|
static byte[] |
fGetXAttrBytes(int fd,
java.lang.String name)
Get extended attribute value.
|
static java.util.Collection<java.lang.String> |
fListXAttr(int fd)
List extended attributes on file.
|
static java.util.Collection<java.lang.String> |
fListXAttr(int fd,
java.lang.String encoding)
List extended attributes on file.
|
static void |
fRemoveXAttr(int fd,
java.lang.String name)
Remove extended attribute from file.
|
static void |
fSetXAttr(int fd,
java.lang.String name,
byte[] value)
Set or replace value of extended attribute.
|
static void |
fSetXAttr(int fd,
java.lang.String name,
java.lang.String value)
Set or replace value of extended attribute.
|
static void |
fSetXAttr(int fd,
java.lang.String name,
java.lang.String value,
java.lang.String encoding)
Set or replace value of extended attribute.
|
static java.lang.String |
getXAttr(java.lang.String path,
java.lang.String name)
Get extended attribute value.
|
static java.lang.String |
getXAttr(java.lang.String path,
java.lang.String name,
java.lang.String encoding)
Get extended attribute value.
|
static Memory |
getXAttrAsMemory(java.lang.String path,
java.lang.String name)
Get extended attribute value.
|
static byte[] |
getXAttrBytes(java.lang.String path,
java.lang.String name)
Get extended attribute value.
|
static java.lang.String |
lGetXAttr(java.lang.String path,
java.lang.String name)
Get extended attribute value but in case of symbolic link get the value from the link
itself instead of linked file.
|
static java.lang.String |
lGetXAttr(java.lang.String path,
java.lang.String name,
java.lang.String encoding)
Get extended attribute value but in case of symbolic link get the value from the link
itself instead of linked file.
|
static Memory |
lGetXAttrAsMemory(java.lang.String path,
java.lang.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(java.lang.String path,
java.lang.String name)
Get extended attribute value but in case of symbolic link get the value from the link
itself instead of linked file.
|
static java.util.Collection<java.lang.String> |
listXAttr(java.lang.String path)
List extended attributes on file.
|
static java.util.Collection<java.lang.String> |
listXAttr(java.lang.String path,
java.lang.String encoding)
List extended attributes on file.
|
static java.util.Collection<java.lang.String> |
lListXAttr(java.lang.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 java.util.Collection<java.lang.String> |
lListXAttr(java.lang.String path,
java.lang.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(java.lang.String path,
java.lang.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 |
lSetXAttr(java.lang.String path,
java.lang.String name,
byte[] value)
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 |
lSetXAttr(java.lang.String path,
java.lang.String name,
java.lang.String value)
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 |
lSetXAttr(java.lang.String path,
java.lang.String name,
java.lang.String value,
java.lang.String encoding)
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(java.lang.String path,
java.lang.String name)
Remove extended attribute from file.
|
static void |
setXAttr(java.lang.String path,
java.lang.String name,
byte[] value)
Set or replace value of extended attribute.
|
static void |
setXAttr(java.lang.String path,
java.lang.String name,
java.lang.String value)
Set or replace value of extended attribute.
|
static void |
setXAttr(java.lang.String path,
java.lang.String name,
java.lang.String value,
java.lang.String encoding)
Set or replace value of extended attribute.
|
public static void setXAttr(java.lang.String path, java.lang.String name, java.lang.String value) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static void setXAttr(java.lang.String path, java.lang.String name, java.lang.String value, java.lang.String encoding) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored valuejava.io.IOException
- on any errorpublic static void setXAttr(java.lang.String path, java.lang.String name, byte[] value) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static void lSetXAttr(java.lang.String path, java.lang.String name, java.lang.String value) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static void lSetXAttr(java.lang.String path, java.lang.String name, java.lang.String value, java.lang.String encoding) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored valuejava.io.IOException
- on any errorpublic static void lSetXAttr(java.lang.String path, java.lang.String name, byte[] value) throws java.io.IOException
path
- file pathname
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static void fSetXAttr(int fd, java.lang.String name, java.lang.String value) throws java.io.IOException
fd
- file handlename
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static void fSetXAttr(int fd, java.lang.String name, java.lang.String value, java.lang.String encoding) throws java.io.IOException
fd
- file handlename
- extended attribute namevalue
- value to setencoding
- character encoding to be used for stored valuejava.io.IOException
- on any errorpublic static void fSetXAttr(int fd, java.lang.String name, byte[] value) throws java.io.IOException
fd
- file handlename
- extended attribute namevalue
- value to setjava.io.IOException
- on any errorpublic static java.lang.String getXAttr(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.lang.String getXAttr(java.lang.String path, java.lang.String name, java.lang.String encoding) throws java.io.IOException
path
- file pathname
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute valuejava.io.IOException
- on any error except ERANGE
which handled internallypublic static byte[] getXAttrBytes(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static Memory getXAttrAsMemory(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.lang.String lGetXAttr(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.lang.String lGetXAttr(java.lang.String path, java.lang.String name, java.lang.String encoding) throws java.io.IOException
path
- file pathname
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute valuejava.io.IOException
- on any error except ERANGE
which handled internallypublic static byte[] lGetXAttrBytes(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static Memory lGetXAttrAsMemory(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.lang.String fGetXAttr(int fd, java.lang.String name) throws java.io.IOException
fd
- file handlename
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.lang.String fGetXAttr(int fd, java.lang.String name, java.lang.String encoding) throws java.io.IOException
fd
- file handlename
- extended attribute nameencoding
- character encoding to be used to decode stored extended attribute valuejava.io.IOException
- on any error except ERANGE
which handled internallypublic static byte[] fGetXAttrBytes(int fd, java.lang.String name) throws java.io.IOException
fd
- file handlename
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static Memory fGetXAttrAsMemory(int fd, java.lang.String name) throws java.io.IOException
fd
- file handlename
- extended attribute namejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> listXAttr(java.lang.String path) throws java.io.IOException
path
- file pathjava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> listXAttr(java.lang.String path, java.lang.String encoding) throws java.io.IOException
path
- file pathencoding
- character encoding use to decode extended attributes' namesjava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> lListXAttr(java.lang.String path) throws java.io.IOException
path
- file pathjava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> lListXAttr(java.lang.String path, java.lang.String encoding) throws java.io.IOException
path
- file pathencoding
- character encoding use to decode extended attributes' namesjava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> fListXAttr(int fd) throws java.io.IOException
fd
- file handlejava.io.IOException
- on any error except ERANGE
which handled internallypublic static java.util.Collection<java.lang.String> fListXAttr(int fd, java.lang.String encoding) throws java.io.IOException
fd
- file handleencoding
- character encoding use to decode extended attributes' namesjava.io.IOException
- on any error except ERANGE
which handled internallypublic static void removeXAttr(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any errorpublic static void lRemoveXAttr(java.lang.String path, java.lang.String name) throws java.io.IOException
path
- file pathname
- extended attribute namejava.io.IOException
- on any errorpublic static void fRemoveXAttr(int fd, java.lang.String name) throws java.io.IOException
fd
- file handlename
- extended attribute namejava.io.IOException
- on any error