Java Code Examples for org.omg.CORBA.portable.InputStream#read_double()

The following examples show how to use org.omg.CORBA.portable.InputStream#read_double() . 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: CorbaObjectWriterTest.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Test
public void testWriteDouble() {
    OutputStream oStream = orb.create_output_stream();

    CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
    Double doubleValue = Double.valueOf(987654.321);
    writer.writeDouble(doubleValue);

    InputStream iStream = oStream.create_input_stream();
    double d = iStream.read_double();
    assertTrue(d == doubleValue.doubleValue());
}
 
Example 2
Source File: DoubleHolder.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 3
Source File: DoubleHolder.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 4
Source File: DoubleHolder.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 5
Source File: DoubleHolder.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 6
Source File: DoubleHolder.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 7
Source File: DoubleHolder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 8
Source File: DoubleHolder.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the {@code InputStream} to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 9
Source File: DoubleHolder.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 10
Source File: DoubleHolder.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 11
Source File: DoubleHolder.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}
 
Example 12
Source File: DoubleHolder.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Read a double value from the input stream and store it in the
 * value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
    value = input.read_double();
}