com.caucho.quercus.env
Class StringBuilderValue

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.StringValue
          extended by com.caucho.quercus.env.BinaryValue
              extended by com.caucho.quercus.env.StringBuilderValue
All Implemented Interfaces:
ByteAppendable, java.io.Serializable, java.lang.CharSequence
Direct Known Subclasses:
BinaryBuilderValue, ConstStringValue, UnsetStringValue

public class StringBuilderValue
extends BinaryValue

Represents a PHP 5 style string builder (unicode.semantics = off)

See Also:
Serialized Form

Field Summary
static StringBuilderValue EMPTY
           
 
Fields inherited from class com.caucho.quercus.env.StringValue
IS_DOUBLE, IS_LONG, IS_STRING, MIN_LENGTH
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
StringBuilderValue()
           
StringBuilderValue(byte ch)
           
StringBuilderValue(byte[] buffer)
           
StringBuilderValue(byte[] buffer, int offset, int length)
           
StringBuilderValue(byte[] s, Value v1)
           
StringBuilderValue(char ch)
           
StringBuilderValue(char[] s)
           
StringBuilderValue(char[] buffer, int length)
          Creates a new StringBuilderValue with the buffer without copying.
StringBuilderValue(char[] buffer, int offset, int length)
           
StringBuilderValue(char[] s, Value v1)
           
StringBuilderValue(int capacity)
           
StringBuilderValue(java.lang.String s)
           
StringBuilderValue(StringBuilderValue v)
           
StringBuilderValue(Value v1)
           
StringBuilderValue(Value v1, Value v2)
           
StringBuilderValue(Value v1, Value v2, Value v3)
           
 
Method Summary
 StringValue append(boolean v)
          Append a Java boolean to the value.
 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 ch)
          Append a Java char to the value.
 StringValue append(char[] buf)
          Append a Java buffer to the value.
 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.io.Reader reader, long length)
          Append from a read stream
 StringValue append(java.lang.String s)
          Append a Java string to the value.
 StringValue append(StringBuilderValue sb, int head, int tail)
          Append a Java buffer to the value.
 StringValue append(java.lang.String s, int start, int end)
          Append a Java string to the value.
 StringValue append(Value v)
          Append a Java value to the value.
 Value append(Value index, Value value)
          Sets the array ref.
 StringValue appendByte(int v)
          Append a Java byte to the value without conversions.
 StringValue appendBytes(byte[] bytes, int offset, int end)
          Append Java bytes to the value without conversions.
 StringValue appendBytes(java.lang.String s)
          Append a bytes to the value.
 StringValue appendTo(BinaryBuilderValue bb)
          Append to a string builder.
 StringValue appendTo(LargeStringBuilderValue bb)
          Append to a string builder.
 StringValue appendTo(StringBuilderValue bb)
          Append to a string builder.
 StringValue appendTo(UnicodeBuilderValue bb)
          Append to a string builder.
 StringValue appendUnicode(char[] buf)
          Append a Java buffer to the value.
 StringValue appendUnicode(char[] buf, int offset, int length)
          Append a Java buffer to the value.
 StringValue appendUnicode(Value v)
          Append a Java value to the value.
 StringValue appendUnicode(Value v1, Value v2)
          Append a Java value to the value.
 StringValue appendUtf8(byte[] buf, int offset, int length)
          Append a 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 copyStringBuilder()
          Converts to a string builder
static StringValue create(byte value)
          Creates the string.
static StringValue create(char value)
          Creates the string.
static Value create(java.lang.String value)
          Creates a PHP string from a Java String.
 StringBuilderValue createStringBuilder()
          Creates a string builder of the same type.
 StringBuilderValue createStringBuilder(byte[] buffer, int offset, int length)
          Creates a string builder of the same type.
 StringBuilderValue createStringBuilder(int length)
          Creates a string builder of the same type.
 void ensureAppendCapacity(int newCapacity)
          Ensure enough append capacity.
protected  void ensureCapacity(int newCapacity)
           
 boolean eq(Value rValue)
          Returns true for equality
 boolean eql(Value o)
          Returns true for equality
 boolean equals(java.lang.Object o)
          Test for equality
 Value get(Value key)
          Returns the character at an index
 byte[] getBuffer()
          Returns the buffer.
 int getBufferLength()
          Returns the current capacity.
 long getCrc32Value()
          Calculates CRC32 value.
 int getHashCode()
           
 int getOffset()
          Returns the offset.
 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.
