org.jcodec.containers.mkv.ebml
Class FloatElement

java.lang.Object
  extended by org.jcodec.containers.mkv.ebml.Element
      extended by org.jcodec.containers.mkv.ebml.BinaryElement
          extended by org.jcodec.containers.mkv.ebml.FloatElement

public class FloatElement
extends BinaryElement


Field Summary
 
Fields inherited from class org.jcodec.containers.mkv.ebml.Element
data, dataOffset, dataRead, id, offset, parent, size, type
 
Constructor Summary
FloatElement(byte[] type)
           
 
Method Summary
 double get()
          Get the float value of this element
 void set(double value)
          Set the float value of this element
 
Methods inherited from class org.jcodec.containers.mkv.ebml.BinaryElement
getData, setData
 
Methods inherited from class org.jcodec.containers.mkv.ebml.Element
ebmlBytes, ebmlBytes, getEbmlSize, getId, getSize, isSameEbmlId, isSameMatroskaType, mux, mux, readData, 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

set

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

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

get

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

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


Copyright © 2013. All Rights Reserved.