Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Uses of Class
java.lang.String

Uses of String in java.lang
 

Fields in java.lang declared as String
(package private)  String[] VMProcess.cmd
           
(package private)  String[] VMProcess.env
           
private  String Class.MethodKey.name
           
private  String Throwable.detailMessage
          The detail message.
(package private) static String Throwable.StaticData.nl
           
(package private)  String Thread.name
          The thread name, non-null.
(package private)  String ThreadGroup.name
          The group name, non-null.
private  String StackTraceElement.fileName
          The name of the file, null if unknown.
private  String StackTraceElement.declaringClass
          The fully qualified class name, null if unknown.
private  String StackTraceElement.methodName
          The method name in the class, null if unknown.
private  String Character.Subset.name
          The name of the subset.
private  String Character.UnicodeBlock.canonicalName
          The canonical name of the block according to the Unicode standard.
private  String[] Runtime.libpath
          The library path, to search when loading libraries.
private  String Package.name
          The name of the Package
private  String Package.implTitle
          The name if the implementation
private  String Package.implVendor
          The vendor that wrote this implementation
private  String Package.implVersion
          The version of this implementation
private  String Package.specTitle
          The name of the specification
private  String Package.specVendor
          The name of the specification designer
private  String Package.specVersion
          The version of this specification
(package private)  String Enum.name
          The name of this enum constant.
private  String TypeNotPresentException.typeName
          The name of the missing type.
private  String EnumConstantNotPresentException.constantName
          The name of the missing enum constant.
 

Methods in java.lang that return String
(package private)  String VMThread.getName()
          Gets the name of the thread.
(package private) static String VMSystem.getenv(String name)
          Gets the value of an environment variable.
(package private) static String VMString.intern(String str)
          Fetches this String from the intern hashtable.
(package private) static String VMRuntime.mapLibraryName(String libname)
          Map a system-independent "short name" to the full file name.
static String VMDouble.toString(double d, boolean isFloat)
          Helper method to convert to string.
(package private) static String VMClass.getName(Class klass)
          Get the name of this class, separated by dots for package separators.
(package private) static String VMClass.getSimpleName(Class klass)
          Returns the simple name for the specified class, as used in the source code.
(package private) static String VMClass.getCanonicalName(Class klass)
           Returns the canonical name of the specified class, as defined by section 6.7 of the Java language specification.
(package private) static String VMClass.getClassSignature(Class klass)
          Returns the class signature as specified in Class File Format chapter in the VM specification, or null if the class is not generic.
private static String[] VMClassLoader.getBootPackages()
          Returns a String[] of native package names.
 String Object.toString()
          Convert this Object to a human-readable String.
 String CharSequence.toString()
          Returns the complete CharSequence as a String.
 String String.substring(int begin)
          Creates a substring of this String, starting at a specified index and ending at the end of this String.
 String String.substring(int beginIndex, int endIndex)
          Creates a substring of this String, starting at a specified index and ending at one character before a specified index.
 String String.concat(String str)
          Concatenates a String to this String.
 String String.replace(char oldChar, char newChar)
          Replaces every instance of a character in this String with a new character.
 String String.replaceFirst(String regex, String replacement)
          Replaces the first substring match of the regular expression with a given replacement.
 String String.replaceAll(String regex, String replacement)
          Replaces all matching substrings of the regular expression with a given replacement.
 String[] String.split(String regex, int limit)
          Split this string around the matches of a regular expression.
 String[] String.split(String regex)
          Split this string around the matches of a regular expression.
 String String.toLowerCase(java.util.Locale loc)
          Lowercases this String according to a particular locale.
 String String.toLowerCase()
          Lowercases this String.
 String String.toUpperCase(java.util.Locale loc)
          Uppercases this String according to a particular locale.
 String String.toUpperCase()
          Uppercases this String.
 String String.trim()
          Trims all characters less than or equal to ' ' (' ') from the beginning and end of this String.
 String String.toString()
          Returns this, as it is already a String!
static String String.valueOf(Object obj)
          Returns a String representation of an Object.
static String String.valueOf(char[] data)
          Returns a String representation of a character array.
static String String.valueOf(char[] data, int offset, int count)
          Returns a String representing the character sequence of the char array, starting at the specified offset, and copying chars up to the specified count.
static String String.copyValueOf(char[] data, int offset, int count)
          Returns a String representing the character sequence of the char array, starting at the specified offset, and copying chars up to the specified count.
static String String.copyValueOf(char[] data)
          Returns a String representation of a character array.
