public class LargeStringBuilderValue extends StringValue
| Modifier and Type | Field and Description |
|---|---|
protected byte[][] |
_bufferList |
protected int |
_length |
static StringValue |
EMPTY |
static int |
SIZE |
IS_DOUBLE, IS_LONG, IS_STRING, MIN_LENGTHL, NULL_ARGS, NULL_VALUE_ARRAY| Constructor and Description |
|---|
LargeStringBuilderValue() |
LargeStringBuilderValue(byte[][] bufferList,
int length) |
LargeStringBuilderValue(StringValue s) |
| Modifier and Type | Method and Description |
|---|---|
StringValue |
append(boolean v)
Append a Java boolean to the value.
|
StringValue |
append(byte v)
Append a Java byte to the value without conversions.
|
StringValue |
append(byte[] buf)
Append a double to the value.
|
StringValue |
append(byte[] buf,
int offset,
int length)
Append a buffer to the value.
|
StringValue |
append(char v)
Append a Java byte to the value without conversions.
|
StringValue |
append(char[] buf,
int offset,
int length)
Append a Java buffer to the value.
|
StringValue |
append(java.lang.CharSequence buf,
int head,
int tail)
Append a Java buffer to the value.
|
StringValue |
append(double v)
Append a Java double to the value.
|
StringValue |
append(long v)
Append a Java long to the value.
|
StringValue |
append(java.lang.String s)
Append a Java string to the value.
|
StringValue |
append(Value v)
Append a Java value to the value.
|
int |
appendRead(java.io.InputStream is,
long length)
Append from an input stream, using InputStream.read semantics,
i.e.
|
int |
appendReadAll(java.io.InputStream is,
long length)
Append from an input stream, reading from the input stream until
end of file or the length is reached.
|
void |
appendTo(StringValue bb)
Append to a string builder.
|
StringValue |
appendTo(UnicodeBuilderValue sb)
Append to a string builder.
|
StringValue |
appendUnicode(char[] buf,
int offset,
int length)
Append a Java buffer to the value.
|
char |
charAt(int index)
Returns the character at a particular location
|
Value |
charValueAt(long index)
Returns the character at an index
|
StringValue |
createEmptyStringBuilder()
Creates an empty string builder of the same type.
|
StringValue |
createStringBuilder()
Creates a string builder of the same type.
|
StringValue |
createStringBuilder(int length)
Creates a string builder of the same type.
|
Value |
get(Value key)
Returns the character at an index
|
java.io.OutputStream |
getOutputStream()
Returns an OutputStream.
|
java.lang.String |
getType()
Returns the type.
|
java.lang.String |
getValue()
Returns the value.
|
ValueType |
getValueType()
Returns the ValueType.
|
int |
hashCode()
Returns the hash code.
|
boolean |
isDouble()
Returns true for a double
|
boolean |
isLongConvertible()
Returns true for a long
|
boolean |
isNumber()
Returns true for a number
|
boolean |
isScalar()
Returns true for a scalar
|
int |
length()
Returns the length of the string.
|
void |
print(Env env)
Prints the value.
|
void |
print(Env env,
WriteStream out)
Prints the value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
void |
setLength(int len)
Sets the length.
|
java.lang.CharSequence |
subSequence(int start,
int end)
Returns a subsequence
|
StringValue |
toBinaryValue(Env env)
Converts to a BinaryValue.
|
StringValue |
toBinaryValue(java.lang.String charset)
Converts to a BinaryValue in desired charset.
|
boolean |
toBoolean()
Converts to a boolean.
|
byte[] |
toBytes()
Converts to a byte array, with no consideration of character encoding.
|
java.lang.String |
toDebugString() |
double |
toDouble()
Converts to a double.
|
java.io.InputStream |
toInputStream()
Convert to an input stream.
|
java.lang.Object |
toJavaObject()
Converts to an object.
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a long.
|
StringValue |
toLowerCase(java.util.Locale locale)
Convert to lower case.
|
java.lang.String |
toString()
Converts to a string.
|
StringValue |
toStringBuilder()
Converts to a string builder
|
StringValue |
toStringBuilder(Env env)
Converts to a string builder
|
StringValue |
toUpperCase()
Convert to lower case.
|
void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
add, append, append, append, append, append, append, append, append, append, append, appendByte, appendBytes, appendBytes, appendBytes, appendBytes, appendRead, appendReadAll, appendReadAll, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUtf8, appendUtf8, bitAnd, bitOr, bitXor, cmp, cmpString, convertToUnicode, create, create, create, create, endsWith, ensureAppendCapacity, eq, equals, equalsIgnoreCase, equalsString, equalsStringIgnoreCase, generate, getArg, getChars, getCrc32Value, getRawCharArray, hashCodeCaseInsensitive, increment, indexOf, indexOf, indexOf, indexOf, intern, isCallable, isDoubleConvertible, isEmpty, isNumeric, isset, isString, jsonEncode, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, putThisFieldArray, regionMatches, regionMatches, regionMatchesIgnoreCase, setCharValueAt, startsWith, stringSubstring, sub, substring, substring, toAutoArray, toAutoObject, toBinaryValueMarshalCost, toByteMarshalCost, toCallable, toCharArray, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDoubleMarshalCost, toFloatMarshalCost, toIntegerMarshalCost, toLong, toLongMarshalCost, toLowerCase, toReader, toShortMarshalCost, toSimpleReader, toString, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUpperCase, valuesToArray, varExportImpl, write, write, writeToabs, add, addOne, appendTo, appendTo, appendTo, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, checkPrivate, checkProtected, clone, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, findFunction, findQuercusClass, geq, get, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getSize, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isBoolean, isDefault, isEmpty, isFieldExists, isFieldInit, isLong, isNull, isNumberConvertible, isObject, isResource, isset, issetField, issetThisField, isUnicode, isVar, key, keyExists, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, sub, subOne, toArgRef, toArray, toArrayValue, toBigDecimal, toBigInteger, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toChar, toDouble, toDouble, toDouble, toDouble, toDoubleValue, toException, toInt, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongValue, toObject, toRef, toRefValue, toString, toStringBuilder, toStringBuilder, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExportpublic static final StringValue EMPTY
public static final int SIZE
protected byte[][] _bufferList
protected int _length
public LargeStringBuilderValue()
public LargeStringBuilderValue(byte[][] bufferList,
int length)
public LargeStringBuilderValue(StringValue s)
public StringValue createEmptyStringBuilder()
public java.lang.String getValue()
public java.lang.String getType()
getType in class StringValuepublic ValueType getValueType()
getValueType in class StringValuepublic boolean isLongConvertible()
isLongConvertible in class StringValuepublic boolean isNumber()
isNumber in class StringValuepublic boolean isScalar()
isScalar in class StringValuepublic boolean toBoolean()
toBoolean in class StringValuepublic double toDouble()
toDouble in class StringValuepublic java.io.InputStream toInputStream()
toInputStream in class StringValuepublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic java.lang.Object toJavaObject()
toJavaObject in class StringValuepublic StringValue toStringBuilder()
toStringBuilder in class Valuepublic StringValue toBinaryValue(Env env)
toBinaryValue in class Valuepublic StringValue toBinaryValue(java.lang.String charset)
toBinaryValue in class Valuepublic void appendTo(StringValue bb)
public Value toKey()
toKey in class StringValuepublic byte[] toBytes()
toBytes in class StringValuepublic Value get(Value key)
get in class StringValuepublic Value charValueAt(long index)
charValueAt in class StringValuepublic final void setLength(int len)
StringValuesetLength in class StringValuepublic int length()
length in interface java.lang.CharSequencelength in class StringValuepublic char charAt(int index)
charAt in interface java.lang.CharSequencecharAt in class StringValuepublic java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencesubSequence in class StringValuepublic StringValue toLowerCase(java.util.Locale locale)
toLowerCase in class StringValuepublic StringValue toUpperCase()
toUpperCase in class StringValuepublic StringValue createStringBuilder()
createStringBuilder in class StringValuepublic StringValue createStringBuilder(int length)
createStringBuilder in class StringValuepublic StringValue toStringBuilder(Env env)
toStringBuilder in class StringValuepublic final StringValue appendUnicode(char[] buf, int offset, int length)
appendUnicode in class StringValuepublic StringValue append(java.lang.String s)
append in class StringValuepublic StringValue append(java.lang.CharSequence buf, int head, int tail)
append in class StringValuepublic final StringValue append(char[] buf, int offset, int length)
append in class StringValuepublic final StringValue append(byte[] buf, int offset, int length)
append in class StringValuepublic final StringValue append(byte[] buf)
append in class StringValuepublic final StringValue append(char v)
append in class StringValuepublic final StringValue append(byte v)
public final StringValue append(boolean v)
append in class StringValuepublic StringValue append(long v)
append in class StringValuepublic StringValue append(double v)
append in class StringValuepublic final StringValue append(Value v)
append in class StringValuepublic int appendRead(java.io.InputStream is,
long length)
appendRead in class StringValuepublic int appendReadAll(java.io.InputStream is,
long length)
appendReadAll in class StringValuepublic StringValue appendTo(UnicodeBuilderValue sb)
appendTo in class StringValuepublic void print(Env env)
public void print(Env env, WriteStream out)
public void serialize(Env env, java.lang.StringBuilder sb)
serialize in class StringValuepublic java.io.OutputStream getOutputStream()
getOutputStream in class StringValuepublic int hashCode()
hashCode in class StringValuepublic java.lang.String toDebugString()
toDebugString in class StringValuepublic void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
varDumpImpl in class StringValuejava.io.IOException