public class NFSHandle
extends java.lang.Object
Contains constants and static methods used with NFS handles in the JLAN Server.
| Modifier and Type | Field and Description |
|---|---|
static byte |
MAX_VERSION |
static byte |
MIN_VERSION |
static byte |
TYPE_DIR |
static byte |
TYPE_FILE |
static byte |
TYPE_SHARE |
static byte |
VERSION |
| Constructor and Description |
|---|
NFSHandle() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
asString(byte[] handle)
Return an NFS handle as a string
|
static boolean |
isDirectoryHandle(byte[] handle)
Check if the handle is a directory type handle
|
static boolean |
isFileHandle(byte[] handle)
Check if the handle is a file type handle
|
static boolean |
isShareHandle(byte[] handle)
Check if the handle is a share type handle
|
static int |
isType(byte[] handle)
Return the handle type
|
static boolean |
isValid(byte[] handle)
Check if a handle is valid
|
static int |
isVersion(byte[] handle)
Return the handle version
|
static void |
packDirectoryHandle(int shareId,
int dirId,
byte[] handle)
Pack a directory handle
|
static void |
packDirectoryHandle(int shareId,
int dirId,
RpcPacket rpc,
int hlen)
Pack a directory handle
|
static void |
packFileHandle(int shareId,
int dirId,
int fileId,
byte[] handle)
Pack a file handle
|
static void |
packFileHandle(int shareId,
int dirId,
int fileId,
RpcPacket rpc,
int hlen)
Pack a file handle
|
static void |
packShareHandle(java.lang.String name,
byte[] handle)
Pack a share handle
|
static void |
packShareHandle(java.lang.String name,
RpcPacket rpc,
int hlen)
Pack a share handle
|
static int |
unpackDirectoryId(byte[] handle)
Unpack a directory id from a handle
|
static int |
unpackFileId(byte[] handle)
Unpack a file id from a handle
|
static int |
unpackShareId(byte[] handle)
Unpack a share id from a handle
|
public static final byte VERSION
public static final byte MIN_VERSION
public static final byte MAX_VERSION
public static final byte TYPE_SHARE
public static final byte TYPE_DIR
public static final byte TYPE_FILE
public static final int isVersion(byte[] handle)
handle - byte[]public static final int isType(byte[] handle)
handle - byte[]public static final boolean isShareHandle(byte[] handle)
handle - byte[]public static final boolean isDirectoryHandle(byte[] handle)
handle - byte[]public static final boolean isFileHandle(byte[] handle)
handle - byte[]public static final void packShareHandle(java.lang.String name,
byte[] handle)
name - Stringhandle - byte[]public static final void packShareHandle(java.lang.String name,
RpcPacket rpc,
int hlen)
name - Stringrpc - RpcPackethlen - intpublic static final void packDirectoryHandle(int shareId,
int dirId,
byte[] handle)
shareId - intdirId - inthandle - byte[]public static final void packDirectoryHandle(int shareId,
int dirId,
RpcPacket rpc,
int hlen)
shareId - intdirId - intrpc - RpcPackethlen - intpublic static final void packFileHandle(int shareId,
int dirId,
int fileId,
byte[] handle)
shareId - intdirId - intfileId - inthandle - byte[]public static final void packFileHandle(int shareId,
int dirId,
int fileId,
RpcPacket rpc,
int hlen)
shareId - intdirId - intfileId - intrpc - RpcPackethlen - intpublic static final int unpackShareId(byte[] handle)
handle - byte[]public static final int unpackDirectoryId(byte[] handle)
handle - byte[]public static final int unpackFileId(byte[] handle)
handle - byte[]public static final java.lang.String asString(byte[] handle)
handle - byte[]public static final boolean isValid(byte[] handle)
handle - byte[]Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.