static String String.valueOf(boolean b)
          Returns a String representing a boolean.
static String String.valueOf(char c)
          Returns a String representing a character.
static String String.valueOf(int i)
          Returns a String representing an integer.
static String String.valueOf(long l)
          Returns a String representing a long.
static String String.valueOf(float f)
          Returns a String representing a float.
static String String.valueOf(double d)
          Returns a String representing a double.
 String String.intern()
          If two Strings are considered equal, by the equals() method, then intern() will return the same String instance.
 String String.replace(CharSequence target, CharSequence replacement)
          Returns a string that is this string with all instances of the sequence represented by target replaced by the sequence in replacement.
 String Class.getName()
          Get the name of this class, separated by dots for package separators.
private  String Class.resourcePath(String resourceName)
           
 String Class.toString()
          Return the human-readable form of this Object.
private static String Class.getPackagePortion(String name)
          Strip the last portion of the name (after the last dot).
 String Class.getSimpleName()
          Returns the simple name for this class, as used in the source code.
 String Class.getCanonicalName()
           Returns the canonical name of this class, as defined by section 6.7 of the Java language specification.
protected  String ClassLoader.findLibrary(String name)
          Called by Runtime.loadLibrary() to get an absolute path to a (system specific) library that was requested by a class loaded by this classloader.
static String System.getProperty(String key)
          Get a single system property by name.
static String System.getProperty(String key, String def)
          Get a single system property by name.
static String System.setProperty(String key, String value)
          Set a single system property by name.
static String System.clearProperty(String key)
          Remove a single system property by name.
static String System.getenv(String name)
          Gets the value of an environment variable.
static String System.mapLibraryName(String libname)
          Convert a library name to its platform-specific variant.
 String Throwable.getMessage()
          Get the message associated with this Throwable.
 String Throwable.getLocalizedMessage()
          Get a localized version of this Throwable's error message.
 String Throwable.toString()
          Get a human-readable representation of this Throwable.
private  String Throwable.stackTraceString()
           
 String Thread.getName()
          Get this Thread's name.
 String Thread.toString()
          Returns a string representation of this thread, including the thread's name, priority, and thread group.
 String ThreadGroup.getName()
          Get the name of this ThreadGroup.
 String ThreadGroup.toString()
          Return a human-readable String representing this ThreadGroup.
 String StringBuffer.substring(int beginIndex)
          Creates a substring of this StringBuffer, starting at a specified index and ending at the end of this StringBuffer.
 String StringBuffer.substring(int beginIndex, int endIndex)
          Creates a substring of this StringBuffer, starting at a specified index and ending at one character before a specified index.
 String StringBuffer.toString()
          Convert this StringBuffer to a String.
 String StackTraceElement.getFileName()
          Returns the name of the file, or null if unknown.
 String StackTraceElement.getClassName()
          Returns the fully qualified class name, or null if unknown.
 String StackTraceElement.getMethodName()
          Returns the method name in the class, or null if unknown.
 String StackTraceElement.toString()
          Returns a string representation of this stack trace element.
static String Boolean.toString(boolean b)
          Returns "true" if the value of the give boolean is true and returns "false" if the value of the given boolean is false.
 String Boolean.toString()
          Returns "true" if the value of this object is true and returns "false" if the value of this object is false.
 String Character.toString()
          Converts the wrapped character into a String.
static String Character.toString(char ch)
          Returns a String of length 1 representing the specified character.
 String Character.Subset.toString()
          Returns the name of the subset.
static String Float.toString(float f)
          Convert the float to a String.
static String Float.toHexString(float f)
          Convert a float value to a hexadecimal string.
 String Float.toString()
          Convert the float value of this Float to a String.
static String Double.toString(double d)
          Convert the double to a String.
static String Double.toHexString(double d)
          Convert a double value to a hexadecimal string.
 String Double.toString()
          Convert the double value of this Double to a String.
static String Byte.toString(byte b)
          Converts the byte to a String and assumes a radix of 10.
 String Byte.toString()
          Converts the Byte value to a String and assumes a radix of 10.
static String Short.toString(short s)
          Converts the short to a String and assumes a radix of 10.
 String Short.toString()
          Converts the Short value to a String and assumes a radix of 10.
static String Integer.toString(int num, int radix)
          Converts the int to a String using the specified radix (base).
static String Integer.toHexString(int i)
          Converts the int to a String assuming it is unsigned in base 16.
static String Integer.toOctalString(int i)
          Converts the int to a String assuming it is unsigned in base 8.
