本文整理了Java中org.jboss.marshalling.Marshalling.createOptionalDataException()
方法的一些代码示例,展示了Marshalling.createOptionalDataException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marshalling.createOptionalDataException()
方法的具体详情如下:
包路径:org.jboss.marshalling.Marshalling
类名称:Marshalling
方法名:createOptionalDataException
[英]Construct a new java.io.OptionalDataException. This method is necessary because there are no public constructors in the API.
[中]构建一个新的java。伊奥。OptionalDataException。此方法是必需的,因为API中没有公共构造函数。
代码示例来源:origin: wildfly/wildfly
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = serialUnmarshaller.read();
if (leadByte == -1 || leadByte == TC_ENDBLOCKDATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return serialUnmarshaller.doReadObject(leadByte, unshared);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-river
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-serial
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = serialUnmarshaller.read();
if (leadByte == -1 || leadByte == TC_ENDBLOCKDATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return serialUnmarshaller.doReadObject(leadByte, unshared);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: org.jboss.marshalling/river
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = riverUnmarshaller.read();
if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return riverUnmarshaller.doReadObject(leadByte, unshared, false);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = serialUnmarshaller.read();
if (leadByte == -1 || leadByte == TC_ENDBLOCKDATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return serialUnmarshaller.doReadObject(leadByte, unshared);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException {
if (remaining > 0) {
throw createOptionalDataException(remaining);
} else if (remaining == -1) {
throw createOptionalDataException(true);
}
final int leadByte = serialUnmarshaller.read();
if (leadByte == -1 || leadByte == TC_ENDBLOCKDATA) {
remaining = -1;
throw createOptionalDataException(true);
}
return serialUnmarshaller.doReadObject(leadByte, unshared);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi
case TC_BLOCKDATALONG: {
blockUnmarshaller.readBlockHeader(leadByte);
throw createOptionalDataException(blockUnmarshaller.remaining());
throw createOptionalDataException(0);
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-serial
case TC_BLOCKDATALONG: {
blockUnmarshaller.readBlockHeader(leadByte);
throw createOptionalDataException(blockUnmarshaller.remaining());
throw createOptionalDataException(0);
代码示例来源:origin: jboss-remoting/jboss-marshalling
case TC_BLOCKDATALONG: {
blockUnmarshaller.readBlockHeader(leadByte);
throw createOptionalDataException(blockUnmarshaller.remaining());
throw createOptionalDataException(0);
代码示例来源:origin: jboss-remoting/jboss-marshalling
case TC_BLOCKDATALONG: {
blockUnmarshaller.readBlockHeader(leadByte);
throw createOptionalDataException(blockUnmarshaller.remaining());
throw createOptionalDataException(0);
内容来源于网络,如有侵权,请联系作者删除!