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

The following examples show how to use com.sun.corba.se.impl.orbutil.RepositoryIdUtility. These examples are extracted from open source projects. 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 Project: jdk1.8-source-analysis   Source File: CDRInputStream_1_0.java    License: 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
/**
 * 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 Project: jdk8u60   Source File: CDRInputStream_1_0.java    License: 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 Project: JDKSourceCode1.8   Source File: CDRInputStream_1_0.java    License: 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 5
/**
 * 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
/**
 * 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
/**
 * 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 Project: hottub   Source File: CDRInputStream_1_0.java    License: 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
/**
 * 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 Project: openjdk-8   Source File: CDRInputStream_1_0.java    License: 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 Project: jdk1.8-source-analysis   Source File: CDRInputStream_1_0.java    License: 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--;
}
 
Example 12
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 Project: jdk8u60   Source File: CDRInputStream_1_0.java    License: 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 Project: JDKSourceCode1.8   Source File: CDRInputStream_1_0.java    License: 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 15
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
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
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 Project: hottub   Source File: CDRInputStream_1_0.java    License: 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
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 Project: openjdk-8   Source File: CDRInputStream_1_0.java    License: 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--;
}