本文整理了Java中com.ctc.wstx.api.ReaderConfig.freeFullBBuffer
方法的一些代码示例,展示了ReaderConfig.freeFullBBuffer
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReaderConfig.freeFullBBuffer
方法的具体详情如下:
包路径:com.ctc.wstx.api.ReaderConfig
类名称: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);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!