本文整理了Java中java.io.ObjectOutputStream.annotateProxyClass()
方法的一些代码示例,展示了ObjectOutputStream.annotateProxyClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectOutputStream.annotateProxyClass()
方法的具体详情如下:
包路径:java.io.ObjectOutputStream
类名称:ObjectOutputStream
方法名:annotateProxyClass
[英]Writes optional information for a proxy class to the target stream. This optional data can be read when deserializing the proxy class from an input stream. By default, no extra data is saved.
[中]将代理类的可选信息写入目标流。当从输入流反序列化代理类时,可以读取此可选数据。默认情况下,不会保存额外的数据。
代码示例来源:origin: robovm/robovm
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: org.jboss/jboss-common-core
/**
* @throws java.io.IOException Any exception thrown by the underlying OutputStream.
*/
protected void annotateProxyClass(Class<?> cl) throws IOException
{
super.annotateProxyClass(cl);
}
代码示例来源:origin: org.jboss.aop/jboss-aop
/**
* @throws java.io.IOException Any exception thrown by the underlying OutputStream.
*/
protected void annotateProxyClass(Class<?> cl) throws IOException
{
super.annotateProxyClass(cl);
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
/**
* @throws IOException Any exception thrown by the underlying OutputStream.
*/
protected void annotateProxyClass(Class cl) throws IOException
{
super.annotateProxyClass(cl);
}
代码示例来源:origin: jboss.remoting/jboss-remoting
/**
* @throws java.io.IOException Any exception thrown by the underlying OutputStream.
*/
protected void annotateProxyClass(Class cl) throws IOException
{
super.annotateProxyClass(cl);
}
代码示例来源:origin: jtulach/bck2brwsr
/**
* Writes class descriptor representing a dynamic proxy class to stream.
*/
private void writeProxyDesc(ObjectStreamClass desc, boolean unshared)
throws IOException
{
bout.writeByte(TC_PROXYCLASSDESC);
handles.assign(unshared ? null : desc);
Class cl = desc.forClass();
Class[] ifaces = cl.getInterfaces();
bout.writeInt(ifaces.length);
for (int i = 0; i < ifaces.length; i++) {
bout.writeUTF(ifaces[i].getName());
}
bout.setBlockDataMode(true);
annotateProxyClass(cl);
bout.setBlockDataMode(false);
bout.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(desc.getSuperDesc(), false);
}
代码示例来源:origin: org.apidesign.bck2brwsr/emul
/**
* Writes class descriptor representing a dynamic proxy class to stream.
*/
private void writeProxyDesc(ObjectStreamClass desc, boolean unshared)
throws IOException
{
bout.writeByte(TC_PROXYCLASSDESC);
handles.assign(unshared ? null : desc);
Class cl = desc.forClass();
Class[] ifaces = cl.getInterfaces();
bout.writeInt(ifaces.length);
for (int i = 0; i < ifaces.length; i++) {
bout.writeUTF(ifaces[i].getName());
}
bout.setBlockDataMode(true);
annotateProxyClass(cl);
bout.setBlockDataMode(false);
bout.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(desc.getSuperDesc(), false);
}
代码示例来源:origin: ibinti/bugvm
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: com.bugvm/bugvm-rt
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: com.gluonhq/robovm-rt
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: MobiVM/robovm
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: com.jtransc/jtransc-rt
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
代码示例来源:origin: FlexoVM/flexovm
output.writeUTF(interfaces[i].getName());
annotateProxyClass(classToWrite);
output.writeByte(TC_ENDBLOCKDATA);
writeClassDesc(proxyClassDesc, false);
内容来源于网络,如有侵权,请联系作者删除!