static ValueType getValueType(byte[] buffer, int offset, int len)
           
 int hashCode()
          Returns the hash code.
 int hashCodeCaseInsensitive()
          Returns the hash code.
 int indexOf(char match)
          Returns the first index of the match string, starting from the head.
 int indexOf(char match, int head)
          Returns the last index of the match string, starting from the head.
 int indexOf(java.lang.CharSequence match, int head)
          Returns the first index of the match string, starting from the head.
 boolean isEmpty()
          Returns true if the value is empty.
 boolean isPHP5String()
           
 boolean isScalar()
          Returns true for a scalar
 boolean isset(Value indexV)
          Return true if the array value is set
 int length()
          Returns the length of the string.
 void print(Env env)
          Prints the value.
 void print(Env env, WriteStream out)
          Prints the value.
 Value put(Value index, Value value)
          Sets the array ref.
 boolean regionMatches(int offset, char[] mBuffer, int mOffset, int mLength)
          Returns true if the region matches
 boolean regionMatchesIgnoreCase(int offset, char[] mBuffer, int mOffset, int mLength)
          Returns true if the region matches
 void serialize(Env env, java.lang.StringBuilder sb)
          Serializes the value.
 Value setCharValueAt(long indexL, Value value)
          sets the character at an index
 void setOffset(int offset)
          Sets the offset.
 java.lang.String stringSubstring(int start, int end)
          Returns a subsequence
 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.
static double toDouble(byte[] buffer, int offset, int len)
           
 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()
          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 toStringBuilder(Env env, StringValue value)
          Converts to a string builder
 StringValue toStringBuilder(Env env, Value value)
          Converts to a string builder
 StringValue toUnicodeValue()
          Converts to a UnicodeValue.
 StringValue toUnicodeValue(Env env)
          Converts to a UnicodeValue.
 StringValue toUnicodeValue(Env env, java.lang.String charset)
          Converts to a UnicodeValue in desired charset.
 StringValue toUpperCase()
          Convert to lower case.
 void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 void write(byte[] buf, int offset, int length)
          Appends buffer to the ByteAppendable.
 void write(int ch)
          Appends value to the ByteAppendable.
 void writeTo(java.io.OutputStream os)
          Writes to a stream
 
Methods inherited from class com.caucho.quercus.env.BinaryValue
toBinaryValueMarshalCost
 
Methods inherited from class com.caucho.quercus.env.StringValue
add, append, append, append, append, append, appendBytes, appendBytes, appendRead, appendRead, appendReadAll, appendReadAll, appendReadAll, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUtf8, bitAnd, bitOr, bitXor, cmp, cmpString, convertToUnicode, create, create, endsWith, equalsIgnoreCase, generate, getArg, getChars, getRawCharArray, increment, indexOf, isDoubleConvertible, isLongConvertible, isNumber, isNumeric, isString, jsonEncode, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, regionMatches, sub, substring, substring, toAutoArray, toAutoObject, toByteMarshalCost, toCallable, toCharArray, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDoubleMarshalCost, toFloatMarshalCost, toInputStream, toIntegerMarshalCost, toLong, toLongMarshalCost, toReader, toShortMarshalCost, toSimpleReader, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, valuesToArray, varExport
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, addOne, 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, copyTree, current, div, div, end, eqValue, findFunction, geq, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, 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, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setFieldInit, setJavaObject, shuffle, sub_rev, sub, subOne, toArgRef, toArray, toArrayValue, toBigDecimal, toBigInteger, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toChar, toDoubleValue, toException, toInt, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongValue, toObject, toRef, toRefValue, toString, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, varDump
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final StringBuilderValue EMPTY
Constructor Detail

StringBuilderValue

public StringBuilderValue()

StringBuilderValue

public StringBuilderValue(int capacity)

StringBuilderValue

public StringBuilderValue(byte[] buffer,
                          int offset,
                          int length)

StringBuilderValue

public StringBuilderValue(char[] buffer,
                          int offset,
                          int length)

StringBuilderValue

public StringBuilderValue(char[] buffer,
                          int length)
Creates a new StringBuilderValue with the buffer without copying.


StringBuilderValue

public StringBuilderValue(byte[] buffer)

StringBuilderValue

public StringBuilderValue(char ch)

StringBuilderValue

public StringBuilderValue(byte ch)

