本文整理了Java中org.omg.CORBA_2_3.portable.InputStream.reset()
方法的一些代码示例,展示了InputStream.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream.reset()
方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.InputStream
类名称:InputStream
方法名:reset
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public final void reset() throws IOException {
try {
orbStream.reset();
} catch (Error e) {
IOException err = new IOException(e.getMessage());
err.initCause(e) ;
throw err ;
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement
public final void reset() throws IOException {
try {
orbStream.reset();
} catch (Error e) {
IOException err = new IOException(e.getMessage());
err.initCause(e) ;
throw err ;
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public final void reset() throws IOException
{
try
{
orbStream.reset();
}
catch (Error e)
{
IOException err = new IOException(e.getMessage());
err.initCause(e);
throw err;
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
public final void reset() throws IOException
{
try
{
orbStream.reset();
}
catch (Error e)
{
IOException err = new IOException(e.getMessage());
err.initCause(e);
throw err;
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/** Creates an ObjectKeyTemplate from the InputStream. Most of the
* decoding is done inside the handler.
*/
private ObjectKeyTemplate create( InputStream is, Handler handler,
OctetSeqHolder osh )
{
ObjectKeyTemplate oktemp = null ;
try {
is.mark(0) ;
int magic = is.read_long() ;
if (validMagic( magic )) {
int scid = is.read_long() ;
oktemp = handler.handle( magic, scid, is, osh ) ;
}
} catch (MARSHAL mexc) {
// XXX log this error
// ignore this: error handled below because oktemp == null
}
if (oktemp == null)
// If we did not successfully construct a oktemp, reset the
// stream so that WireObjectKeyTemplate can correctly construct the
// object key.
try {
is.reset() ;
} catch (IOException exc) {
// XXX log this error
// ignore this
}
return oktemp ;
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
is.reset();
代码示例来源:origin: jboss/jboss-javaee-specs
is.reset();
内容来源于网络,如有侵权,请联系作者删除!