org.omg.CORBA_2_3.portable.InputStream.mark()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(159)

本文整理了Java中org.omg.CORBA_2_3.portable.InputStream.mark()方法的一些代码示例,展示了InputStream.mark()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream.mark()方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.InputStream
类名称:InputStream
方法名:mark

InputStream.mark介绍

暂无

代码示例

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

public final void mark(int readAheadLimit)
{
  orbStream.mark(readAheadLimit);
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement

public final void mark(int readAheadLimit) {
  orbStream.mark(readAheadLimit);
}

代码示例来源:origin: jboss/jboss-javaee-specs

public final void mark(int readAheadLimit)
{
  orbStream.mark(readAheadLimit);
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public final void mark(int readAheadLimit) {
  orbStream.mark(readAheadLimit);
}

代码示例来源: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: jboss/jboss-javaee-specs

is.mark(0);
int magic = is.read_long();

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

is.mark(0);
int magic = is.read_long();

相关文章