StringBuilderValue

public StringBuilderValue(java.lang.String s)

StringBuilderValue

public StringBuilderValue(char[] s)

StringBuilderValue

public StringBuilderValue(char[] s,
                          Value v1)

StringBuilderValue

public StringBuilderValue(byte[] s,
                          Value v1)

StringBuilderValue

public StringBuilderValue(Value v1)

StringBuilderValue

public StringBuilderValue(StringBuilderValue v)

StringBuilderValue

public StringBuilderValue(Value v1,
                          Value v2)

StringBuilderValue

public StringBuilderValue(Value v1,
                          Value v2,
                          Value v3)
Method Detail

create

public static StringValue create(byte value)
Creates the string.


create

public static StringValue create(char value)
Creates the string.


create

public static Value create(java.lang.String value)
Creates a PHP string from a Java String. If the value is null then NullValue is returned.


getValue

public final java.lang.String getValue()
Returns the value.


getType

public java.lang.String getType()
Returns the type.

Overrides:
getType in class StringValue

getValueType

public ValueType getValueType()
Returns the ValueType.

Overrides:
getValueType in class StringValue

getValueType

public static final ValueType getValueType(byte[] buffer,
                                           int offset,
                                           int len)

isScalar

public final boolean isScalar()
Returns true for a scalar

Overrides:
isScalar in class StringValue

isPHP5String

public boolean isPHP5String()
Overrides:
isPHP5String in class StringValue

toBoolean

public final boolean toBoolean()
Converts to a boolean.

Overrides:
toBoolean in class StringValue

toLong

public long toLong()
Converts to a long.

Overrides:
toLong in class Value

toDouble

public double toDouble()
Converts to a double.

Overrides:
toDouble in class StringValue

toDouble

public static final double toDouble(byte[] buffer,
                                    int offset,
                                    int len)

toInputStream

public final java.io.InputStream toInputStream()
Convert to an input stream.

Overrides:
toInputStream in class StringValue
Returns:
InputStream

toString

public java.lang.String toString()
Converts to a string.

Specified by:
toString in interface java.lang.CharSequence
Overrides:
toString in class java.lang.Object

toBinaryValue

public final StringValue toBinaryValue(Env env)
Converts to a BinaryValue.

Overrides:
toBinaryValue in class Value

toBinaryValue

public final StringValue toBinaryValue(java.lang.String charset)
Converts to a BinaryValue in desired charset.

Overrides:
toBinaryValue in class Value

toUnicodeValue

public StringValue toUnicodeValue()
Converts to a UnicodeValue.

Overrides:
toUnicodeValue in class Value

toUnicodeValue

public StringValue toUnicodeValue(Env env)
Converts to a UnicodeValue.

Overrides:
toUnicodeValue in class Value

toUnicodeValue

public StringValue toUnicodeValue(Env env,
                                  java.lang.String charset)
Converts to a UnicodeValue in desired charset.

Overrides:
toUnicodeValue in class StringValue

toJavaObject

public final java.lang.Object toJavaObject()
Converts to an object.

Overrides:
toJavaObject in class StringValue

isEmpty

public final boolean isEmpty()
Returns true if the value is empty.

Overrides:
isEmpty in class StringValue

writeTo

public final void writeTo(java.io.OutputStream os)
Writes to a stream

Overrides:
writeTo in class StringValue

appendTo

public StringValue appendTo(StringBuilderValue bb)
Append to a string builder.

Overrides:
appendTo in class Value

appendTo

public StringValue appendTo(UnicodeBuilderValue bb)
Append to a string builder.

Overrides:
appendTo in class StringValue

appendTo

public StringValue appendTo(LargeStringBuilderValue bb)
Append to a string builder.

Overrides:
appendTo in class Value

appendTo

public StringValue appendTo(BinaryBuilderValue bb)
Append to a string builder.

Overrides:
appendTo in class Value

toKey

public Value toKey()
Converts to a key.

Overrides:
toKey in class StringValue

toBytes

public final byte[] toBytes()
Converts to a byte array, with no consideration of character encoding. Each character becomes one byte, characters with values above 255 are not correctly preserved.

Overrides:
toBytes in class StringValue

get

public final Value get(Value key)
Returns the character at an index

Overrides:
get in class StringValue

put

public Value put(Value index,
                 Value value)
Sets the array ref.

Overrides:
put in class Value

append

