Package com.github.jinahya.bit.io
Class DoubleWriter.CompressedSubnormal
java.lang.Object
com.github.jinahya.bit.io.DoubleWriter.CompressedSubnormal
- Enclosing class:
- DoubleWriter
A writer for writing
subnormal
values in a compressed manner.- Author:
- Jin Kwon <onacit_at_gmail.com>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompressedSubnormal
(int significandSize) Creates a new instance with specified significand size. -
Method Summary
-
Constructor Details
-
CompressedSubnormal
public CompressedSubnormal(int significandSize) Creates a new instance with specified significand size.- Parameters:
significandSize
- the number of left-most significand bits to write; between 1 and 52, both inclusive.
-
-
Method Details
-
write
Description copied from interface:BitWriter
Writes specified value to specified output.- Specified by:
write
in interfaceBitWriter<Double>
- Parameters:
output
- the output to which the value is written.value
- the value to write.- Throws:
IOException
- if an I/O error occurs.- See Also:
-