APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class CStringUtilities

extends Object
Class Inheritance
Imports
java.io.*, java.nio.charset.Charset, java.util.*, sun.jvm.hotspot.debugger.*

A utility class encapsulating useful operations on C strings represented as Addresses

Field Summary

Modifier and TypeField and Description
private static String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
getString(Address addr, Charset charset)

Fetch a null-terminated ASCII string from the remote process.

public static int
getStringLength(Address addr)

Return the length of a null-terminated ASCII string in the remote process

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encodingback to summary
private static String encoding

Constructor Detail

CStringUtilitiesback to summary
public CStringUtilities()

Method Detail

getStringback to summary
public static String getString(Address addr)
getStringback to summary
public static String getString(Address addr, Charset charset)

Fetch a null-terminated ASCII string from the remote process. Returns null if the argument is null, otherwise returns a non-null string (for example, returns an empty string if the first character fetched is the null terminator).

getStringLengthback to summary
public static int getStringLength(Address addr)

Return the length of a null-terminated ASCII string in the remote process