net.sf.ext.mediamanager.ebml
Class FloatElement

java.lang.Object
  extended bynet.sf.ext.mediamanager.ebml.Element
      extended bynet.sf.ext.mediamanager.ebml.BinaryElement
          extended bynet.sf.ext.mediamanager.ebml.FloatElement

public class FloatElement
extends BinaryElement

Title: JEBML

Description: Java Classes to Read EBML Elements

Copyright: Copyright (c) 2002-2004 John Cannon , Jory Stone

Company:

Version:
1.0
Author:
jcsston

Field Summary
 
Fields inherited from class net.sf.ext.mediamanager.ebml.Element
data, dataRead, parent, size, type, typeInfo
 
Constructor Summary
FloatElement(byte[] type)
           
 
Method Summary
 double getValue()
          Get the float value of this element
 void setValue(double value)
          Set the float value of this element
 
Methods inherited from class net.sf.ext.mediamanager.ebml.BinaryElement
codedSizeLength, getData, getMinByteSize, getMinByteSizeUnsigned, getMinSizeLength, getSize, getType, makeEbmlCode, makeEbmlCodedSize, packInt, packIntUnsigned, setData, setMinSizeLength, setSize, setType, toByteArray
 
Methods inherited from class net.sf.ext.mediamanager.ebml.Element
EBMLCodedSizeLength, EBMLSignedCodedSizeLength, equals, equals, getElementType, getParent, readData, setElementType, setParent, skipData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatElement

public FloatElement(byte[] type)
Method Detail

setValue

public void setValue(double value)
Set the float value of this element

Parameters:
value - Float value to set
Throws:
java.lang.ArithmeticException - if the float value is larger than Double.MAX_VALUE

getValue

public double getValue()
Get the float value of this element

Returns:
Float value of this element
Throws:
java.lang.ArithmeticException - for 80-bit or 10-byte floats. AFAIK Java doesn't support them