php.java.bridge
Class ParserString

java.lang.Object
  extended by php.java.bridge.ParserString

 class ParserString
extends java.lang.Object

This class holds the parser string.

Author:
jostb

Field Summary
(package private) static byte[] digits
           
protected  int length
           
protected  int off
           
protected  byte[] string
           
 
Constructor Summary
protected ParserString(JavaBridge bridge)
          Create a new ParserString
 
Method Summary
 java.lang.String getASCIIStringValue()
          Returns the ASCII string representation.
 java.lang.String getCachedStringValue()
          Returns the cached string encoded via java_set_file_encoding().
 int getClassicIntValue()
          Returns the int value.
 long getClassicLongValue()
          Returns the long value.
 double getDoubleValue()
          Returns the double value.
 int getIntValue()
          Returns the int value.
 long getLongValue()
          Returns the long value.
 java.lang.String getStringValue()
          Returns the string encoded via java_set_file_encoding().
 java.lang.String getUTF8StringValue()
          Returns the UTF8 string representation.
 java.lang.String toString()
          Returns the UTF8 string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

string

protected byte[] string

off

protected int off

length

protected int length

digits

static final byte[] digits
Constructor Detail

ParserString

protected ParserString(JavaBridge bridge)
Create a new ParserString

Method Detail

getUTF8StringValue

public java.lang.String getUTF8StringValue()
Returns the UTF8 string representation. Useful for debugging only

Returns:
The UTF-8 encoded string.

getStringValue

public java.lang.String getStringValue()
Returns the string encoded via java_set_file_encoding().

Returns:
The encoded string value.
See Also:
Options.getEncoding()

getCachedStringValue

public java.lang.String getCachedStringValue()
Returns the cached string encoded via java_set_file_encoding().

Returns:
The encoded string value.
See Also:
Options.getEncoding()

getASCIIStringValue

public java.lang.String getASCIIStringValue()
Returns the ASCII string representation. Useful for serialized objects, float, long.

Returns:
The ASCII encoded string.

getClassicIntValue

public int getClassicIntValue()
Returns the int value.

Returns:
The int value.

getClassicLongValue

public long getClassicLongValue()
Returns the long value.

Returns:
The long value.

getIntValue

public int getIntValue()
Returns the int value.

Returns:
The int value.

getLongValue

public long getLongValue()
Returns the long value.

Returns:
The long value.

getDoubleValue

public double getDoubleValue()
Returns the double value.

Returns:
The double value.

toString

public java.lang.String toString()
Returns the UTF8 string representation. Useful for debugging only

Overrides:
toString in class java.lang.Object
Returns:
The description of the string.