Data Request Broker
2-3-release

fr.gael.drb.impl.sds
Class Length

java.lang.Object
  extended by fr.gael.drb.impl.sds.Length

public final class Length
extends Object

A length.


Field Summary
 byte bitLength
          The length in bits to add to length in bytes in case of non 8-bits aligned structure.
 long length
          The length in bytes.
 
Constructor Summary
Length(long length)
          Create a Length instance.
Length(long length, long bit_length)
          Create a Length instance.
 
Method Summary
 byte getBitLength()
          Returns the bit length
 long getLength()
          Returns the byte length
 void setLength(long length)
          Set the length
 void setLength(long length, long bit_length)
          Set the length
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public long length
The length in bytes.


bitLength

public byte bitLength
The length in bits to add to length in bytes in case of non 8-bits aligned structure.

Constructor Detail

Length

public Length(long length,
              long bit_length)
Create a Length instance.

Parameters:
length - The byte length
bit_length - The bit length

Length

public Length(long length)
Create a Length instance.

Parameters:
length - The byte length
Method Detail

getLength

public final long getLength()
Returns the byte length

Returns:
The byte length

getBitLength

public final byte getBitLength()
Returns the bit length

Returns:
The bit length

setLength

public void setLength(long length,
                      long bit_length)
Set the length

Parameters:
length - The byte length
bit_length - The bit length

setLength

public void setLength(long length)
Set the length

Parameters:
length - The byte length

toString

public String toString()
toString

Overrides:
toString in class Object
Returns:
the string representation.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .