org.apache.poi.hpsf.littleendian
Class DWord

java.lang.Object
  |
  +--org.apache.poi.hpsf.littleendian.LittleEndian
        |
        +--org.apache.poi.hpsf.littleendian.DWord

public class DWord
extends LittleEndian

Represents a double word (4 bytes).

Since:
2002-02-09
Version:
$Id: DWord.java,v 1.1 2002/02/14 04:00:59 mjohnson Exp $
Author:
Rainer Klute (klute@rainer-klute.de)

Field Summary
static int LENGTH
           
 
Fields inherited from class org.apache.poi.hpsf.littleendian.LittleEndian
bytes
 
Constructor Summary
DWord(byte[] src, int offset)
          Creates a DWord and reads its value from a byte array.
 
Method Summary
 int intValue()
          Return the integral value of this DWord.
 int length()
          Returns the number of bytes of this little-endian field.
 
Methods inherited from class org.apache.poi.hpsf.littleendian.LittleEndian
getBytes, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH

public static final int LENGTH
Constructor Detail

DWord

public DWord(byte[] src,
             int offset)

Creates a DWord and reads its value from a byte array.

Parameters:
src - The byte array to read from.
offset - The offset of the first byte to read.
Method Detail

length

public int length()
Description copied from class: LittleEndian

Returns the number of bytes of this little-endian field.

Overrides:
length in class LittleEndian

intValue

public int intValue()

Return the integral value of this DWord.

FIXME: Introduce a superclass for the numeric types and make this a method of the superclass!



Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.