static String Integer.toBinaryString(int i)
          Converts the int to a String assuming it is unsigned in base 2.
static String Integer.toString(int i)
          Converts the int to a String and assumes a radix of 10.
 String Integer.toString()
          Converts the Integer value to a String and assumes a radix of 10.
(package private) static String Integer.toUnsignedString(int num, int exp)
          Helper for converting unsigned numbers to String.
static String Long.toString(long num, int radix)
          Converts the long to a String using the specified radix (base).
static String Long.toHexString(long l)
          Converts the long to a String assuming it is unsigned in base 16.
static String Long.toOctalString(long l)
          Converts the long to a String assuming it is unsigned in base 8.
static String Long.toBinaryString(long l)
          Converts the long to a String assuming it is unsigned in base 2.
static String Long.toString(long num)
          Converts the long to a String and assumes a radix of 10.
 String Long.toString()
          Converts the Long value to a String and assumes a radix of 10.
private static String Long.toUnsignedString(long num, int exp)
          Helper for converting unsigned numbers to String.
 String StringBuilder.substring(int beginIndex)
          Creates a substring of this StringBuilder, starting at a specified index and ending at the end of this StringBuilder.
 String StringBuilder.substring(int beginIndex, int endIndex)
          Creates a substring of this StringBuilder, starting at a specified index and ending at one character before a specified index.
 String StringBuilder.toString()
          Convert this StringBuilder to a String.
 String Package.getName()
          Returns the Package name in dot-notation.
 String Package.getSpecificationTitle()
          Returns the name of the specification, or null if unknown.
 String Package.getSpecificationVersion()
          Returns the version of the specification, or null if unknown.
 String Package.getSpecificationVendor()
          Returns the name of the specification designer, or null if unknown.
 String Package.getImplementationTitle()
          Returns the name of the implementation, or null if unknown.
 String Package.getImplementationVersion()
          Returns the version of this implementation, or null if unknown.
 String Package.getImplementationVendor()
          Returns the vendor that wrote this implementation, or null if unknown.
 String Package.toString()
          Returns a string representation of this package.
 String Enum.toString()
          Returns a textual representation of this enumeration constant.
 String Enum.name()
          Returns the name of this enumeration constant.
 String TypeNotPresentException.typeName()
          Returns the name of the missing type.
 String EnumConstantNotPresentException.constantName()
          Return the name of the missing constant.
 

Methods in java.lang with parameters of type String
(package private)  void VMThread.setName(String name)
          Set the name of the thread.
(package private) static String VMSystem.getenv(String name)
          Gets the value of an environment variable.
(package private) static String VMString.intern(String str)
          Fetches this String from the intern hashtable.
(package private) static int VMRuntime.nativeLoad(String filename, ClassLoader loader)
          Load a file.
(package private) static String VMRuntime.mapLibraryName(String libname)
          Map a system-independent "short name" to the full file name.
(package private) static Process VMRuntime.exec(String[] cmd, String[] env, java.io.File dir)
          Execute a process.
(package private) static Process VMProcess.exec(String[] cmd, String[] env, java.io.File dir)
          Entry point from Runtime.exec().
(package private)  void VMProcess.nativeSpawn(String[] cmd, String[] env, java.io.File dir, boolean redirect)
          Does the fork()/exec() thing to create the O/S process.
static double VMDouble.parseDouble(String str)
           
static boolean VMCompiler.compileClasses(String classNames)
          Compile the classes whose name matches classNames.
(package private) static Class VMClass.forName(String name, boolean initialize, ClassLoader loader)
          Load the requested class and record the specified loader as the initiating class loader.
(package private) static Class VMClassLoader.defineClass(ClassLoader cl, String name, byte[] data, int offset, int len, java.security.ProtectionDomain pd)
          Helper to define a class using a string of bytes.
(package private) static Class VMClassLoader.loadClass(String name, boolean resolve)
          Helper to load a class from the bootstrap class loader.
(package private) static java.net.URL VMClassLoader.getResource(String name)
          Helper to load a resource from the bootstrap class loader.
(package private) static java.util.Enumeration VMClassLoader.getResources(String name)
          Helper to get a list of resources from the bootstrap class loader.
(package private) static Package VMClassLoader.getPackage(String name)
          Helper to get a package from the bootstrap class loader.
(package private) static Class VMClassLoader.findLoadedClass(ClassLoader cl, String name)
          Find the class if this class loader previously defined this class or if this class loader has been recorded as the initiating class loader for this class.
