com.sun.corba.se.impl.orbutil.RepositoryIdUtility Java Examples

The following examples show how to use com.sun.corba.se.impl.orbutil.RepositoryIdUtility. 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: CDRInputStream_1_0.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #2
Source File: CDRInputStream_1_0.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #3
Source File: CDRInputStream_1_0.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #4
Source File: CDRInputStream_1_0.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #5
Source File: CDRInputStream_1_0.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #6
Source File: CDRInputStream_1_0.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #7
Source File: CDRInputStream_1_0.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #8
Source File: CDRInputStream_1_0.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #9
Source File: CDRInputStream_1_0.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #10
Source File: CDRInputStream_1_0.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examines the valuetag to see how many (if any) repository IDs
 * are present on the wire.  If no repository ID information
 * is on the wire but the expectedType or expectedTypeRepId
 * is known, it will return one of those (favoring the
 * expectedType's repId). Failing that, it uses the supplied
 * BoxedValueHelper to obtain the repository ID, as a last resort.
 */
private String readRepositoryIds(int valueTag,
                                 Class expectedType,
                                 String expectedTypeRepId,
                                 BoxedValueHelper factory) {
    switch(repIdUtil.getTypeInfo(valueTag)) {
        case RepositoryIdUtility.NO_TYPE_INFO :
            // Throw an exception if we have no repository ID info and
            // no expectedType to work with.  Otherwise, how would we
            // know what to unmarshal?
            if (expectedType == null) {
                if (expectedTypeRepId != null) {
                    return expectedTypeRepId;
                } else if (factory != null) {
                    return factory.get_id();
                } else {
                    throw wrapper.expectedTypeNullAndNoRepId(
                        CompletionStatus.COMPLETED_MAYBE);
                }
            }
            return repIdStrs.createForAnyType(expectedType);
        case RepositoryIdUtility.SINGLE_REP_TYPE_INFO :
            return read_repositoryId();
        case RepositoryIdUtility.PARTIAL_LIST_TYPE_INFO :
            return read_repositoryIds();
        default:
            throw wrapper.badValueTag( CompletionStatus.COMPLETED_MAYBE,
                Integer.toHexString(valueTag) ) ;
    }
}
 
Example #11
Source File: CDRInputStream_1_0.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #12
Source File: CDRInputStream_1_0.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #13
Source File: CDRInputStream_1_0.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #14
Source File: CDRInputStream_1_0.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #15
Source File: CDRInputStream_1_0.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #16
Source File: CDRInputStream_1_0.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #17
Source File: CDRInputStream_1_0.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #18
Source File: CDRInputStream_1_0.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #19
Source File: CDRInputStream_1_0.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}
 
Example #20
Source File: CDRInputStream_1_0.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public void start_value() {
    // Read value tag
    int vType = readValueTag();

    if (vType == 0) {
        // Stream needs to go into a state where it
        // throws standard exception until end_value
        // is called.  This means the sender didn't
        // send any custom data.  If the reader here
        // tries to read more, we need to throw an
        // exception before reading beyond where
        // we're supposed to
        specialNoOptionalDataState = true;

        return;
    }

    if (vType == 0xffffffff) {
        // One should never indirect to a custom wrapper
        throw wrapper.customWrapperIndirection(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.isCodeBasePresent(vType)) {
        throw wrapper.customWrapperWithCodebase(
            CompletionStatus.COMPLETED_MAYBE);
    }

    if (repIdUtil.getTypeInfo(vType)
        != RepositoryIdUtility.SINGLE_REP_TYPE_INFO) {
        throw wrapper.customWrapperNotSingleRepid(
            CompletionStatus.COMPLETED_MAYBE);
    }


    // REVISIT - Could verify repository ID even though
    // it isn't used elsewhere
    read_repositoryId();

    // Note: isChunked should be true here.  Should have
    // been set to true in the containing value's read_value
    // method.

    start_block();
    end_flag--;
    chunkedValueNestingLevel--;
}