org.omg.CORBA.portable.ValueInputStream Java Examples

The following examples show how to use org.omg.CORBA.portable.ValueInputStream. 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: IIOPInputStream.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #2
Source File: IIOPInputStream.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #3
Source File: IIOPInputStream.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #4
Source File: IIOPInputStream.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #5
Source File: IIOPInputStream.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #6
Source File: IIOPInputStream.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #7
Source File: IIOPInputStream.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #8
Source File: IIOPInputStream.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #9
Source File: IIOPInputStream.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #10
Source File: IIOPInputStream.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
Example #11
Source File: InputStreamHook.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) {

            // In stream format version 2, we can skip over
            // the optional data this way.  In stream format version 1,
            // we will probably wind up with an error if we're
            // unmarshaling a superclass.
            if (stream.getStreamFormatVersion() == 2) {
                ((ValueInputStream)stream.getOrbStream()).start_value();
                ((ValueInputStream)stream.getOrbStream()).end_value();
            }

            stream.setState(DEFAULT_STATE);
        }
 
Example #12
Source File: InputStreamHook.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException {
    // Code should read default fields before calling this

    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).start_value();
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }

    stream.setState(DEFAULT_STATE);
}
 
Example #13
Source File: InputStreamHook.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void beginUnmarshalCustomValue(InputStreamHook stream,
                                      boolean calledDefaultWriteObject,
                                      boolean hasReadObject)
    throws IOException {

    if (hasReadObject) {
        if (calledDefaultWriteObject)
            stream.setState(IN_READ_OBJECT_DEFAULTS_SENT);
        else {
            try {
                if (stream.getStreamFormatVersion() == 2)
                    ((ValueInputStream)stream.getOrbStream()).start_value();
            } catch( Exception e ) {
                // This will happen for Big Integer which uses
                // writeFields in it's writeObject. We should be past
                // start_value by now.
                // NOTE: If we don't log any exception here we should
                // be fine. If there is an error, it will be caught
                // while reading the optional data.

            }
            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
    } else {
        if (calledDefaultWriteObject)
            stream.setState(NO_READ_OBJECT_DEFAULTS_SENT);
        else
            // XXX I18N and logging needed.
            throw new StreamCorruptedException("No default data sent");
    }
}
 
Example #14
Source File: InputStreamHook.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) {

            // In stream format version 2, we can skip over
            // the optional data this way.  In stream format version 1,
            // we will probably wind up with an error if we're
            // unmarshaling a superclass.
            if (stream.getStreamFormatVersion() == 2) {
                ((ValueInputStream)stream.getOrbStream()).start_value();
                ((ValueInputStream)stream.getOrbStream()).end_value();
            }

            stream.setState(DEFAULT_STATE);
        }
 
Example #15
Source File: InputStreamHook.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void endDefaultReadObject(InputStreamHook stream) throws IOException {

            // Read the fake valuetype header in stream format version 2
            if (stream.getStreamFormatVersion() == 2)
                ((ValueInputStream)stream.getOrbStream()).start_value();

            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
 
Example #16
Source File: InputStreamHook.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException
{
    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }
    stream.setState(DEFAULT_STATE);
}
 
Example #17
Source File: InputStreamHook.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException {
    // Code should read default fields before calling this

    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).start_value();
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }

    stream.setState(DEFAULT_STATE);
}
 
Example #18
Source File: InputStreamHook.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException
{
    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }
    stream.setState(DEFAULT_STATE);
}
 
Example #19
Source File: InputStreamHook.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void endDefaultReadObject(InputStreamHook stream) throws IOException {

            // Read the fake valuetype header in stream format version 2
            if (stream.getStreamFormatVersion() == 2)
                ((ValueInputStream)stream.getOrbStream()).start_value();

            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
 
Example #20
Source File: InputStreamHook.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) {

            // In stream format version 2, we can skip over
            // the optional data this way.  In stream format version 1,
            // we will probably wind up with an error if we're
            // unmarshaling a superclass.
            if (stream.getStreamFormatVersion() == 2) {
                ((ValueInputStream)stream.getOrbStream()).start_value();
                ((ValueInputStream)stream.getOrbStream()).end_value();
            }

            stream.setState(DEFAULT_STATE);
        }
 
