protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
protected void reset() { stringValue = null; if (type == Type.Bytes) { byteChunk.recycleAndReset(); } else if (type == Type.Buffer) { bufferChunk.recycle(); } else if (type == Type.Chars) { charChunk.recycle(); } type = Type.None; }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }
/** Set the encoding. If the object was constructed from bytes[]. any * previous conversion is reset. * If no encoding is set, we'll use 8859-1. */ public void setCharset( Charset enc ) { if( !byteC.isNull() ) { // if the encoding changes we need to reset the converion results charC.recycle(); hasStrValue=false; } byteC.setCharset(enc); }