* @throws IOException
*/
public FileAttribute setAttribute(final byte[] fileHandle, final int mode, final int uid,
final int gid, final int size, final Time lastAccessed, final Time lastModified)
throws NFS2Exception, IOException {
XdrAble nfsParameter = new NFSParameter() {
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException {
xdr.xdrEncodeOpaque(fileHandle, FILE_HANDLE_SIZE);
xdr.xdrEncodeInt(mode);
xdr.xdrEncodeInt(uid);
xdr.xdrEncodeInt(gid);
xdr.xdrEncodeInt(size);
xdrEncodeTime(xdr, lastAccessed);
xdrEncodeTime(xdr, lastModified);
}
};
final FileAttribute fileAttribute = new FileAttribute();
XdrAble nfsResult = new NFSResult() {
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
xdrFileAttributeDecode(xdr, fileAttribute);
}
};
call(PROCEDURE_SET_ATTRIBUTE, nfsParameter, nfsResult);