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


Variable Index

 o hdf
the HDF library
 o hdfFilename
the name of the requested HDF file
 o nodeObject
the HDFObjectNode to be transfered between the server and client

Constructor Index

 o HDFObject()
Constructs an HDFObject with default parameters
 o HDFObject(HDFObjectNode, String)
Construct an HDFObject with specified HDFObjectNode and filename

Method Index

 o fromClient(HDFMessage)
process a message received from the client with default document root.
 o fromClient(HDFMessage, String)
process a message received from the client.
 o fromServer(HDFMessage)
process the message received from the server
 o getObjectAnnotation(int, int, HDFObjectNode)
get an HDF object annotation.
 o isMe(HDFMessage)
check if the object is me
 o object2byte(Object, int, byte[])
convert object data into image data without data range.
 o object2byte(Object, int, double[], byte[])
convert object data into image data with specified data range.
 o object2byte(Object, int, double[], int, byte[])
convert object data into image data with specified range and position.
 o service()
serve the client request on the server
 o toClient()
create a message for sending to the client
 o toServer()
create a message sending to the server

Variables

 o nodeObject
 protected HDFObjectNode nodeObject
the HDFObjectNode to be transfered between the server and client

 o hdfFilename
 protected String hdfFilename
the name of the requested HDF file

 o hdf
 protected HDFLibrary hdf
the HDF library

Constructors

 o HDFObject
 public HDFObject()
Constructs an HDFObject with default parameters

 o 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

Methods

 o isMe
 public boolean isMe(HDFMessage message)
check if the object is me

Parameters:
message - the incomming HDFMessage
 o toServer
 public HDFMessage toServer()
create a message sending to the server

Returns:
the HDFMessage created by this object
 o 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
 o 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;
 o 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
 o 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
 o 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
 o 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