com.ctc.wstx.api.ReaderConfig.freeFullBBuffer()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(73)

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

ReaderConfig.freeFullBBuffer介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * This method should be called along with (or instead of) normal
 * close. After calling this method, no further reads should be tried.
 * Method will try to recycle read buffers (if any).
 */
public final void freeBuffers()
{
  /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
   *   recycled by the next stream reader instantiated by this
   *   thread (if any).
   */
if (mRecycleBuffer) {
  byte[] buf = mByteBuffer;
  if (buf != null) {
  mByteBuffer = null;
  if (mConfig != null) {
    mConfig.freeFullBBuffer(buf);
  }
  }
}
}

代码示例来源:origin: woodstox/wstx-asl

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: Nextdoor/bender

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: FasterXML/woodstox

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: woodstox/wstx-lgpl

private void freeMergedBuffer()
  {
    if (mData != null) {
      byte[] data = mData;
      mData = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(data);
      }
    }
  }
}

代码示例来源:origin: woodstox/wstx-asl

/**
   * This method should be called along with (or instead of) normal
   * close. After calling this method, no further reads should be tried.
   * Method will try to recycle read buffers (if any).
   */
  public final void freeBuffers()
  {
//System.err.println("DEBUG: BaseReader, freeBuffers");
    /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
     *   recycled by the next stream reader instantiated by this
     *   thread (if any).
     */
    byte[] buf = mBuffer;
//System.err.println("DEBUG: buf: "+buf+", cfg: "+mConfig);
    if (buf != null) {
      mBuffer = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(buf);
      }
    }
  }

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

/**
 * This method should be called along with (or instead of) normal
 * close. After calling this method, no further reads should be tried.
 * Method will try to recycle read buffers (if any).
 */
public final void freeBuffers()
{
  /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
   *   recycled by the next stream reader instantiated by this
   *   thread (if any).
   */
if (mRecycleBuffer) {
  byte[] buf = mByteBuffer;
  if (buf != null) {
  mByteBuffer = null;
  if (mConfig != null) {
    mConfig.freeFullBBuffer(buf);
  }
  }
}
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

/**
 * This method should be called along with (or instead of) normal
 * close. After calling this method, no further reads should be tried.
 * Method will try to recycle read buffers (if any).
 */
public final void freeBuffers()
{
  /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
   *   recycled by the next stream reader instantiated by this
   *   thread (if any).
   */
if (mRecycleBuffer) {
  byte[] buf = mByteBuffer;
  if (buf != null) {
  mByteBuffer = null;
  if (mConfig != null) {
    mConfig.freeFullBBuffer(buf);
  }
  }
}
}

代码示例来源:origin: woodstox/wstx-lgpl

/**
   * This method should be called along with (or instead of) normal
   * close. After calling this method, no further reads should be tried.
   * Method will try to recycle read buffers (if any).
   */
  public final void freeBuffers()
  {
//System.err.println("DEBUG: BaseReader, freeBuffers");
    /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
     *   recycled by the next stream reader instantiated by this
     *   thread (if any).
     */
    byte[] buf = mBuffer;
//System.err.println("DEBUG: buf: "+buf+", cfg: "+mConfig);
    if (buf != null) {
      mBuffer = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(buf);
      }
    }
  }

代码示例来源:origin: Nextdoor/bender

/**
 * This method should be called along with (or instead of) normal
 * close. After calling this method, no further reads should be tried.
 * Method will try to recycle read buffers (if any).
 */
public final void freeBuffers()
{
  /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
   *   recycled by the next stream reader instantiated by this
   *   thread (if any).
   */
if (mRecycleBuffer) {
  byte[] buf = mByteBuffer;
  if (buf != null) {
  mByteBuffer = null;
  if (mConfig != null) {
    mConfig.freeFullBBuffer(buf);
  }
  }
}
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

/**
   * This method should be called along with (or instead of) normal
   * close. After calling this method, no further reads should be tried.
   * Method will try to recycle read buffers (if any).
   */
  public final void freeBuffers()
  {
//System.err.println("DEBUG: BaseReader, freeBuffers");
    /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
     *   recycled by the next stream reader instantiated by this
     *   thread (if any).
     */
    byte[] buf = mBuffer;
//System.err.println("DEBUG: buf: "+buf+", cfg: "+mConfig);
    if (buf != null) {
      mBuffer = null;
      if (mConfig != null) {
        mConfig.freeFullBBuffer(buf);
      }
    }
  }

代码示例来源:origin: FasterXML/woodstox

/**
 * This method should be called along with (or instead of) normal
 * close. After calling this method, no further reads should be tried.
 * Method will try to recycle read buffers (if any).
 */
public final void freeBuffers()
{
  /* 11-Apr-2005, TSa: Ok, we can release the buffer now, to be
   *   recycled by the next stream reader instantiated by this
   *   thread (if any).
   */
if (mRecycleBuffer) {
  byte[] buf = mByteBuffer;
  if (buf != null) {
  mByteBuffer = null;
  if (mConfig != null) {
    mConfig.freeFullBBuffer(buf);
  }
  }
}
}

相关文章

微信公众号

最新文章

更多

ReaderConfig类方法