本文整理汇总了Java中com.sun.org.omg.SendingContext.CodeBase类的典型用法代码示例。如果您正苦于以下问题:Java CodeBase类的具体用法?Java CodeBase怎么用?Java CodeBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeBase类属于com.sun.org.omg.SendingContext包,在下文中一共展示了CodeBase类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getOrderedDescriptions
import com.sun.org.omg.SendingContext.CodeBase; //导入依赖的package包/类
private Vector getOrderedDescriptions(String repositoryID,
com.sun.org.omg.SendingContext.CodeBase sender) {
Vector descs = new Vector();
if (sender == null) {
return descs;
}
FullValueDescription aFVD = sender.meta(repositoryID);
while (aFVD != null) {
descs.insertElementAt(aFVD, 0);
if ((aFVD.base_value != null) && !kEmptyStr.equals(aFVD.base_value)) {
aFVD = sender.meta(aFVD.base_value);
}
else return descs;
}
return descs;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:IIOPInputStream.java
示例2: EncapsInputStream
import com.sun.org.omg.SendingContext.CodeBase; //导入依赖的package包/类
/**
* Full constructor with a CodeBase parameter useful for
* unmarshaling RMI-IIOP valuetypes (technically against the
* intention of an encapsulation, but necessary due to OMG
* issue 4795. Used by ServiceContexts.
*/
public EncapsInputStream(org.omg.CORBA.ORB orb,
byte[] data,
int size,
GIOPVersion version,
CodeBase codeBase) {
super(orb,
ByteBuffer.wrap(data),
size,
false,
version, Message.CDR_ENC_VERSION,
BufferManagerFactory.newBufferManagerRead(
BufferManagerFactory.GROW,
Message.CDR_ENC_VERSION,
(ORB)orb));
this.codeBase = codeBase;
performORBVersionSpecificInit();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:EncapsInputStream.java
示例3: skipCustomUsingFVD
import com.sun.org.omg.SendingContext.CodeBase; //导入依赖的package包/类
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();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:IIOPInputStream.java
示例4: newEncapsInputStream
import com.sun.org.omg.SendingContext.CodeBase; //导入依赖的package包/类
public static EncapsInputStream newEncapsInputStream(
final org.omg.CORBA.ORB orb, final byte[] data, final int size,
final GIOPVersion version, final CodeBase codeBase) {
return AccessController
.doPrivileged(new PrivilegedAction<EncapsInputStream>() {
@Override
public EncapsInputStream run() {
return new EncapsInputStream(orb, data, size, version,
codeBase);
}
});
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:EncapsInputStreamFactory.java
示例5: readValueInternal
import com.sun.org.omg.SendingContext.CodeBase; //导入依赖的package包/类
private java.io.Serializable readValueInternal(IIOPInputStream bridge,
org.omg.CORBA_2_3.portable.InputStream in,
int offset,
java.lang.Class clazz,
String repositoryID,
com.sun.org.omg.SendingContext.CodeBase sender)
{
java.io.Serializable result = null;
if (clazz == null) {
// clazz == null indicates an FVD situation for a nonexistant class
if (isArray(repositoryID)){
read_Array(bridge, in, null, sender, offset);
} else {
bridge.simpleSkipObject(repositoryID, sender);
}
return result;
}
if (clazz.isArray()) {
result = (java.io.Serializable)read_Array(bridge, in, clazz, sender, offset);
} else {
result = (java.io.Serializable)bridge.simpleReadObject(clazz, repositoryID, sender, offset);
}
return result;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:ValueHandlerImpl.java
注:本文中的com.sun.org.omg.SendingContext.CodeBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论