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_LENGTH
L, 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, writeTo
abs, 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, varExport
public 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 StringValue
public ValueType getValueType()
getValueType
in class StringValue
public boolean isLongConvertible()
isLongConvertible
in class StringValue
public boolean isNumber()
isNumber
in class StringValue
public boolean isScalar()
isScalar
in class StringValue
public boolean toBoolean()
toBoolean
in class StringValue
public double toDouble()
toDouble
in class StringValue
public java.io.InputStream toInputStream()
toInputStream
in class StringValue
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public java.lang.Object toJavaObject()
toJavaObject
in class StringValue
public StringValue toStringBuilder()
toStringBuilder
in class Value
public StringValue toBinaryValue(Env env)
toBinaryValue
in class Value
public StringValue toBinaryValue(java.lang.String charset)
toBinaryValue
in class Value
public void appendTo(StringValue bb)
public Value toKey()
toKey
in class StringValue
public byte[] toBytes()
toBytes
in class StringValue
public Value get(Value key)
get
in class StringValue
public Value charValueAt(long index)
charValueAt
in class StringValue
public final void setLength(int len)
StringValue
setLength
in class StringValue
public int length()
length
in interface java.lang.CharSequence
length
in class StringValue
public char charAt(int index)
charAt
in interface java.lang.CharSequence
charAt
in class StringValue
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
subSequence
in class StringValue
public StringValue toLowerCase(java.util.Locale locale)
toLowerCase
in class StringValue
public StringValue toUpperCase()
toUpperCase
in class StringValue
public StringValue createStringBuilder()
createStringBuilder
in class StringValue
public StringValue createStringBuilder(int length)
createStringBuilder
in class StringValue
public StringValue toStringBuilder(Env env)
toStringBuilder
in class StringValue
public final StringValue appendUnicode(char[] buf, int offset, int length)
appendUnicode
in class StringValue
public StringValue append(java.lang.String s)
append
in class StringValue
public StringValue append(java.lang.CharSequence buf, int head, int tail)
append
in class StringValue
public final StringValue append(char[] buf, int offset, int length)
append
in class StringValue
public final StringValue append(byte[] buf, int offset, int length)
append
in class StringValue
public final StringValue append(byte[] buf)
append
in class StringValue
public final StringValue append(char v)
append
in class StringValue
public final StringValue append(byte v)
public final StringValue append(boolean v)
append
in class StringValue
public StringValue append(long v)
append
in class StringValue
public StringValue append(double v)
append
in class StringValue
public final StringValue append(Value v)
append
in class StringValue
public int appendRead(java.io.InputStream is, long length)
appendRead
in class StringValue
public int appendReadAll(java.io.InputStream is, long length)
appendReadAll
in class StringValue
public StringValue appendTo(UnicodeBuilderValue sb)
appendTo
in class StringValue
public void print(Env env)
public void print(Env env, WriteStream out)
public void serialize(Env env, java.lang.StringBuilder sb)
serialize
in class StringValue
public java.io.OutputStream getOutputStream()
getOutputStream
in class StringValue
public int hashCode()
hashCode
in class StringValue
public java.lang.String toDebugString()
toDebugString
in class StringValue
public void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
varDumpImpl
in class StringValue
java.io.IOException