本文整理了Java中java.io.ObjectInputStream.corruptStream()
方法的一些代码示例,展示了ObjectInputStream.corruptStream()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.corruptStream()
方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:corruptStream
暂无
代码示例来源:origin: robovm/robovm
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: robovm/robovm
break;
default:
throw corruptStream(tc);
代码示例来源:origin: robovm/robovm
throw e;
default:
throw corruptStream(tc);
代码示例来源:origin: robovm/robovm
return null;
default:
throw corruptStream(tc);
代码示例来源:origin: robovm/robovm
return null;
default:
throw corruptStream(tc);
代码示例来源:origin: MobiVM/robovm
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: ibinti/bugvm
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: com.jtransc/jtransc-rt
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: FlexoVM/flexovm
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
private ObjectStreamClass readEnumDesc() throws IOException,
ClassNotFoundException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readEnumDescInternal();
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: ibinti/bugvm
break;
default:
throw corruptStream(tc);
代码示例来源:origin: MobiVM/robovm
break;
default:
throw corruptStream(tc);
代码示例来源:origin: com.gluonhq/robovm-rt
break;
default:
throw corruptStream(tc);
代码示例来源:origin: com.jtransc/jtransc-rt
break;
default:
throw corruptStream(tc);
代码示例来源:origin: com.bugvm/bugvm-rt
break;
default:
throw corruptStream(tc);
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Reads a class descriptor (an {@code ObjectStreamClass}) from the
* stream.
*
* @return the class descriptor read from the stream
* @throws IOException If an IO exception happened when reading the class
* descriptor.
* @throws ClassNotFoundException If the class corresponding to the class descriptor could not
* be found.
*/
private ObjectStreamClass readClassDesc() throws ClassNotFoundException, IOException {
byte tc = nextTC();
switch (tc) {
case TC_CLASSDESC:
return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
Class<?> proxyClass = readNewProxyClassDesc();
ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);
registerObjectRead(streamClass, nextHandle(), false);
checkedSetSuperClassDesc(streamClass, readClassDesc());
return streamClass;
case TC_REFERENCE:
return (ObjectStreamClass) readCyclicReference();
case TC_NULL:
return null;
default:
throw corruptStream(tc);
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
return null;
default:
throw corruptStream(tc);
代码示例来源:origin: FlexoVM/flexovm
return null;
default:
throw corruptStream(tc);
内容来源于网络,如有侵权,请联系作者删除!