All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.hdf.message.HDFObject
java.lang.Object
|
+----ncsa.hdf.message.HDFObject
- public abstract class HDFObject
- extends Object
- implements Messageable, Serializable
HDFObject holds HDF Message to/from the server
-
hdf
- the HDF library
-
hdfFilename
- the name of the requested HDF file
-
nodeObject
- the HDFObjectNode to be transfered between the server and client
-
HDFObject()
- Constructs an HDFObject with default parameters
-
HDFObject(HDFObjectNode, String)
- Construct an HDFObject with specified HDFObjectNode and filename
-
fromClient(HDFMessage)
- process a message received from the client with default document root.
-
fromClient(HDFMessage, String)
- process a message received from the client.
-
fromServer(HDFMessage)
- process the message received from the server
-
getObjectAnnotation(int, int, HDFObjectNode)
- get an HDF object annotation.
-
isMe(HDFMessage)
- check if the object is me
-
object2byte(Object, int, byte[])
- convert object data into image data without data range.
-
object2byte(Object, int, double[], byte[])
- convert object data into image data with specified data range.
-
object2byte(Object, int, double[], int, byte[])
- convert object data into image data with specified range and position.
-
service()
- serve the client request on the server
-
toClient()
- create a message for sending to the client
-
toServer()
- create a message sending to the server
nodeObject
protected HDFObjectNode nodeObject
- the HDFObjectNode to be transfered between the server and client
hdfFilename
protected String hdfFilename
- the name of the requested HDF file
hdf
protected HDFLibrary hdf
- the HDF library
HDFObject
public HDFObject()
- Constructs an HDFObject with default parameters
HDFObject
public HDFObject(HDFObjectNode node,
String filename)
- Construct an HDFObject with specified HDFObjectNode and filename
- Parameters:
- node - the HDFObjectNode to be transfered to the server
- filename - the requested HDF file
isMe
public boolean isMe(HDFMessage message)
- check if the object is me
- Parameters:
- message - the incomming HDFMessage
toServer
public HDFMessage toServer()
- create a message sending to the server
- Returns:
- the HDFMessage created by this object
fromClient
public void fromClient(HDFMessage message)
- process a message received from the client with default document root.
- Parameters:
- message - the message received from the client
fromClient
public void fromClient(HDFMessage message,
String docRoot)
- process a message received from the client.
- Parameters:
- message - The message received from the client
- docRoot - The server document root;
getObjectAnnotation
protected String getObjectAnnotation(int fid,
int anntype,
HDFObjectNode node) throws HDFException
- get an HDF object annotation.
- Parameters:
- fid - the file identifer
param anntype the type of annontation.
- node - the HDF Object node
- Returns:
- the string conatainig the object annotation
object2byte
public static boolean object2byte(Object input,
int type,
byte output[])
- convert object data into image data without data range.
- Parameters:
- input - The input object
- type - The data type
- output - The output byte array
- Returns:
- true if the convertion is successful
object2byte
public static boolean object2byte(Object input,
int type,
double minmax[],
byte output[])
- convert object data into image data with specified data range.
- Parameters:
- input - The input object
- type - The data type
- minmax - The minimum and maximum value os the array
- output - The output byte array
- Returns:
- true if the convertion is successful
object2byte
public static boolean object2byte(Object input,
int type,
double minmax[],
int position,
byte output[])
- convert object data into image data with specified range and position.
- Parameters:
- input - The input object
- type - The data type
- minmax - The minimum and maximum value os the array
- position - The first converted scientific data position
- output - The output byte array
- Returns:
- true if the convertion is successful
All Packages Class Hierarchy This Package Previous Next Index