(package private) static Class VMClassLoader.defineClassWithTransformers(ClassLoader loader, String name, byte[] data, int offset, int len, java.security.ProtectionDomain pd)
          Call the transformers of the possible Instrumentation object.
 byte[] String.getBytes(String enc)
          Converts the Unicode characters in this String to a byte array.
 boolean String.equalsIgnoreCase(String anotherString)
          Compares a String to this String, ignoring case.
 int String.compareTo(String anotherString)
          Compares this String and another String (case sensitive, lexicographically).
 int String.compareToIgnoreCase(String str)
          Compares this String and another String (case insensitive).
 boolean String.regionMatches(int toffset, String other, int ooffset, int len)
          Predicate which determines if this String matches another String starting at a specified offset for each String and continuing for a specified length.
 boolean String.regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
          Predicate which determines if this String matches another String starting at a specified offset for each String and continuing for a specified length, optionally ignoring case.
 boolean String.startsWith(String prefix, int toffset)
          Predicate which determines if this String contains the given prefix, beginning comparison at toffset.
 boolean String.startsWith(String prefix)
          Predicate which determines if this String starts with a given prefix.
 boolean String.endsWith(String suffix)
          Predicate which determines if this String ends with a given suffix.
 int String.indexOf(String str)
          Finds the first instance of a String in this String.
 int String.indexOf(String str, int fromIndex)
          Finds the first instance of a String in this String, starting at a given index.
 int String.lastIndexOf(String str)
          Finds the last instance of a String in this String.
 int String.lastIndexOf(String str, int fromIndex)
          Finds the last instance of a String in this String, starting at a given index.
 String String.concat(String str)
          Concatenates a String to this String.
 boolean String.matches(String regex)
          Test if this String matches a regular expression.
 String String.replaceFirst(String regex, String replacement)
          Replaces the first substring match of the regular expression with a given replacement.
 String String.replaceAll(String regex, String replacement)
          Replaces all matching substrings of the regular expression with a given replacement.
 String[] String.split(String regex, int limit)
          Split this string around the matches of a regular expression.
 String[] String.split(String regex)
          Split this string around the matches of a regular expression.
(package private) static char[] String.zeroBasedStringValue(String s)
          Returns the value array of the given string if it is zero based or a copy of it that is zero based (stripping offset and making length equal to count).
static Class Class.forName(String name)
          Use the classloader of the current class to load, link, and initialize a class.
static Class Class.forName(String name, boolean initialize, ClassLoader classloader)
          Use the specified classloader to load and link a class.
 java.lang.reflect.Field Class.getDeclaredField(String name)
          Get a field declared in this class, where name is its simple name.
 java.lang.reflect.Method Class.getDeclaredMethod(String methodName, Class[] types)
          Get a method declared in this class, where name is its simple name.
 java.lang.reflect.Field Class.getField(String fieldName)
          Get a public field declared or inherited in this class, where name is its simple name.
 java.lang.reflect.Method Class.getMethod(String methodName, Class[] types)
          Get a public method declared or inherited in this class, where name is its simple name.
private  java.lang.reflect.Method Class.internalGetMethod(String methodName, Class[] args)
          Like getMethod(String,Class[]) but without the security checks and returns null instead of throwing NoSuchMethodException.
private static java.lang.reflect.Method Class.matchMethod(java.lang.reflect.Method[] list, String name, Class[] args)
          Find the best matching method in list according to the definition of ``best matching'' used by getMethod()
 java.net.URL Class.getResource(String resourceName)
          Get a resource URL using this class's package using the getClassLoader().getResource() method.
 java.io.InputStream Class.getResourceAsStream(String resourceName)
          Get a resource using this class's package using the getClassLoader().getResourceAsStream() method.
private  String Class.resourcePath(String resourceName)
           
private  java.lang.reflect.Field Class.internalGetField(String name)
          Like getField(String) but without the security checks and returns null instead of throwing NoSuchFieldException.
private static String Class.getPackagePortion(String name)
          Strip the last portion of the name (after the last dot).
 Class ClassLoader.loadClass(String name)
          Load a class using this ClassLoader or its parent, without resolving it.
protected  Class ClassLoader.loadClass(String name, boolean resolve)
          Load a class using this ClassLoader or its parent, possibly resolving it as well using resolveClass().
protected  Class ClassLoader.findClass(String name)
          Called for every class name that is needed but has not yet been defined by this classloader or one of its parents.
protected  Class ClassLoader.defineClass(String name, byte[] data, int offset, int len)
          Helper to define a class using a string of bytes without a ProtectionDomain.
