static private final int TWENTYFOURBITGROUP = 24;
static private final int EIGHTBIT = 8;
static private final int SIXTEENBIT = 16;
- static private final int SIXBIT = 6;
static private final int FOURBYTE = 4;
private ByteInputChannel in = null;
private ByteOutputChannel out = null;
- private boolean isOutput=false;
private boolean optimizedWrite=true;
/**
// -------------------- Setup --------------------
public void allocate( int initial, int limit ) {
- isOutput=true;
if( buff==null || buff.length < initial ) {
buff=new byte[initial];
}
private boolean isSet=false; // XXX
- private boolean isOutput=false;
-
// -1: grow undefinitely
// maximum amount to be cached
private int limit=-1;
// -------------------- Setup --------------------
public void allocate( int initial, int limit ) {
- isOutput=true;
if( buff==null || buff.length < initial ) {
buff=new char[initial];
}
this.limit=limit;
start=0;
end=0;
- isOutput=true;
isSet=true;
}
package org.apache.tomcat.util.buf;
-import java.util.*;
import java.io.Serializable;
import java.io.IOException;
hasHashCode=false;
hasIntValue=false;
hasLongValue=false;
- hasDateValue=false;
}
hasHashCode=false;
hasIntValue=false;
hasLongValue=false;
- hasDateValue=false;
}
/** Set the encoding. If the object was constructed from bytes[]. any
hasHashCode=false;
hasIntValue=false;
hasLongValue=false;
- hasDateValue=false;
}
/** Remove the cached string value. Use it after a conversion on the
hasHashCode=false;
hasIntValue=false;
hasLongValue=false;
- hasDateValue=false;
if (s == null) {
hasStrValue=false;
type=T_NULL;
private boolean hasIntValue=false;
private long longValue;
private boolean hasLongValue=false;
- private Date dateValue;
- private boolean hasDateValue=false;
/** Set the buffer to the representation of an int
*/
hasHashCode=false;
hasIntValue=true;
hasLongValue=false;
- hasDateValue=false;
type=T_BYTES;
}
hasHashCode=false;
hasIntValue=false;
hasLongValue=true;
- hasDateValue=false;
type=T_BYTES;
}