Example #21
Source File: InputStreamHook.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void beginUnmarshalCustomValue(InputStreamHook stream,
                                      boolean calledDefaultWriteObject,
                                      boolean hasReadObject)
    throws IOException {

    if (hasReadObject) {
        if (calledDefaultWriteObject)
            stream.setState(IN_READ_OBJECT_DEFAULTS_SENT);
        else {
            try {
                if (stream.getStreamFormatVersion() == 2)
                    ((ValueInputStream)stream.getOrbStream()).start_value();
            } catch( Exception e ) {
                // This will happen for Big Integer which uses
                // writeFields in it's writeObject. We should be past
                // start_value by now.
                // NOTE: If we don't log any exception here we should
                // be fine. If there is an error, it will be caught
                // while reading the optional data.

            }
            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
    } else {
        if (calledDefaultWriteObject)
            stream.setState(NO_READ_OBJECT_DEFAULTS_SENT);
        else
            // XXX I18N and logging needed.
            throw new StreamCorruptedException("No default data sent");
    }
}
 
Example #22
Source File: InputStreamHook.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void endDefaultReadObject(InputStreamHook stream) throws IOException {

            // Read the fake valuetype header in stream format version 2
            if (stream.getStreamFormatVersion() == 2)
                ((ValueInputStream)stream.getOrbStream()).start_value();

            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
 
Example #23
Source File: InputStreamHook.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException {
    // Code should read default fields before calling this

    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).start_value();
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }

    stream.setState(DEFAULT_STATE);
}
 
Example #24
Source File: InputStreamHook.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException
{
    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }
    stream.setState(DEFAULT_STATE);
}
 
Example #25
Source File: InputStreamHook.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException
{
    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }
    stream.setState(DEFAULT_STATE);
}
 
Example #26
Source File: InputStreamHook.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void endDefaultReadObject(InputStreamHook stream) throws IOException {

            // Read the fake valuetype header in stream format version 2
            if (stream.getStreamFormatVersion() == 2)
                ((ValueInputStream)stream.getOrbStream()).start_value();

            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
 
Example #27
Source File: InputStreamHook.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) {

            // In stream format version 2, we can skip over
            // the optional data this way.  In stream format version 1,
            // we will probably wind up with an error if we're
            // unmarshaling a superclass.
            if (stream.getStreamFormatVersion() == 2) {
                ((ValueInputStream)stream.getOrbStream()).start_value();
                ((ValueInputStream)stream.getOrbStream()).end_value();
            }

            stream.setState(DEFAULT_STATE);
        }
 
Example #28
Source File: InputStreamHook.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void beginUnmarshalCustomValue(InputStreamHook stream,
                                      boolean calledDefaultWriteObject,
                                      boolean hasReadObject)
    throws IOException {

    if (hasReadObject) {
        if (calledDefaultWriteObject)
            stream.setState(IN_READ_OBJECT_DEFAULTS_SENT);
        else {
            try {
                if (stream.getStreamFormatVersion() == 2)
                    ((ValueInputStream)stream.getOrbStream()).start_value();
            } catch( Exception e ) {
                // This will happen for Big Integer which uses
                // writeFields in it's writeObject. We should be past
                // start_value by now.
                // NOTE: If we don't log any exception here we should
                // be fine. If there is an error, it will be caught
                // while reading the optional data.

            }
            stream.setState(IN_READ_OBJECT_OPT_DATA);
        }
    } else {
        if (calledDefaultWriteObject)
            stream.setState(NO_READ_OBJECT_DEFAULTS_SENT);
        else
            // XXX I18N and logging needed.
            throw new StreamCorruptedException("No default data sent");
    }
}
 
Example #29
Source File: InputStreamHook.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException {
    // Code should read default fields before calling this

    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).start_value();
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }

    stream.setState(DEFAULT_STATE);
}
 
Example #30
Source File: InputStreamHook.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void endUnmarshalCustomValue(InputStreamHook stream) throws IOException {
    // Code should read default fields before calling this

    if (stream.getStreamFormatVersion() == 2) {
        ((ValueInputStream)stream.getOrbStream()).start_value();
        ((ValueInputStream)stream.getOrbStream()).end_value();
    }

    stream.setState(DEFAULT_STATE);
}