protected  Class ClassLoader.defineClass(String name, byte[] data, int offset, int len, java.security.ProtectionDomain domain)
          Helper to define a class using a string of bytes.
protected  Class ClassLoader.defineClass(String name, java.nio.ByteBuffer buf, java.security.ProtectionDomain domain)
          Helper to define a class using the contents of a byte buffer.
protected  Class ClassLoader.findSystemClass(String name)
          Helper to find a Class using the system classloader, possibly loading it.
protected  Class ClassLoader.findLoadedClass(String name)
          Helper to find an already-loaded class in this ClassLoader.
 java.net.URL ClassLoader.getResource(String name)
          Get the URL to a resource using this classloader or one of its parents.
 java.util.Enumeration ClassLoader.getResources(String name)
          Returns an Enumeration of all resources with a given name that can be found by this classloader and its parents.
protected  java.util.Enumeration ClassLoader.findResources(String name)
          Called whenever all locations of a named resource are needed.
protected  java.net.URL ClassLoader.findResource(String name)
          Called whenever a resource is needed that could not be provided by one of the parents of this classloader.
static java.net.URL ClassLoader.getSystemResource(String name)
          Get the URL to a resource using the system classloader.
static java.util.Enumeration ClassLoader.getSystemResources(String name)
          Get an Enumeration of URLs to resources with a given name using the the system classloader.
 java.io.InputStream ClassLoader.getResourceAsStream(String name)
          Get a resource as stream using this classloader or one of its parents.
static java.io.InputStream ClassLoader.getSystemResourceAsStream(String name)
          Get a resource using the system classloader.
protected  Package ClassLoader.definePackage(String name, String specTitle, String specVendor, String specVersion, String implTitle, String implVendor, String implVersion, java.net.URL sealed)
          Defines a new package and creates a Package object.
protected  Package ClassLoader.getPackage(String name)
          Returns the Package object for the requested package name.
protected  String ClassLoader.findLibrary(String name)
          Called by Runtime.loadLibrary() to get an absolute path to a (system specific) library that was requested by a class loaded by this classloader.
 void ClassLoader.setPackageAssertionStatus(String name, boolean enabled)
          Set the default assertion status for packages, used unless overridden by a class request.
 void ClassLoader.setClassAssertionStatus(String name, boolean enabled)
          Set the default assertion status for a class.
private static void ClassLoader.addFileURL(java.util.ArrayList list, String file)
           
static String System.getProperty(String key)
          Get a single system property by name.
static String System.getProperty(String key, String def)
          Get a single system property by name.
static String System.setProperty(String key, String value)
          Set a single system property by name.
static String System.clearProperty(String key)
          Remove a single system property by name.
static String System.getenv(String name)
          Gets the value of an environment variable.
static void System.load(String filename)
          Load a code file using its explicit system-dependent filename.
static void System.loadLibrary(String libname)
          Load a library using its explicit system-dependent filename.
static String System.mapLibraryName(String libname)
          Convert a library name to its platform-specific variant.
private static void Throwable.stackTraceStringBuffer(StringBuffer sb, String name, StackTraceElement[] stack, int equal)
           
 void Thread.setName(String name)
          Set this Thread's name.
private  void ThreadGroup.list(String indentation)
          Implements list.
 StringBuffer StringBuffer.append(String str)
          Append the String to this StringBuffer.
 StringBuffer StringBuffer.replace(int start, int end, String str)
          Replace characters between index start (inclusive) and end (exclusive) with str.
 StringBuffer StringBuffer.insert(int offset, String str)
          Insert the String argument into this StringBuffer.
 int StringBuffer.indexOf(String str)
          Finds the first instance of a substring in this StringBuffer.
 int StringBuffer.indexOf(String str, int fromIndex)
          Finds the first instance of a String in this StringBuffer, starting at a given index.
 int StringBuffer.lastIndexOf(String str)
          Finds the last instance of a substring in this StringBuffer.
 int StringBuffer.lastIndexOf(String str, int fromIndex)
          Finds the last instance of a String in this StringBuffer, starting at a given index.
private  boolean StringBuffer.regionMatches(int toffset, String other)
          Predicate which determines if a substring of this matches another String starting at a specified offset for each String and continuing for a specified length.
static Boolean Boolean.valueOf(String s)
          Returns the Boolean TRUE if and only if the given String is equal, ignoring case, to the the String "true", otherwise it will return the Boolean FALSE.
static boolean Boolean.getBoolean(