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

The following examples show how to use org.omg.CORBA.portable.InputStream#read_any() . 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: Util.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 2
Source File: Util.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 3
Source File: Util.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 4
Source File: Util.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 5
Source File: Util.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 6
Source File: Util.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 7
Source File: Util.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 8
Source File: Util.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 9
Source File: Util.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 10
Source File: Util.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reads a java.lang.Object as a CORBA any.
 * @param in the stream from which to read the any.
 * @return the object read from the stream.
 */
public Object readAny(InputStream in)
{
    Any any = in.read_any();
    if ( any.type().kind().value() == TCKind._tk_objref )
        return any.extract_Object ();
    else
        return any.extract_Value();
}
 
Example 11
Source File: AnyHolder.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 12
Source File: AnyHolder.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 13
Source File: AnyHolder.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 14
Source File: AnyHolder.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 15
Source File: AnyHolder.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from {@code input} and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 16
Source File: AnyHolder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 17
Source File: AnyHolder.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 18
Source File: AnyHolder.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 19
Source File: AnyHolder.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}
 
Example 20
Source File: AnyHolder.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reads from <code>input</code> and initalizes the value in the Holder
 * with the unmarshalled data.
 *
 * @param input the InputStream containing CDR formatted data from the wire.
 */
public void _read(InputStream input) {
    value = input.read_any();
}