public Value append(Value index,
                    Value value)
Sets the array ref.

Overrides:
append in class StringValue

length

public int length()
Returns the length of the string.

Specified by:
length in interface java.lang.CharSequence
Overrides:
length in class StringValue

charAt

public final char charAt(int index)
Returns the character at a particular location

Specified by:
charAt in interface java.lang.CharSequence
Overrides:
charAt in class StringValue

charValueAt

public Value charValueAt(long index)
Returns the character at an index

Overrides:
charValueAt in class StringValue

setCharValueAt

public Value setCharValueAt(long indexL,
                            Value value)
sets the character at an index

Overrides:
setCharValueAt in class StringValue

indexOf

public int indexOf(char match)
Returns the first index of the match string, starting from the head.

Overrides:
indexOf in class StringValue

indexOf

public int indexOf(char match,
                   int head)
Returns the last index of the match string, starting from the head.

Overrides:
indexOf in class StringValue

subSequence

public java.lang.CharSequence subSequence(int start,
                                          int end)
Returns a subsequence

Specified by:
subSequence in interface java.lang.CharSequence
Overrides:
subSequence in class StringValue

stringSubstring

public java.lang.String stringSubstring(int start,
                                        int end)
Returns a subsequence

Overrides:
stringSubstring in class StringValue

toLowerCase

public StringValue toLowerCase()
Convert to lower case.

Overrides:
toLowerCase in class StringValue

toUpperCase

public StringValue toUpperCase()
Convert to lower case.

Overrides:
toUpperCase in class StringValue

regionMatches

public boolean regionMatches(int offset,
                             char[] mBuffer,
                             int mOffset,
                             int mLength)
Returns true if the region matches

Overrides:
regionMatches in class StringValue

regionMatchesIgnoreCase

public boolean regionMatchesIgnoreCase(int offset,
                                       char[] mBuffer,
                                       int mOffset,
                                       int mLength)
Returns true if the region matches

Overrides:
regionMatchesIgnoreCase in class StringValue

createStringBuilder

public StringBuilderValue createStringBuilder()
Creates a string builder of the same type.

Specified by:
createStringBuilder in class StringValue

createStringBuilder

public StringBuilderValue createStringBuilder(int length)
Creates a string builder of the same type.

Specified by:
createStringBuilder in class StringValue

createStringBuilder

public StringBuilderValue createStringBuilder(byte[] buffer,
                                              int offset,
                                              int length)
Creates a string builder of the same type.


copyStringBuilder

public StringValue copyStringBuilder()
Converts to a string builder

Overrides:
copyStringBuilder in class Value

toStringBuilder

public StringValue toStringBuilder()
Converts to a string builder

Overrides:
toStringBuilder in class Value

toStringBuilder

public StringValue toStringBuilder(Env env)
Converts to a string builder

Overrides:
toStringBuilder in class StringValue

toStringBuilder

public StringValue toStringBuilder(Env env,
                                   Value value)
Converts to a string builder

Overrides:
toStringBuilder in class Value

toStringBuilder

public StringValue toStringBuilder(Env env,
                                   StringValue value)
Converts to a string builder

Overrides:
toStringBuilder in class Value

append

public final StringValue append(java.lang.String s)
Append a Java string to the value.

Overrides:
append in class StringValue

append

public final StringValue append(java.lang.String s,
                                int start,
                                int end)
Append a Java string to the value.

Overrides:
append in class StringValue

append

public final StringValue append(char ch)
Append a Java char to the value.

Overrides:
append in class StringValue

write

public final void write(int ch)
Description copied from interface: ByteAppendable
Appends value to the ByteAppendable.

Specified by:
write in interface ByteAppendable
Overrides:
write in class StringValue

append

public final StringValue append(char[] buf,
                                int offset,
                                int length)
Append a Java buffer to the value.

Overrides:
append in class StringValue

append

public final StringValue append(char[] buf)
Append a Java buffer to the value.

Overrides:
append in class StringValue

appendUnicode

public StringValue appendUnicode(char[] buf)
Append a Java buffer to the value.

Overrides:
appendUnicode in class StringValue

appendUnicode

public StringValue appendUnicode(char[] buf,
                                 int offset,
                                 int length)
Append a Java buffer to the value.

Overrides:
appendUnicode in class StringValue

append

public final StringValue append(java.lang.CharSequence buf,
                                int head,
                                int tail)
