electric.util.dime
Class DIMEUtils
java.lang.Object
  
electric.util.dime.DIMEUtils
- public class DIMEUtils
- extends java.lang.Object
  
 DIMEUtil 
- Author:
 
  - webMethods
 
 
| 
Method Summary | 
static int | 
calculatePadding(int length)
 
          DIME requires certain fields to be passed to a multiple
 of 4 bytes. | 
static int | 
readInt(java.io.InputStream istr)
 
            | 
static short | 
readShort(java.io.InputStream istr)
 
            | 
static void | 
writeInt(java.io.OutputStream ostr,
         int value)
 
            | 
static void | 
writeShort(java.io.OutputStream ostr,
           int value)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DIMEUtils
public DIMEUtils()
calculatePadding
public static int calculatePadding(int length)
- DIME requires certain fields to be passed to a multiple
 of 4 bytes. Calculate the required number of bytes for
 padding.
- Parameters:
 length - of actual data in the field.
- Returns:
 - number of padding bytes.
 
 
 
readShort
public static short readShort(java.io.InputStream istr)
                       throws java.io.IOException
- Parameters:
 istr - 
- Returns:
 - 
 - Throws:
 java.io.IOException
 
readInt
public static int readInt(java.io.InputStream istr)
                   throws java.io.IOException
- Parameters:
 istr - 
- Returns:
 - 
 - Throws:
 java.io.IOException
 
writeShort
public static void writeShort(java.io.OutputStream ostr,
                              int value)
                       throws java.io.IOException
- Parameters:
 ostr - value - 
- Throws:
 java.io.IOException
 
writeInt
public static void writeInt(java.io.OutputStream ostr,
                            int value)
                     throws java.io.IOException
- Parameters:
 ostr - value - 
- Throws:
 java.io.IOException
 
copyright© 2001-2004 by webMethods All Rights Reserved.