public class FileAttribute
extends java.lang.Object
Constructor and Description |
---|
FileAttribute(java.lang.String id) |
FileAttribute(java.lang.String id,
int version,
boolean fixedSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId() |
int |
getVersion() |
boolean |
isFixedSize() |
boolean |
isVersioned() |
FileAttribute |
newVersion(int newVersion) |
java.io.DataInputStream |
readAttribute(VirtualFile file) |
byte [] |
readAttributeBytes(VirtualFile file) |
java.io.DataOutputStream |
writeAttribute(VirtualFile file) |
void |
writeAttributeBytes(VirtualFile file,
byte [] bytes) |
void |
writeAttributeBytes(VirtualFile file,
byte[] bytes,
int offset,
int len) |
public FileAttribute(java.lang.String id)
public FileAttribute(java.lang.String id, int version, boolean fixedSize)
public java.io.DataInputStream readAttribute(VirtualFile file)
public java.io.DataOutputStream writeAttribute(VirtualFile file)
public byte [] readAttributeBytes(VirtualFile file) throws java.io.IOException
java.io.IOException
public void writeAttributeBytes(VirtualFile file, byte [] bytes) throws java.io.IOException
java.io.IOException
public void writeAttributeBytes(VirtualFile file, byte[] bytes, int offset, int len) throws java.io.IOException
java.io.IOException
public java.lang.String getId()
public boolean isFixedSize()
public FileAttribute newVersion(int newVersion)
public int getVersion()
public boolean isVersioned()