Append a Java buffer to the value.

Overrides:
append in class StringValue

append

public StringValue append(StringBuilderValue sb,
                          int head,
                          int tail)
Append a Java buffer to the value.

Overrides:
append in class StringValue

append

public final StringValue append(Value v)
Append a Java value to the value.

Overrides:
append in class StringValue

indexOf

public final int indexOf(java.lang.CharSequence match,
                         int head)
Returns the first index of the match string, starting from the head.

Overrides:
indexOf in class StringValue

appendUnicode

public StringValue appendUnicode(Value v)
Append a Java value to the value.

Overrides:
appendUnicode in class StringValue

appendUnicode

public StringValue appendUnicode(Value v1,
                                 Value v2)
Append a Java value to the value.

Overrides:
appendUnicode in class StringValue

append

public final StringValue append(byte[] buf,
                                int offset,
                                int length)
Append a buffer to the value.

Overrides:
append in class StringValue

write

public final void write(byte[] buf,
                        int offset,
                        int length)
Description copied from class: StringValue
Appends buffer to the ByteAppendable.

Specified by:
write in interface ByteAppendable
Overrides:
write in class StringValue

append

public final StringValue append(byte[] buf)
Append a double to the value.

Overrides:
append in class StringValue

appendUtf8

public final StringValue appendUtf8(byte[] buf,
                                    int offset,
                                    int length)
Append a buffer to the value.

Overrides:
appendUtf8 in class StringValue

appendByte

public final StringValue appendByte(int v)
Append a Java byte to the value without conversions.

Overrides:
appendByte in class StringValue

append

public final StringValue append(boolean v)
Append a Java boolean to the value.

Overrides:
append in class StringValue

append

public StringValue append(long v)
Append a Java long to the value.

Overrides:
append in class StringValue

append

public StringValue append(double v)
Append a Java double to the value.

Overrides:
append in class StringValue

appendBytes

public StringValue appendBytes(java.lang.String s)
Append a bytes to the value.

Overrides:
appendBytes in class StringValue

appendBytes

public final StringValue appendBytes(byte[] bytes,
                                     int offset,
                                     int end)
Append Java bytes to the value without conversions.

Overrides:
appendBytes in class StringValue

append

public StringValue append(java.io.Reader reader,
                          long length)
                   throws java.io.IOException
Description copied from class: StringValue
Append from a read stream

Overrides:
append in class StringValue
Throws:
java.io.IOException

getBuffer

public final byte[] getBuffer()
Returns the buffer.


getOffset

public int getOffset()
Returns the offset.


setOffset

public void setOffset(int offset)
Sets the offset.


getBufferLength

public int getBufferLength()
Returns the current capacity.


isset

public boolean isset(Value indexV)
Return true if the array value is set

Overrides:
isset in class StringValue

print

public void print(Env env)
Prints the value.

Overrides:
print in class Value
Parameters:
env -

print

public void print(Env env,
                  WriteStream out)
Prints the value.

Overrides:
print in class Value
Parameters:
env -

serialize

public void serialize(Env env,
                      java.lang.StringBuilder sb)
Serializes the value.

Overrides:
serialize in class StringValue

toDebugString

public java.lang.String toDebugString()
Specified by:
toDebugString in class StringValue

varDumpImpl

public void varDumpImpl(Env env,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Specified by:
varDumpImpl in class StringValue
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
Returns an OutputStream.


getCrc32Value

public long getCrc32Value()
Calculates CRC32 value.

Overrides:
getCrc32Value in class StringValue

ensureAppendCapacity

public void ensureAppendCapacity(int newCapacity)
Description copied from class: StringValue
Ensure enough append capacity.

Overrides:
ensureAppendCapacity in class StringValue

ensureCapacity

protected void ensureCapacity(int newCapacity)

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class StringValue

hashCodeCaseInsensitive

public int hashCodeCaseInsensitive()
Returns the hash code.

Overrides:
hashCodeCaseInsensitive in class StringValue

getHashCode

public int getHashCode()
Overrides:
getHashCode in class Value

eq

public boolean eq(Value rValue)
Returns true for equality

Overrides:
eq in class StringValue

equals

public boolean equals(java.lang.Object o)
Description copied from class: StringValue
Test for equality

Overrides:
equals in class StringValue

eql

public boolean eql(Value o)
Description copied from class: Value
Returns true for equality

Overrides:
eql in class Value