Java Code Examples for org.omg.CORBA.portable.OutputStream#write_float()

The following examples show how to use org.omg.CORBA.portable.OutputStream#write_float() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CorbaObjectReaderTest.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Test
public void testReadFloat() {
    OutputStream oStream = orb.create_output_stream();
    oStream.write_float((float)1234.56);

    InputStream iStream = oStream.create_input_stream();
    CorbaObjectReader reader = new CorbaObjectReader(iStream);

    Float floatValue = reader.readFloat();
    assertTrue(floatValue.floatValue() == (float)1234.56);
}
 
Example 2
Source File: FloatHolder.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 3
Source File: FloatHolder.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 4
Source File: FloatHolder.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 5
Source File: FloatHolder.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 6
Source File: FloatHolder.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 7
Source File: FloatHolder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 8
Source File: FloatHolder.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the {@code OutputStream} to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 9
Source File: FloatHolder.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 10
Source File: FloatHolder.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 11
Source File: FloatHolder.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}
 
Example 12
Source File: FloatHolder.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Write the float value into an output stream.
 *
 * @param output the <code>OutputStream</code> to write into.
 */
public void _write(OutputStream output) {
    output.write_float(value);
}