All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.message.HDFRIS24

java.lang.Object
   |
   +----ncsa.hdf.message.HDFObject
           |
           +----ncsa.hdf.message.HDFGR
                   |
                   +----ncsa.hdf.message.HDFRIS24

public class HDFRIS24
extends HDFGR
HDFRIS24 holds HDF RIS24 information

Version:
1.1.3 September 22 1997
Author:
Peter X. Cao

Constructor Index

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

Method Index

 o byte24to8(byte[], int, int, byte[])
convert 24-bit image data to 8-bit image data
 o readInfo(HDFLibrary, String, HDFObjectNode)
get HDF 24-bit raster image information for the selected HDF file
 o service()
overwrites HDFGR
 o toClient()
create a message for sending to the client

Constructors

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

 o HDFRIS24
 public HDFRIS24(HDFObjectNode node,
                 String filename)
Construct an HDFRIS24 with specified HDFObjectNode and filename

Parameters:
node - the HDFObjectNode to be transfered to the server
filename - the requested HDF file

Methods

 o toClient
 public HDFMessage toClient()
create a message for sending to the client

Returns:
the HDFMessage created by this object
Overrides:
toClient in class HDFGR
 o service
 public void service()
overwrites HDFGR

Overrides:
service in class HDFGR
 o readInfo
 public static String readInfo(HDFLibrary hdf,
                               String filename,
                               HDFObjectNode node) throws HDFException
get HDF 24-bit raster image information for the selected HDF file

Parameters:
filename - the string of the hdf file name
node - the HDFObjectNode
Returns:
the string the HDF 24-bit raster image information
 o byte24to8
 public byte[] byte24to8(byte p24[],
                         int w,
                         int h,
                         byte palette[])
convert 24-bit image data to 8-bit image data

Parameters:
p24 - the byte array of the 24-bit image data
w - the image width
h - the image height
palette - the image palette
Returns:
the byte array of the 8-bit image data

All Packages  Class Hierarchy  This Package  Previous  Next  Index