org.jcodec.containers.mkv.ebml
Class FloatElement
java.lang.Object
org.jcodec.containers.mkv.ebml.Element
org.jcodec.containers.mkv.ebml.BinaryElement
org.jcodec.containers.mkv.ebml.FloatElement
public class FloatElement
- extends BinaryElement
|
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.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 |
FloatElement
public FloatElement(byte[] type)
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.