|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use String | |
| java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.color | Provides classes for color spaces. |
| java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
| java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI. |
| java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
| java.awt.font | Provides classes and interface relating to fonts. |
| java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry. |
| java.awt.im.spi | Provides interfaces that enable the development of input methods that can be used with any Java runtime environment. |
| java.awt.image | Provides classes for creating and modifying images. |
| java.awt.image.renderable | Provides classes and interfaces for producing rendering-independent images. |
| java.awt.print | Provides classes and interfaces for a general printing API. |
| java.beans | Contains classes related to Java Beans development. |
| java.beans.beancontext | Provides classes and interfaces relating to bean context. |
| java.io | Provides for system input and output through data streams, serialization and the file system. |
| java.lang | Provides classes that are fundamental to the design of the Java programming language. |
| java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects. |
| java.math | Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). |
| java.net | Provides the classes for implementing networking applications. |
| java.rmi | Provides the RMI package. |
| java.rmi.activation | Provides support for RMI Object Activation. |
| java.rmi.dgc | Provides classes and interface for RMI distributed garbage-collection (DGC). |
| java.rmi.registry | Provides a class and two interfaces for the RMI registry. |
| java.rmi.server | Provides classes and interfaces for supporting the server side of RMI. |
| java.security | Provides the classes and interfaces for the security framework. |
| java.security.acl | The classes and interfaces in this package have been superseded by classes in the java.security package. |
| java.security.cert | Provides classes and interfaces for parsing and managing certificates. |
| java.security.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications. |
| java.sql | Provides the API for accessing and processing data in a data source using the JavaTM programming language. |
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. |
| java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
| java.util.jar | Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. |
| java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats. |
| javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. |
| javax.naming | Provides the classes and interfaces for accessing naming services. |
| javax.naming.directory | Extends the javax.naming package to provide functionality for accessing directory services. |
| javax.naming.event | Provides support for event notification when accessing naming and directory services. |
| javax.naming.ldap | Provides support for LDAPv3 extended operations and controls. |
| javax.naming.spi | Provides the means for dynamically plugging in support for accessing naming and directory services through the javax.naming and related packages. |
| javax.rmi.CORBA | Contains portability APIs for RMI-IIOP. |
| javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data. |
| javax.sound.sampled | Provides interfaces and classes for capture, processing, and playback of sampled audio data. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
| javax.swing.colorchooser | Contains classes and interfaces used by the JColorChooser component. |
| javax.swing.event | Provides for events fired by Swing components. |
| javax.swing.filechooser | Contains classes and interfaces used by the JFileChooser component. |
| javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look-and-feel. |
| javax.swing.plaf.metal | Provides user interface objects built according to the ``metal'' look-and-feel. |
| javax.swing.plaf.multi | The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. |
| javax.swing.table | Provides classes and interfaces for dealing with javax.swing.JTable. |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| javax.swing.text.html.parser | Provides the default HTML parser, along with support classes. |
| javax.swing.text.rtf | Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. |
| javax.swing.tree | Provides classes and interfaces for dealing with javax.swing.JTree. |
| javax.swing.undo | Provides support for undo/redo capabilities in an application such as a text editor. |
| javax.transaction | Contains three exceptions thrown by the ORB machinery during unmarshalling. |
| org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class ORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB). |
| org.omg.CORBA_2_3 | The CORBA_2_3 package defines additions to existing CORBA interfaces in the Java 2 Standard Edition. These changes occurred in recent revisions to the CORBA API defined by the OMG. The new methods were added to interfaces derived from the corresponding interfaces in the CORBA package. This provides backward compatibility and avoids breaking the JCK tests. |
| org.omg.CORBA_2_3.portable | Provides methods for the input and output of value types, and contains
other updates to the org/omg/CORBA/portable package. |
| org.omg.CORBA.DynAnyPackage | Provides the exceptions used with the DynAny interface
(InvalidValue,
Invalid, InvalidSeq, and
TypeMismatch). |
| org.omg.CORBA.ORBPackage | Provides the exception InvalidName, which is thrown
by the method ORB.resolve_initial_references
and the exception InconsistentTypeCode, which is thrown
by the Dynamic Any creation methods in the ORB class. |
| org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB. |
| org.omg.CORBA.TypeCodePackage | Provides the user-defined exceptions BadKind
and Bounds, which are thrown by methods in
in the class TypeCode. |
| org.omg.CosNaming | Provides the naming service for Java IDL. |
| org.omg.CosNaming.NamingContextPackage | Provides the exceptions used in the package org.omg.CosNaming
(AlreadyBound, CannotProceed,
InvalidName, NotEmpty, and
NotFound)
and also the Helper and Holder classes for those
exceptions. |
| org.omg.stub.java.rmi | Contains RMI-IIOP Stubs for the Remote types that occur in the java.rmi package. |
| Uses of String in java.applet |
| Methods in java.applet that return String | |
String |
Applet.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
String |
Applet.getAppletInfo()
Returns information about this applet. |
String[][] |
Applet.getParameterInfo()
Returns information about the parameters than are understood by this applet. |
String |
AppletStub.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
| Methods in java.applet with parameters of type String | |
Applet |
AppletContext.getApplet(String name)
Finds and returns the applet in the document represented by this applet context with the given name. |
void |
AppletContext.showDocument(URL url,
String target)
Requests that the browser or applet viewer show the Web page indicated by the url argument. |
void |
AppletContext.showStatus(String status)
Requests that the argument string be displayed in the "status window". |
String |
Applet.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
void |
Applet.showStatus(String msg)
Requests that the argument string be displayed in the "status window". |
Image |
Applet.getImage(URL url,
String name)
Returns an Image object that can then be painted on
the screen. |
AudioClip |
Applet.getAudioClip(URL url,
String name)
Returns the AudioClip object specified by the
URL and name arguments. |
void |
Applet.play(URL url,
String name)
Plays the audio clip given the URL and a specifier that is relative to it. |
String |
AppletStub.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
| Uses of String in java.awt |
| Fields in java.awt declared as String | |
static String |
BorderLayout.NORTH
The north layout constraint (top of container). |
static String |
BorderLayout.SOUTH
The south layout constraint (bottom of container). |
static String |
BorderLayout.EAST
The east layout constraint (right side of container). |
static String |
BorderLayout.WEST
The west layout constraint (left side of container). |
static String |
BorderLayout.CENTER
The center layout constraint (middle of container). |
static String |
BorderLayout.BEFORE_FIRST_LINE
The component comes before the first line of the layout's content. |
static String |
BorderLayout.AFTER_LAST_LINE
The component comes after the last line of the layout's content. |
static String |
BorderLayout.BEFORE_LINE_BEGINS
The component goes at the beginning of the line direction for the layout. |
static String |
BorderLayout.AFTER_LINE_ENDS
The component goes at the end of the line direction for the layout. |
protected String |
Font.name
The logical name of this Font, as passed to the
constructor. |
protected String |
Cursor.name
The user-visible name of the cursor. |
| Methods in java.awt that return String | |
String |
Component.getName()
Gets the name of the component. |
protected String |
Component.paramString()
Returns a string representing the state of this component. |
String |
Component.toString()
Returns a string representation of this component and its values. |
protected String |
Container.paramString()
Returns the parameter string representing the state of this container. |
String |
Component.AccessibleAWTComponent.getAccessibleName()
Get the accessible name of this object. |
String |
Component.AccessibleAWTComponent.getAccessibleDescription()
Get the accessible description of this object. |
protected String |
Event.paramString()
Returns the parameter string representing this event. |
String |
Event.toString()
Returns a representation of this event's values as a string. |
String |
CardLayout.toString()
Returns a string representation of the state of this card layout. |
abstract String[] |
GraphicsEnvironment.getAvailableFontFamilyNames()
Returns an array containing the names of all font families available in this GraphicsEnvironment. |
abstract String[] |
GraphicsEnvironment.getAvailableFontFamilyNames(Locale l)
Returns an array containing the localized names of all font families available in this GraphicsEnvironment. |
String |
ScrollPane.paramString()
|
protected String |
Scrollbar.paramString()
Returns the parameter string representing the state of this scroll bar. |
String |
MenuComponent.getName()
Gets the name of the menu component. |
protected String |
MenuComponent.paramString()
Returns the parameter string representing the state of this menu component. |
String |
MenuComponent.toString()
Returns a representation of this menu component as a string. |
String |
MenuItem.getLabel()
Gets the label for this menu item. |
String |
MenuItem.getActionCommand()
Gets the command name of the action event that is fired by this menu item. |
String |
MenuItem.paramString()
Returns the parameter string representing the state of this menu item. |
String |
Menu.paramString()
Gets the parameter string representing the state of this menu. |
String |
MenuComponent.AccessibleAWTMenuComponent.getAccessibleName()
Get the accessible name of this object. |
String |
MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription()
Get the accessible description of this object. |
String |
MenuItem.AccessibleAWTMenuItem.getAccessibleName()
Get the accessible name of this object. |
String |
MenuItem.AccessibleAWTMenuItem.getAccessibleActionDescription(int i)
Return a description of the specified action of the object. |
String |
Checkbox.getLabel()
Gets the label of this check box. |
protected String |
Checkbox.paramString()
Returns the parameter string representing the state of this check box. |
String |
Checkbox.AccessibleAWTCheckbox.getAccessibleActionDescription(int i)
Return a description of the specified action of the object. |
String |
FontMetrics.toString()
Returns a representation of this FontMetrics
object's values as a String. |
String |
Graphics.toString()
Returns a String object representing this
Graphics object's value. |
String |
MenuShortcut.toString()
Returns an internationalized description of the MenuShortcut. |
protected String |
MenuShortcut.paramString()
|
abstract String |
GraphicsDevice.getIDstring()
Returns the identification string associated with this GraphicsDevice. |
String |
GridLayout.toString()
Returns the string representation of this grid layout's values. |
String |
BorderLayout.toString()
Returns a string representation of the state of this border layout. |
String |
Insets.toString()
Returns a string representation of this Insets object. |
String |
Font.getFamily()
Returns the family name of this Font. |
String |
Font.getFamily(Locale l)
Returns the family name of this Font, localized for
the specified locale. |
String |
Font.getPSName()
Returns the postscript name of this Font. |
String |
Font.getName()
Returns the logical name of this Font. |
String |
Font.getFontName()
Returns the font face name of this Font. |
String |
Font.getFontName(Locale l)
Returns the font face name of the Font, localized
for the specified locale. |
String |
Font.toString()
Converts this Font object to a String
representation. |
String |
Window.getWarningString()
Gets the warning string that is displayed with this window. |
String |
Dialog.getTitle()
Gets the title of the dialog. |
protected String |
Dialog.paramString()
Returns the parameter string representing the state of this dialog window. |
String |
FileDialog.getDirectory()
Gets the directory of this file dialog. |
String |
FileDialog.getFile()
Gets the selected file of this file dialog. |
protected String |
FileDialog.paramString()
Returns the parameter string representing the state of this file dialog window. |
String |
RenderingHints.toString()
Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object. |
abstract String[] |
Toolkit.getFontList()
Deprecated. see GraphicsEnvironment.getAvailableFontFamilyNames() |
static String |
Toolkit.getProperty(String key,
String defaultValue)
Gets a property with the specified key and default. |
String |
Point.toString()
Returns a string representation of this point and its location in the (x, y) coordinate space. |
String |
Color.toString()
Returns a string representation of this Color. |
String |
List.getItem(int index)
Gets the item associated with the specified index. |
String[] |
List.getItems()
Gets the items in the list. |
String |
List.getSelectedItem()
Get the selected item on this scrolling list. |
String[] |
List.getSelectedItems()
Get the selected items on this scrolling list. |
protected String |
List.paramString()
Returns the parameter string representing the state of this scrolling list. |
String |
TextComponent.getText()
Gets the text that is presented by this text component. |
String |
TextComponent.getSelectedText()
Gets the selected text from the text that is presented by this text component. |
protected String |
TextComponent.paramString()
Returns the parameter string representing the state of this text component. |
String |
TextComponent.AccessibleAWTTextComponent.getSelectedText()
Returns the portion of the text that is selected. |
String |
TextComponent.AccessibleAWTTextComponent.getAtIndex(int part,
int index)
Returns the String at a given index. |
String |
TextComponent.AccessibleAWTTextComponent.getAfterIndex(int part,
int index)
Returns the String after a given index. |
String |
TextComponent.AccessibleAWTTextComponent.getBeforeIndex(int part,
int index)
Returns the String before a given index. |
String |
CheckboxGroup.toString()
Returns a string representation of this check box group, including the value of its current selection. |
String |
Cursor.getName()
Returns the name of this cursor. |
String |
Cursor.toString()
Returns a string representation of this cursor. |
String |
Dimension.toString()
Returns a string representation of the values of this Dimension object's height and
width fields. |
String |
Choice.getItem(int index)
Gets the string at the specified index in this Choice menu. |
String |
Choice.getSelectedItem()
Gets a representation of the current choice as a string. |
protected String |
Choice.paramString()
Returns the parameter string representing the state of this choice menu. |
String |
Choice.AccessibleAWTChoice.getAccessibleActionDescription(int i)
Returns a description of the specified action of the object. |
String |
GridBagLayout.toString()
Returns a string representation of this grid bag layout's values. |
String |
Frame.getTitle()
Gets the title of the frame. |
protected String |
Frame.paramString()
Returns the parameter String of this Frame. |
String |
PageAttributes.toString()
Returns a string representation of this PageAttributes. |
String |
JobAttributes.getFileName()
Specifies the file name for the output file for jobs using these attributes. |
String |
JobAttributes.getPrinter()
Returns the destination printer for jobs using these attributes. |
String |
JobAttributes.toString()
Returns a string representation of this JobAttributes. |
String |
AWTEvent.toString()
|
String |
AWTEvent.paramString()
Returns a string representing the state of this event. |
String |
Label.getText()
Gets the text of this label. |
protected String |
Label.paramString()
Returns the parameter string representing the state of this label. |
String |
Label.AccessibleAWTLabel.getAccessibleName()
Get the accessible name of this object. |
protected String |
TextField.paramString()
Returns the parameter string representing the state of this text field. |
String |
Rectangle.toString()
Returns a String representing this
Rectangle and its values. |
String |
FlowLayout.toString()
Returns a string representation of this FlowLayout
object and its values. |
String |
SystemColor.toString()
Returns the String representation of this Color's values. |
String |
Button.getLabel()
Gets the label of this button. |
String |
Button.getActionCommand()
Returns the command name of the action event fired by this button. |
protected String |
Button.paramString()
Returns the parameter string representing the state of this button. |
String |
Button.AccessibleAWTButton.getAccessibleName()
Get the accessible name of this object. |
String |
Button.AccessibleAWTButton.getAccessibleActionDescription(int i)
Return a description of the specified action of the object. |
String |
CheckboxMenuItem.paramString()
Returns the parameter string representing the state of this check box menu item. |
String |
CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.getAccessibleActionDescription(int i)
Return a description of the specified action of the object. |
protected String |
TextArea.paramString()
Returns the parameter string representing the state of this text area. |
String |
Robot.toString()
Returns a string representation of this Robot. |
| Methods in java.awt with parameters of type String | |
void |
Component.setName(String name)
Sets the name of the component to the specified string. |
void |
Component.addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
void |
Component.removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
protected void |
Component.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Support for reporting bound property changes. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
void |
CardLayout.show(Container parent,
String name)
Flips to the component that was added to this layout with the specified name, using addLayoutComponent. |
void |
MenuComponent.setName(String name)
Sets the name of the component to the specified string. |
void |
MenuItem.setLabel(String label)
Sets the label for this menu item to the specified label. |
void |
MenuItem.setActionCommand(String command)
Sets the command name of the action event that is fired by this menu item. |
void |
Menu.add(String label)
Adds an item with the specified label to this menu. |
void |
Menu.insert(String label,
int index)
Inserts a menu item with the specified label into this menu at the specified position. |
void |
Checkbox.setLabel(String label)
Sets this check box's label to be the string argument. |
int |
FontMetrics.stringWidth(String str)
Returns the total advance width for showing the specified String in this Font. |
LineMetrics |
FontMetrics.getLineMetrics(String str,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
LineMetrics |
FontMetrics.getLineMetrics(String str,
int beginIndex,
int limit,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
Rectangle2D |
FontMetrics.getStringBounds(String str,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
Rectangle2D |
FontMetrics.getStringBounds(String str,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
abstract void |
Graphics.drawString(String str,
int x,
int y)
Draws the text given by the specified string, using this graphics context's current font and color. |
abstract void |
Graphics2D.drawString(String str,
int x,
int y)
Renders the text of the specified String, using the
current Font and Paint attributes in the
Graphics2D context. |
abstract void |
Graphics2D.drawString(String s,
float x,
float y)
Renders the text specified by the specified String,
using the current Font and Paint attributes
in the Graphics2D context. |
protected void |
AWTEventMulticaster.saveInternal(ObjectOutputStream s,
String k)
|
protected static void |
AWTEventMulticaster.save(ObjectOutputStream s,
String k,
EventListener l)
|
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
static Font |
Font.getFont(String nm)
Returns a Font object from the system properties list. |
static Font |
Font.decode(String str)
Returns the Font that the
str argument describes. |
static Font |
Font.getFont(String nm,
Font font)
Gets the specified Font from the system properties
list. |
int |
Font.canDisplayUpTo(String str)
Indicates whether or not this Font can display a
specified String. |
LineMetrics |
Font.getLineMetrics(String str,
FontRenderContext frc)
Returns a LineMetrics object created with the specified
String and FontRenderContext. |
LineMetrics |
Font.getLineMetrics(String str,
int beginIndex,
int limit,
FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments. |
Rectangle2D |
Font.getStringBounds(String str,
FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext. |
Rectangle2D |
Font.getStringBounds(String str,
int beginIndex,
int limit,
FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext. |
GlyphVector |
Font.createGlyphVector(FontRenderContext frc,
String str)
Returns a new GlyphVector object created with the
specified String and the specified
FontRenderContext. |
void |
Window.applyResourceBundle(String rbName)
Load the ResourceBundle with the given name using the default locale and apply its settings to this window. |
void |
Dialog.setTitle(String title)
Sets the title of the Dialog. |
void |
FileDialog.setDirectory(String dir)
Sets the directory of this file dialog window to be the specified directory. |
void |
FileDialog.setFile(String file)
Sets the selected file for this file dialog window to be the specified file. |
void |
LayoutManager.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
protected abstract java.awt.peer.FontPeer |
Toolkit.getFontPeer(String name,
int style)
Deprecated. see java.awt.GraphicsEnvironment#getAllFonts |
abstract Image |
Toolkit.getImage(String filename)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG. |
abstract Image |
Toolkit.createImage(String filename)
Returns an image which gets pixel data from the specified file. |
abstract PrintJob |
Toolkit.getPrintJob(Frame frame,
String jobtitle,
Properties props)
Gets a PrintJob object which is the result of initiating
a print operation on the toolkit's platform. |
PrintJob |
Toolkit.getPrintJob(Frame frame,
String jobtitle,
JobAttributes jobAttributes,
PageAttributes pageAttributes)
Gets a PrintJob object which is the result of initiating
a print operation on the toolkit's platform. |
Cursor |
Toolkit.createCustomCursor(Image cursor,
Point hotSpot,
String name)
Creates a new custom cursor object. |
static String |
Toolkit.getProperty(String key,
String defaultValue)
Gets a property with the specified key and default. |
Object |
Toolkit.getDesktopProperty(String propertyName)
obtain a value for the specified desktop property. |
protected void |
Toolkit.setDesktopProperty(String name,
Object newValue)
set the named desktop property to the specified value and fire a property change event to notify any listeners that the value has changed |
protected Object |
Toolkit.lazilyLoadDesktopProperty(String name)
an opportunity to lazily evaluate desktop property values. |
void |
Toolkit.addPropertyChangeListener(String name,
PropertyChangeListener pcl)
add the specified property change listener for the named desktop property If pcl is null, no exception is thrown and no action is performed. |
void |
Toolkit.removePropertyChangeListener(String name,
PropertyChangeListener pcl)
remove the specified property change listener for the named desktop property If pcl is null, no exception is thrown and no action is performed. |
static Color |
Color.decode(String nm)
Converts a String to an integer and returns the
specified opaque Color. |
static Color |
Color.getColor(String nm)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
Color v)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
int v)
Finds a color in the system properties. |
void |
List.add(String item)
Adds the specified item to the end of scrolling list. |
void |
List.addItem(String item)
Deprecated. replaced by add(String). |
void |
List.add(String item,
int index)
Adds the specified item to the the scrolling list at the position indicated by the index. |
void |
List.addItem(String item,
int index)
Deprecated. replaced by add(String, int). |
void |
List.replaceItem(String newValue,
int index)
Replaces the item at the specified index in the scrolling list with the new string. |
void |
List.remove(String item)
Removes the first occurrence of an item from the list. |
void |
TextComponent.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
static Cursor |
Cursor.getSystemCustomCursor(String name)
|
void |
Choice.add(String item)
Adds an item to this Choice menu. |
void |
Choice.addItem(String item)
Adds an item to this Choice. |
void |
Choice.insert(String item,
int index)
Inserts the item into this choice at the specified position. |
void |
Choice.remove(String item)
Remove the first occurrence of item
from the Choice menu. |
void |
Choice.select(String str)
Sets the selected item in this Choice menu
to be the item whose name is equal to the specified string. |
void |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
Frame.setTitle(String title)
Sets the title for this frame to the specified string. |
void |
JobAttributes.setFileName(String fileName)
Specifies the file name for the output file for jobs using these attributes. |
void |
JobAttributes.setPrinter(String printer)
Specifies the destination printer for jobs using these attributes. |
void |
Label.setText(String text)
Sets the text for this label to the specified text. |
void |
TextField.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
Button.setLabel(String label)
Sets the button's label to be the specified string. |
void |
Button.setActionCommand(String command)
Sets the command name for the action event fired by this button. |
void |
TextArea.insert(String str,
int pos)
Inserts the specified text at the specified position in this text area. |
void |
TextArea.insertText(String str,
int pos)
Deprecated. As of JDK version 1.1, replaced by insert(String, int). |
void |
TextArea.append(String str)
Appends the given text to the text area's current text. |
void |
TextArea.appendText(String str)
Deprecated. As of JDK version 1.1, replaced by append(String). |
void |
TextArea.replaceRange(String str,
int start,
int end)
Replaces text between the indicated start and end positions with the specified replacement text. |
void |
TextArea.replaceText(String str,
int start,
int end)
Deprecated. As of JDK version 1.1, replaced by replaceRange(String, int, int). |
abstract Object |
Image.getProperty(String name,
ImageObserver observer)
Gets a property of this image by name. |
| Constructors in java.awt with parameters of type String | |
AWTPermission(String name)
Creates a new AWTPermission with the specified name. |
|
AWTPermission(String name,
String actions)
Creates a new AWTPermission object with the specified name. |
|
MenuItem(String label)
Constructs a new MenuItem with the specified label and no keyboard shortcut. |
|
MenuItem(String label,
MenuShortcut s)
Create a menu item with an associated keyboard shortcut. |
|
Menu(String label)
Constructs a new menu with the specified label. |
|
Menu(String label,
boolean tearOff)
Constructs a new menu with the specified label, indicating whether the menu can be torn off. |
|
Checkbox(String label)
Creates a check box with the specified label. |
|
Checkbox(String label,
boolean state)
Creates a check box with the specified label and sets the specified state. |
|
Checkbox(String label,
boolean state,
CheckboxGroup group)
Creates a check box with the specified label, in the specified check box group, and set to the specified state. |
|
Checkbox(String label,
CheckboxGroup group,
boolean state)
Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group. |
|
FontFormatException(String reason)
Report a FontFormatException for the reason specified. |
|
IllegalComponentStateException(String s)
Constructs an IllegalComponentStateException with the specified detail message. |
|
Font(String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
|
Dialog(Frame owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner frame and title. |
|
Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner frame, title, and modality. |
|
Dialog(Dialog owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner dialog and title. |
|
Dialog(Dialog owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner dialog, title, and modality. |
|
FileDialog(Frame parent,
String title)
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog(Frame parent,
String title,
int mode)
Creates a file dialog window with the specified title for loading or saving a file. |
|
AWTError(String msg)
Constructs an instance of AWTError with the specified
detail message. |
|
PopupMenu(String label)
Creates a new popup menu with the specified name. |
|
Cursor(String name)
Creates a new custom cursor object with the specified name. |
|
Frame(String title)
Constructs a new, initially invisible Frame object
with the specified title. |
|
Frame(String title,
GraphicsConfiguration gc)
Constructs a new, initially invisible Frame object
with the specified title and a
GraphicsConfiguration. |
|
JobAttributes(int copies,
JobAttributes.DefaultSelectionType defaultSelection,
JobAttributes.DestinationType destination,
JobAttributes.DialogType dialog,
String fileName,
int maxPage,
int minPage,
JobAttributes.MultipleDocumentHandlingType multipleDocumentHandling,
int[][] pageRanges,
String printer,
JobAttributes.SidesType sides)
Constructs a JobAttributes instance with the specified values for every attribute. |
|
AWTException(String msg)
Constructs an instance of AWTException with the
specified detail message. |
|
Label(String text)
Constructs a new label with the specified string of text, left justified. |
|
Label(String text,
int alignment)
Constructs a new label that presents the specified string of text with the specified alignment. |
|
TextField(String text)
Constructs a new text field initialized with the specified text. |
|
TextField(String text,
int columns)
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns. |
|
Button(String label)
Constructs a Button with the specified label. |
|
CheckboxMenuItem(String label)
Create a check box menu item with the specified label. |
|
CheckboxMenuItem(String label,
boolean state)
Create a check box menu item with the specified label and state. |
|
TextArea(String text)
Constructs a new text area with the specified text. |
|
TextArea(String text,
int rows,
int columns)
Constructs a new text area with the specified text, and with the specified number of rows and columns. |
|
TextArea(String text,
int rows,
int columns,
int scrollbars)
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified. |
|
| Uses of String in java.awt.color |
| Methods in java.awt.color that return String | |
String |
ColorSpace.getName(int idx)
Returns the name of the component given the component index |
| Methods in java.awt.color with parameters of type String | |
static ICC_Profile |
ICC_Profile.getInstance(String fileName)
Constructs an ICC_Profile corresponding to the data in a file. |
void |
ICC_Profile.write(String fileName)
Write this ICC_Profile to a file. |
| Constructors in java.awt.color with parameters of type String | |
CMMException(String s)
Constructs a CMMException with the specified detail message. |
|
ProfileDataException(String s)
Constructs a ProfileDataException with the specified detail message. |
|
| Uses of String in java.awt.datatransfer |
| Fields in java.awt.datatransfer declared as String | |
static String |
DataFlavor.javaSerializedObjectMimeType
a MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent. |
static String |
DataFlavor.javaJVMLocalObjectMimeType
to transfer a reference to an arbitrary Java object reference that has no associated MIME Content-type, across a Transferable interface WITHIN THE SAME JVM, a DataFlavor with this type/subtype is used, with a representationClass equal to the type of the class/interface being passed across the Transferble. |
static String |
DataFlavor.javaRemoteObjectMimeType
In order to pass a live link to a Remote object via a Drag and Drop ACTION_LINK operation a Mime Content Type of application/x-java-remote-object should be used, where the representation class of the DataFlavor represents the type of the Remote interface to be transferred. |
| Methods in java.awt.datatransfer that return String | |
String |
Clipboard.getName()
Returns the name of this clipboard object. |
static String |
SystemFlavorMap.encodeJavaMIMEType(String mimeType)
|
static String |
SystemFlavorMap.encodeDataFlavor(DataFlavor df)
|
static String |
SystemFlavorMap.decodeJavaMIMEType(String atom)
|
String |
DataFlavor.toString()
String representation of this DataFlavor
and its parameters. |
String |
DataFlavor.getMimeType()
Returns the MIME type string for this DataFlavor |
String |
DataFlavor.getHumanPresentableName()
Returns the human presentable name for the data foramt that this DataFlavor represents. |
String |
DataFlavor.getPrimaryType()
|
String |
DataFlavor.getSubType()
|
String |
DataFlavor.getParameter(String paramName)
|
String |
DataFlavor.getDefaultRepresentationClassAsString()
|
protected String |
DataFlavor.normalizeMimeTypeParameter(String parameterName,
String parameterValue)
Deprecated. |
protected String |
DataFlavor.normalizeMimeType(String mimeType)
Deprecated. |
| Methods in java.awt.datatransfer with parameters of type String | |
Map |
SystemFlavorMap.getFlavorsForNatives(String[] natives)
map natives to corresponding flavors |
static String |
SystemFlavorMap.encodeJavaMIMEType(String mimeType)
|
static boolean |
SystemFlavorMap.isJavaMIMEType(String atom)
|
static String |
SystemFlavorMap.decodeJavaMIMEType(String atom)
|
static DataFlavor |
SystemFlavorMap.decodeDataFlavor(String atom)
|
protected static Class |
DataFlavor.tryToLoadClass(String className,
ClassLoader fallback)
tried to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified |
String |
DataFlavor.getParameter(String paramName)
|
void |
DataFlavor.setHumanPresentableName(String humanPresentableName)
Sets the human presentable name for the data format that this DataFlavor represents. |
boolean |
DataFlavor.equals(String s)
Deprecated. As inconsistent with hashCode() contract,
use isMimeTypeEqual(String) instead. |
boolean |
DataFlavor.isMimeTypeEqual(String mimeType)
Returns whether the string representation of the MIME type passed in is equivalent to the MIME type of this DataFlavor. |
protected String |
DataFlavor.normalizeMimeTypeParameter(String parameterName,
String parameterValue)
Deprecated. |
protected String |
DataFlavor.normalizeMimeType(String mimeType)
Deprecated. |
Map |
FlavorMap.getFlavorsForNatives(String[] natives)
map natives to corresponding flavors |
| Constructors in java.awt.datatransfer with parameters of type String | |
StringSelection(String data)
Creates a Transferable capable of transferring the specified String. |
|
Clipboard(String name)
Creates a clipboard object. |
|
DataFlavor(Class representationClass,
String humanPresentableName)
Construct a DataFlavor that represents a Java class |
|
DataFlavor(String mimeType,
String humanPresentableName)
Construct a DataFlavor that represents a MimeType |
|
DataFlavor(String mimeType,
String humanPresentableName,
ClassLoader classLoader)
Construct a DataFlavor that represents a MimeType |
|
DataFlavor(String mimeType)
Construct a DataFlavor from a Mime Type string. |
|
MimeTypeParseException(String s)
Constructs a MimeTypeParseException with the specified detail message. |
|
| Uses of String in java.awt.dnd |
| Constructors in java.awt.dnd with parameters of type String | |
InvalidDnDOperationException(String msg)
Create an Exception with its own descriptive message |
|
| Uses of String in java.awt.event |
| Methods in java.awt.event that return String | |
String |
InputMethodEvent.paramString()
Returns a parameter string identifying this event. |
String |
HierarchyEvent.paramString()
Returns a parameter string identifying this event. |
String |
ComponentEvent.paramString()
Returns a parameter string identifying this event. |
String |
WindowEvent.paramString()
Returns a parameter string identifying this event. |
String |
ContainerEvent.paramString()
Returns a parameter string identifying this event. |
String |
ActionEvent.getActionCommand()
Returns the command string associated with this action. |
String |
ActionEvent.paramString()
Returns a parameter string identifying this action event. |
String |
MouseEvent.paramString()
Returns a parameter string identifying this event. |
String |
TextEvent.paramString()
Returns a parameter string identifying this text event. |
String |
PaintEvent.paramString()
|
String |
AdjustmentEvent.paramString()
|
String |
ItemEvent.paramString()
Returns a parameter string identifying this item event. |
String |
FocusEvent.paramString()
Returns a parameter string identifying this event. |
String |
InvocationEvent.paramString()
Returns a parameter string identifying this event. |
static String |
KeyEvent.getKeyText(int keyCode)
Returns a String describing the keyCode, such as "HOME", "F1" or "A". |
static String |
KeyEvent.getKeyModifiersText(int modifiers)
Returns a String describing the modifier key(s), such as "Shift", or "Ctrl+Shift". |
String |
KeyEvent.paramString()
Returns a parameter string identifying this event. |
| Constructors in java.awt.event with parameters of type String | |
ActionEvent(Object source,
int id,
String command)
Constructs an ActionEvent object. |
|
ActionEvent(Object source,
int id,
String command,
int modifiers)
Constructs an ActionEvent object with modifier keys. |
|
| Uses of String in java.awt.font |
| Methods in java.awt.font that return String | |
String |
TextLayout.toString()
Returns debugging information for this TextLayout. |
String[] |
MultipleMaster.getDesignAxisNames()
Returns the name for each design axis. |
String |
TextHitInfo.toString()
Returns a String representing the hit for debugging
use only. |
| Methods in java.awt.font with parameters of type String | |
byte[] |
OpenType.getFontTable(String strSfntTag)
Returns the table as an array of bytes for a specified tag. |
byte[] |
OpenType.getFontTable(String strSfntTag,
int offset,
int count)
Returns a subset of the table as an array of bytes for a specified tag. |
int |
OpenType.getFontTableSize(String strSfntTag)
Returns the size of the table for a specified tag. |
| Constructors in java.awt.font with parameters of type String | |
TextLayout(String string,
Font font,
FontRenderContext frc)
Constructs a TextLayout from a String
and a Font. |
|
TextLayout(String string,
Map attributes,
FontRenderContext frc)
Constructs a TextLayout from a String
and an attribute set. |
|
TextAttribute(String name)
Constructs a TextAttribute with the specified name. |
|
| Uses of String in java.awt.geom |
| Methods in java.awt.geom that return String | |
String |
Rectangle2D.Float.toString()
Returns the String representation of this
Rectangle2D. |
String |
Rectangle2D.Double.toString()
Returns the String representation of this
Rectangle2D. |
String |
Point2D.Float.toString()
Returns a String that represents the value
of this Point2D. |
String |
Point2D.Double.toString()
Returns a String that represents the value
of this Point2D. |
String |
AffineTransform.toString()
Returns a String that represents the value of this
Object. |
| Constructors in java.awt.geom with parameters of type String | |
NoninvertibleTransformException(String s)
Constructs an instance of NoninvertibleTransformException
with the specified detail message. |
|
IllegalPathStateException(String s)
Constructs an IllegalPathStateException with the
specified detail message. |
|
| Uses of String in java.awt.im.spi |
| Methods in java.awt.im.spi that return String | |
String |
InputMethodDescriptor.getInputMethodDisplayName(Locale inputLocale,
Locale displayLanguage)
Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed. |
| Methods in java.awt.im.spi with parameters of type String | |
Window |
InputMethodContext.createInputMethodWindow(String title,
boolean attachToInputContext)
Creates a top-level window for use by the input method. |
| Uses of String in java.awt.image |
| Methods in java.awt.image that return String | |
String[] |
RenderedImage.getPropertyNames()
Returns an array of names recognized by getProperty(String)
or null, if no property names are recognized. |
String |
BufferedImage.toString()
Returns a String representation of this
BufferedImage object and its values. |
String[] |
BufferedImage.getPropertyNames()
Returns an array of names recognized by getProperty(String)
or null, if no property names are recognized. |
String |
ColorModel.toString()
Returns the String representation of the contents of
this ColorModelobject. |
String |
DirectColorModel.toString()
Returns a String that represents this
DirectColorModel. |
String |
IndexColorModel.toString()
Returns the String representation of the contents of
this ColorModelobject. |
| Methods in java.awt.image with parameters of type String | |
Object |
RenderedImage.getProperty(String name)
Gets a property from the property set of this image. |
Object |
BufferedImage.getProperty(String name,
ImageObserver observer)
Returns a property of the image by name. |
Object |
BufferedImage.getProperty(String name)
Returns a property of the image by name. |
| Constructors in java.awt.image with parameters of type String | |
RasterFormatException(String s)
Constructs a new RasterFormatException with the
specified message. |
|
ImagingOpException(String s)
Constructs an ImagingOpException object with the
specified message. |
|
| Uses of String in java.awt.image.renderable |
| Fields in java.awt.image.renderable declared as String | |
static String |
RenderableImage.HINTS_OBSERVED
String constant that can be used to identify a property on a RenderedImage obtained via the createRendering or createScaledRendering methods. |
| Methods in java.awt.image.renderable that return String | |
String[] |
ContextualRenderedImageFactory.getPropertyNames()
Returns a list of names recognized by getProperty. |
String[] |
RenderableImageOp.getPropertyNames()
Return a list of names recognized by getProperty. |
String[] |
RenderableImage.getPropertyNames()
Returns a list of names recognized by getProperty. |
| Methods in java.awt.image.renderable with parameters of type String | |
Object |
ContextualRenderedImageFactory.getProperty(ParameterBlock paramBlock,
String name)
Gets the appropriate instance of the property specified by the name parameter. |
Object |
RenderableImageOp.getProperty(String name)
Gets a property from the property set of this image. |
Object |
RenderableImage.getProperty(String name)
Gets a property from the property set of this image. |
| Uses of String in java.awt.print |
| Methods in java.awt.print that return String | |
abstract String |
PrinterJob.getUserName()
Gets the name of the printing user. |
abstract String |
PrinterJob.getJobName()
Gets the name of the document to be printed. |
| Methods in java.awt.print with parameters of type String | |
abstract void |
PrinterJob.setJobName(String jobName)
Sets the name of the document to be printed. |
| Constructors in java.awt.print with parameters of type String | |
PrinterException(String msg)
Constructs a new PrinterException object
with the specified detail message. |
|
PrinterAbortException(String msg)
Constructs a new PrinterAbortException with
the specified detail message. |
|
| Uses of String in java.beans |
| Fields in java.beans declared as String | |
static String |
DesignMode.PROPERTYNAME
The standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents. |
| Methods in java.beans that return String | |
String |
FeatureDescriptor.getName()
Gets the programmatic name of this feature. |
String |
FeatureDescriptor.getDisplayName()
Gets the localized display name of this feature. |
String |
FeatureDescriptor.getShortDescription()
Gets the short description of this feature. |
String |
PropertyEditor.getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
String |
PropertyEditor.getAsText()
Gets the property value as text. |
String[] |
PropertyEditor.getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. |
static String |
Introspector.decapitalize(String name)
Utility method to take a string and convert it to normal Java variable name capitalization. |
static String[] |
Introspector.getBeanInfoSearchPath()
Gets the list of package names that will be used for finding BeanInfo classes. |
static String[] |
PropertyEditorManager.getEditorSearchPath()
Gets the package names that will be searched for property editors. |
String |
PropertyEditorSupport.getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
String |
PropertyEditorSupport.getAsText()
Gets the property value as a string suitable for presentation to a human to edit. |
String[] |
PropertyEditorSupport.getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values. |
String |
PropertyChangeEvent.getPropertyName()
Gets the programmatic name of the property that was changed. |
| Methods in java.beans with parameters of type String | |
void |
FeatureDescriptor.setName(String name)
Sets the programmatic name of this feature. |
void |
FeatureDescriptor.setDisplayName(String displayName)
Sets the localized display name of this feature. |
void |
FeatureDescriptor.setShortDescription(String text)
You can associate a short descriptive string with a feature. |
void |
FeatureDescriptor.setValue(String attributeName,
Object value)
Associate a named attribute with this feature. |
Object |
FeatureDescriptor.getValue(String attributeName)
Retrieve a named attribute with this feature. |
void |
PropertyEditor.setAsText(String text)
Set the property value by parsing a given String. |
Image |
SimpleBeanInfo.loadImage(String resourceName)
This is a utility method to help in loading icon images. |
void |
PropertyChangeSupport.addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
void |
PropertyChangeSupport.removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Report a bound property update to any registered listeners. |
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
int oldValue,
int newValue)
Report an int bound property update to any registered listeners. |
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Report a boolean bound property update to any registered listeners. |
boolean |
PropertyChangeSupport.hasListeners(String propertyName)
Check if there are any listeners for a specific property. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
BeanContext beanContext)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
BeanContext beanContext,
AppletInitializer initializer)
Instantiate a bean. |
static String |
Introspector.decapitalize(String name)
Utility method to take a string and convert it to normal Java variable name capitalization. |
static void |
Introspector.setBeanInfoSearchPath(String[] path)
Change the list of package names that will be used for finding BeanInfo classes. |
static void |
PropertyEditorManager.setEditorSearchPath(String[] path)
Change the list of package names that will be used for finding property editors. |
void |
VetoableChangeSupport.addVetoableChangeListener(String propertyName,
VetoableChangeListener listener)
Add a VetoableChangeListener for a specific property. |
void |
VetoableChangeSupport.removeVetoableChangeListener(String propertyName,
VetoableChangeListener listener)
Remove a VetoableChangeListener for a specific property. |
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
Report a vetoable property update to any registered listeners. |
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
int oldValue,
int newValue)
Report a int vetoable property update to any registered listeners. |
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
boolean oldValue,
boolean newValue)
Report a boolean vetoable property update to any registered listeners. |
boolean |
VetoableChangeSupport.hasListeners(String propertyName)
Check if there are any listeners for a specific property. |
void |
PropertyEditorSupport.setAsText(String text)
Sets the property value by parsing a given String. |
| Constructors in java.beans with parameters of type String | |
PropertyDescriptor(String propertyName,
Class beanClass)
Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods. |
|
PropertyDescriptor(String propertyName,
Class beanClass,
String getterName,
String setterName)
This constructor takes the name of a simple property, and method names for reading and writing the property. |
|
PropertyDescriptor(String propertyName,
Method getter,
Method setter)
This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
|
IndexedPropertyDescriptor(String propertyName,
Class beanClass)
This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access. |
|
IndexedPropertyDescriptor(String propertyName,
Class beanClass,
String getterName,
String setterName,
String indexedGetterName,
String indexedSetterName)
This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed. |
|
IndexedPropertyDescriptor(String propertyName,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter)
This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
|
PropertyVetoException(String mess,
PropertyChangeEvent evt)
Constructs a PropertyVetoException with a
detailed message. |
|
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String listenerMethodName)
This constructor creates an EventSetDescriptor assuming that you are following the most simple standard design pattern where a named event "fred" is (1) delivered as a call on the single method of interface FredListener, (2) has a single argument of type FredEvent, and (3) where the FredListener may be registered with a call on an addFredListener method of the source component and removed with a call on a removeFredListener method. |
|
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName)
This constructor creates an EventSetDescriptor from scratch using string names. |
|
EventSetDescriptor(String eventSetName,
Class listenerType,
Method[] listenerMethods,
Method addListenerMethod,
Method removeListenerMethod)
This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects. |
|
EventSetDescriptor(String eventSetName,
Class listenerType,
MethodDescriptor[] listenerMethodDescriptors,
Method addListenerMethod,
Method removeListenerMethod)
This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.MethodDescriptor and java.lang.Class objects. |
|
IntrospectionException(String mess)
Constructs an IntrospectionException with a
detailed message. |
|
PropertyChangeEvent(Object source,
String propertyName,
Object oldValue,
Object newValue)
Constructs a new PropertyChangeEvent. |
|
| Uses of String in java.beans.beancontext |
| Methods in java.beans.beancontext with parameters of type String | |
void |
BeanContextChild.addPropertyChangeListener(String name,
PropertyChangeListener pcl)
Adds a PropertyChangeListener
to this BeanContextChild
in order to receive a PropertyChangeEvent
whenever the specified property has changed. |
void |
BeanContextChild.removePropertyChangeListener(String name,
PropertyChangeListener pcl)
Removes a PropertyChangeListener from this
BeanContextChild so that it no longer
receives PropertyChangeEvents when the
specified property is changed. |
void |
BeanContextChild.addVetoableChangeListener(String name,
VetoableChangeListener vcl)
Adds a VetoableChangeListener to
this BeanContextChild
to receive events whenever the specified property changes. |
void |
BeanContextChild.removeVetoableChangeListener(String name,
VetoableChangeListener vcl)
Removes a VetoableChangeListener from this
BeanContextChild so that it no longer receives
events when the specified property changes. |
void |
BeanContextChildSupport.addPropertyChangeListener(String name,
PropertyChangeListener pcl)
Adds a property change listener. |
void |
BeanContextChildSupport.removePropertyChangeListener(String name,
PropertyChangeListener pcl)
Remove a property change listener. |
void |
BeanContextChildSupport.addVetoableChangeListener(String name,
VetoableChangeListener vcl)
Adds a VetoableChangeListener. |
void |
BeanContextChildSupport.removeVetoableChangeListener(String name,
VetoableChangeListener vcl)
Removes a VetoableChangeListener. |
void |
BeanContextChildSupport.firePropertyChange(String name,
Object oldValue,
Object newValue)
Report a bound property update to any registered listeners. |
void |
BeanContextChildSupport.fireVetoableChange(String name,
Object oldValue,
Object newValue)
Report a vetoable property update to any registered listeners. |
Object |
BeanContextSupport.instantiateChild(String beanName)
The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into a BeanContext. |
InputStream |
BeanContextSupport.getResourceAsStream(String name,
BeanContextChild bcc)
|
URL |
BeanContextSupport.getResource(String name,
BeanContextChild bcc)
|
Object |
BeanContext.instantiateChild(String beanName)
Instantiate the javaBean named as a child of this BeanContext. |
InputStream |
BeanContext.getResourceAsStream(String name,
BeanContextChild bcc)
Analagous to java.lang.ClassLoader.getResourceAsStream(),
this method allows a BeanContext implementation
to interpose behavior between the child Component
and underlying ClassLoader. |
URL |
BeanContext.getResource(String name,
BeanContextChild bcc)
Analagous to java.lang.ClassLoader.getResource(), this
method allows a BeanContext implementation to interpose
behavior between the child Component
and underlying ClassLoader. |
| Uses of String in java.io |
| Fields in java.io declared as String | |
String |
StreamTokenizer.sval
If the current token is a word token, this field contains a string giving the characters of the word token. |
String |
InvalidClassException.classname
Name of the invalid class. |
static String |
File.separator
The system-dependent default name-separator character, represented as a string for convenience. |
static String |
File.pathSeparator
The system-dependent path-separator character, represented as a string for convenience. |
protected String |
StringBufferInputStream.buffer
Deprecated. The string from which bytes are read. |
| Methods in java.io that return String | |
String |
BufferedReader.readLine()
Read a line of text. |
String |
LineNumberReader.readLine()
Read a line of text. |
String |
StreamTokenizer.toString()
Returns the string representation of the current stream token. |
String |
InvalidClassException.getMessage()
Produce the message and include the classname, if present. |
String |
FilePermission.getActions()
Returns the "canonical string representation" of the actions. |
String |
ObjectInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives. |
String |
ObjectInputStream.readUTF()
Reads a UTF format String. |
String |
InputStreamReader.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one. |
String |
File.getName()
Returns the name of the file or directory denoted by this abstract pathname. |
String |
File.getParent()
Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory. |
String |
File.getPath()
Converts this abstract pathname into a pathname string. |
String |
File.getAbsolutePath()
Returns the absolute pathname string of this abstract pathname. |
String |
File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname. |
String[] |
File.list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. |
String[] |
File.list(FilenameFilter filter)
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
String |
File.toString()
Returns the pathname string of this abstract pathname. |
String |
StringWriter.toString()
Return the buffer's current value as a string. |
String |
OutputStreamWriter.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
DataInput.readLine()
Reads the next line of text from the input stream. |
String |
DataInput.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format. |
String |
ObjectStreamClass.getName()
The name of the class described by this descriptor. |
String |
ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass. |
String |
ObjectStreamField.getName()
Get the name of this field. |
String |
ObjectStreamField.getTypeString()
Return the JVM type signature. |
String |
ObjectStreamField.toString()
Return a string that describes this field. |
String |
CharArrayWriter.toString()
Converts input data to a string. |
String |
RandomAccessFile.readLine()
Reads the next line of text from this file. |
String |
RandomAccessFile.readUTF()
Reads in a string from this file. |
String |
ByteArrayOutputStream.toString()
Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding. |
String |
ByteArrayOutputStream.toString(String enc)
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding. |
String |
ByteArrayOutputStream.toString(int hibyte)
Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the toString(String enc) method, which takes an encoding-name
argument, or the toString() method, which uses the
platform's default character encoding. |
String |
DataInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:
|
String |
DataInputStream.readUTF()
See the general contract of the readUTF
method of DataInput. |
static String |
DataInputStream.readUTF(DataInput in)
Reads from the stream in a representation
of a Unicode character string encoded in
Java modified UTF-8 format; this string
of characters is then returned as a String. |
| Methods in java.io with parameters of type String | |
void |
Writer.write(String str)
Write a string. |
void |
Writer.write(String str,
int off,
int len)
Write a portion of a string. |
void |
FilterWriter.write(String str,
int off,
int len)
Write a portion of a string. |
void |
PrintStream.print(String s)
Print a string. |
void |
PrintStream.println(String x)
Print a String and then terminate the line. |
void |
DataOutputStream.writeBytes(String s)
Writes out the string to the underlying output stream as a sequence of bytes. |
void |
DataOutputStream.writeChars(String s)
Writes a string to the underlying output stream as a sequence of characters. |
void |
DataOutputStream.writeUTF(String str)
Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner. |
protected Class |
ObjectInputStream.resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class. |
abstract boolean |
ObjectInputStream.GetField.defaulted(String name)
Return true if the named field is defaulted and has no value in this stream. |
abstract boolean |
ObjectInputStream.GetField.get(String name,
boolean defvalue)
Get the value of the named boolean field from the persistent field. |
abstract char |
ObjectInputStream.GetField.get(String name,
char defvalue)
Get the value of the named char field from the persistent fields. |
abstract byte |
ObjectInputStream.GetField.get(String name,
byte defvalue)
Get the value of the named byte field from the persistent fields. |
abstract short |
ObjectInputStream.GetField.get(String name,
short defvalue)
Get the value of the named short field from the persistent fields. |
abstract int |
ObjectInputStream.GetField.get(String name,
int defvalue)
Get the value of the named int field from the persistent fields. |
abstract long |
ObjectInputStream.GetField.get(String name,
long defvalue)
Get the value of the named long field from the persistent fields. |
abstract float |
ObjectInputStream.GetField.get(String name,
float defvalue)
Get the value of the named float field from the persistent fields. |
abstract double |
ObjectInputStream.GetField.get(String name,
double defvalue)
Get the value of the named double field from the persistent field. |
abstract Object |
ObjectInputStream.GetField.get(String name,
Object defvalue)
Get the value of the named Object field from the persistent field. |
static File |
File.createTempFile(String prefix,
String suffix,
File directory)
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name. |
static File |
File.createTempFile(String prefix,
String suffix)
Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name. |
void |
DataOutput.writeBytes(String s)
Writes a string to the output stream. |
void |
DataOutput.writeChars(String s)
Writes every character in the string s,
to the output stream, in order,
two bytes per character. |
void |
DataOutput.writeUTF(String str)
Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string s. |
void |
StringWriter.write(String str)
Write a string. |
void |
StringWriter.write(String str,
int off,
int len)
Write a portion of a string. |
void |
OutputStreamWriter.write(String str,
int off,
int len)
Write a portion of a string. |
boolean |
FilenameFilter.accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
void |
PrintWriter.write(String s,
int off,
int len)
Write a portion of a string. |
void |
PrintWriter.write(String s)
Write a string. |
void |
PrintWriter.print(String s)
Print a string. |
void |
PrintWriter.println(String x)
Print a String and then terminate the line. |
void |
ObjectOutputStream.writeBytes(String data)
Writes a String as a sequence of bytes. |
void |
ObjectOutputStream.writeChars(String data)
Writes a String as a sequence of chars. |
void |
ObjectOutputStream.writeUTF(String s)
Primitive data write of this String in UTF format. |
abstract void |
ObjectOutputStream.PutField.put(String name,
boolean value)
Put the value of the named boolean field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
char value)
Put the value of the named char field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
byte value)
Put the value of the named byte field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
short value)
Put the value of the named short field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
int value)
Put the value of the named int field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
long value)
Put the value of the named long field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
float value)
Put the value of the named float field into the persistent fields. |
abstract void |
ObjectOutputStream.PutField.put(String name,
double value)
Put the value of the named double field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
Object value)
Put the value of the named Object field into the persistent field. |
ObjectStreamField |
ObjectStreamClass.getField(String name)
Get the field of this class by name. |
void |
CharArrayWriter.write(String str,
int off,
int len)
Write a portion of a string to the buffer. |
void |
RandomAccessFile.writeBytes(String s)
Writes the string to the file as a sequence of bytes. |
void |
RandomAccessFile.writeChars(String s)
Writes a string to the file as a sequence of characters. |
void |
RandomAccessFile.writeUTF(String str)
Writes a string to the file using UTF-8 encoding in a machine-independent manner. |
String |
ByteArrayOutputStream.toString(String enc)
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding. |
void |
BufferedWriter.write(String s,
int off,
int len)
Write a portion of a String. |
| Constructors in java.io with parameters of type String | |
IOException(String s)
Constructs an IOException with the specified detail
message. |
|
ObjectStreamException(String classname)
Create an ObjectStreamException with the specified argument. |
|
NotSerializableException(String classname)
Constructs a NotSerializableException object with message string. |
|
FileOutputStream(String name)
Creates an output file stream to write to the file with the specified name. |
|
FileOutputStream(String name,
boolean append)
Creates an output file stream to write to the file with the specified name. |
|
InterruptedIOException(String s)
Constructs an InterruptedIOException with the
specified detail message. |
|
StringReader(String s)
Create a new string reader. |
|
InvalidClassException(String reason)
Report a InvalidClassException for the reason specified. |
|
InvalidClassException(String cname,
String reason)
Constructs an InvalidClassException object. |
|
FilePermission(String path,
String actions)
Creates a new FilePermission object with the specified actions. |
|
InputStreamReader(InputStream in,
String enc)
Create an InputStreamReader that uses the named character encoding. |
|
WriteAbortedException(String s,
Exception ex)
Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation. |
|
NotActiveException(String reason)
Constructor to create a new NotActiveException with the reason given. |
|
File(String pathname)
Creates a new File instance by converting the given
pathname string into an abstract pathname. |
|
File(String parent,
String child)
Creates a new File instance from a parent pathname string
and a child pathname string. |
|
File(File parent,
String child)
Creates a new File instance from a parent abstract
pathname and a child pathname string. |
|
FileReader(String fileName)
Creates a new FileReader, given the name of the file to read from. |
|
StringBufferInputStream(String s)
Deprecated. Creates a string input stream to read data from the specified string. |
|
OutputStreamWriter(OutputStream out,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message. |
|
FileWriter(String fileName)
Constructs a FileWriter object given a file name. |
|
FileWriter(String fileName,
boolean append)
Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written. |
|
InvalidObjectException(String reason)
Constructs an InvalidObjectException. |
|
UTFDataFormatException(String s)
Constructs a UTFDataFormatException with the
specified detail message. |
|
ObjectStreamField(String n,
Class clazz)
Create a Serializable field with the specified type. |
|
SyncFailedException(String desc)
Constructs an SyncFailedException with a detail message. |
|
FileNotFoundException(String s)
Constructs a FileNotFoundException with the
specified detail message. |
|
StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown. |
|
RandomAccessFile(String name,
String mode)
Creates a random access file stream to read from, and optionally to write to, a file with the specified name. |
|
RandomAccessFile(File file,
String mode)
Creates a random access file stream to read from, and optionally to write to, the file specified by the File argument. |
|
EOFException(String s)
Constructs an EOFException with the specified detail
message. |
|
CharConversionException(String s)
This provides a detailed message. |
|
FileInputStream(String name)
Creates a FileInputStream by
opening a connection to an actual file,
the file named by the path name name
in the file system. |
|
SerializablePermission(String name)
Creates a new SerializablePermission with the specified name. |
|
SerializablePermission(String name,
String actions)
Creates a new SerializablePermission object with the specified name. |
|
| Uses of String in java.lang |
| Methods in java.lang that return String | |
String |
Object.toString()
Returns a string representation of the object. |
String |
Throwable.getMessage()
Returns the error message string of this throwable object. |
String |
Throwable.getLocalizedMessage()
Creates a localized description of this Throwable. |
String |
Throwable.toString()
Returns a short description of this throwable object. |
String |
Character.toString()
Returns a String object representing this character's value. |
String |
Character.Subset.toString()
Returns the name of this subset. |
static String |
Long.toString(long i,
int radix)
Creates a string representation of the first argument in the radix specified by the second argument. |
static String |
Long.toHexString(long i)
Creates a string representation of the long argument as an unsigned integer in base 16. |
static String |
Long.toOctalString(long i)
Creates a string representation of the long argument as an unsigned integer in base 8. |
static String |
Long.toBinaryString(long i)
Creates a string representation of the long argument as an unsigned integer in base 2. |
static String |
Long.toString(long i)
Returns a new String object representing the specified integer. |
String |
Long.toString()
Returns a String object representing this Long's value. |
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key. |
static String |
System.getProperty(String key,
String def)
Gets the system property indicated by the specified key. |
static String |
System.setProperty(String key,
String value)
Sets the system property indicated by the specified key. |
static String |
System.getenv(String name)
Deprecated. The preferred way to extract system-dependent information is the system properties of the java.lang.System.getProperty methods and the
corresponding getTypeName methods of
the Boolean, Integer, and
Long primitive types. For example:
|
static String |
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library. |
String |
ThreadGroup.getName()
Returns the name of this thread group. |
String |
ThreadGroup.toString()
Returns a string representation of this Thread group. |
String |
Thread.getName()
Returns this thread's name. |
String |
Thread.toString()
Returns a string representation of this thread, including the thread's name, priority, and thread group. |
static String |
Short.toString(short s)
Returns a new String object representing the specified Short. |
String |
Short.toString()
Returns a String object representing this Short's value. |
String |
String.substring(int beginIndex)
Returns a new string that is a substring of this string. |
String |
String.substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string. |
String |
String.concat(String str)
Concatenates the specified string to the end of this string. |
String |
String.replace(char oldChar,
char newChar)
Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar. |
String |
String.toLowerCase(Locale locale)
Converts all of the characters in this String to lower
case using the rules of the given Locale. |
String |
String.toLowerCase()
Converts all of the characters in this String to lower
case using the rules of the default locale, which is returned
by Locale.getDefault. |
String |
String.toUpperCase(Locale locale)
Converts all of the characters in this String to upper
case using the rules of the given locale. |
String |
String.toUpperCase()
Converts all of the characters in this String to upper
case using the rules of the default locale, which is returned
by Locale.getDefault. |
String |
String.trim()
Removes white space from both ends of this string. |
String |
String.toString()
This object (which is already a string!) is itself returned. |
static String |
String.valueOf(Object obj)
Returns the string representation of the Object argument. |
static String |
String.valueOf(char[] data)
Returns the string representation of the char array
argument. |
static String |
String.valueOf(char[] data,
int offset,
int count)
Returns the string representation of a specific subarray of the char array argument. |
static String |
String.copyValueOf(char[] data,
int offset,
int count)
Returns a String that is equivalent to the specified character array. |
static String |
String.copyValueOf(char[] data)
Returns a String that is equivalent to the specified character array. |
static String |
String.valueOf(boolean b)
Returns the string representation of the boolean argument. |
static String |
String.valueOf(char c)
Returns the string representation of the char
argument. |
static String |
String.valueOf(int i)
Returns the string representation of the int argument. |
static String |
String.valueOf(long l)
Returns the string representation of the long argument. |
static String |
String.valueOf(float f)
Returns the string representation of the float argument. |
static String |
String.valueOf(double d)
Returns the string representation of the double argument. |
String |
String.intern()
Returns a canonical representation for the string object. |
static String |
Float.toString(float f)
Returns a String representation for the specified float value. |
String |
Float.toString()
Returns a String representation of this Float object. |
static String |
Integer.toString(int i,
int radix)
Creates a string representation of the first argument in the radix specified by the second argument. |
static String |
Integer.toHexString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 16. |
static String |
Integer.toOctalString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 8. |
static String |
Integer.toBinaryString(int i)
Creates a string representation of the integer argument as an unsigned integer in base 2. |
static String |
Integer.toString(int i)
Returns a new String object representing the specified integer. |
String |
Integer.toString()
Returns a String object representing this Integer's value. |
String |
StringBuffer.substring(int start)
Returns a new String that contains a subsequence of
characters currently contained in this StringBuffer.The
substring begins at the specified index and extends to the end of the
StringBuffer. |
String |
StringBuffer.substring(int start,
int end)
Returns a new String that contains a subsequence of
characters currently contained in this StringBuffer. |
String |
StringBuffer.toString()
Converts to a string representing the data in this string buffer. |
String |
Package.getName()
Return the name of this package. |
String |
Package.getSpecificationTitle()
Return the title of the specification that this package implements. |
String |
Package.getSpecificationVersion()
Returns the version number of the specification that this package implements. |
String |
Package.getSpecificationVendor()
Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package. |
String |
Package.getImplementationTitle()
Return the title of this package. |
String |
Package.getImplementationVersion()
Return the version of this implementation. |
String |
Package.getImplementationVendor()
Returns the name of the organization, vendor or company that provided this implementation. |
String |
Package.toString()
Returns the string representation of this Package. |
static String |
Byte.toString(byte b)
Returns a new String object representing the specified Byte. |
String |
Byte.toString()
Returns a String object representing this Byte's value. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
String |
Class.toString()
Converts the object to a string. |
String |
Class.getName()
Returns the fully-qualified name of the entity (class, interface, array class, primitive type, or void) represented by this Class
object, as a String. |
static String |
Double.toString(double d)
Creates a string representation of the double
argument. |
String |
Double.toString()
Returns a String representation of this Double object. |
String |
Boolean.toString()
Returns a String object representing this Boolean's value. |
| Methods in java.lang with parameters of type String | |
static long |
Long.parseLong(String s,
int radix)
Parses the string argument as a signed long in the
radix specified by the second argument. |
static long |
Long.parseLong(String s)
Parses the string argument as a signed decimal long. |
static Long |
Long.valueOf(String s,
int radix)
Returns a new long object initialized to the value of the specified String. |
static Long |
Long.valueOf(String s)
Returns a new long object initialized to the value of the specified String. |
static Long |
Long.decode(String nm)
Decodes a String into a Long. |
static Long |
Long.getLong(String nm)
Determines the long value of the system property
with the specified name. |
static Long |
Long.getLong(String nm,
long val)
Determines the long value of the system property
with the specified name. |
static Long |
Long.getLong(String nm,
Long val)
Returns the long value of the system property with the specified name. |
static String |
System.getProperty(String key)
Gets the system property indicated by the specified key. |
static String |
System.getProperty(String key,
String def)
Gets the system property indicated by the specified key. |
static String |
System.setProperty(String key,
String value)
Sets the system property indicated by the specified key. |
static String |
System.getenv(String name)
Deprecated. The preferred way to extract system-dependent information is the system properties of the java.lang.System.getProperty methods and the
corresponding getTypeName methods of
the Boolean, Integer, and
Long primitive types. For example:
|
static void |
System.load(String filename)
Loads a code file with the specified filename from the local file system as a dynamic library. |
static void |
System.loadLibrary(String libname)
Loads the system library specified by the libname
argument. |
static String |
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library. |
static boolean |
Compiler.compileClasses(String string)
Compiles all classes whose name matches the specified string. |
void |
Thread.setName(String name)
Changes the name of this thread to be equal to the argument name. |
static short |
Short.parseShort(String s)
Assuming the specified String represents a short, returns that short's value. |
static short |
Short.parseShort(String s,
int radix)
Assuming the specified String represents a short, returns that short's value. |
static Short |
Short.valueOf(String s,
int radix)
Assuming the specified String represents a short, returns a new Short object initialized to that value. |
static Short |
Short.valueOf(String s)
Assuming the specified String represents a short, returns a new Short object initialized to that value. |
static Short |
Short.decode(String nm)
Decodes a String into a Short. |
byte[] |
String.getBytes(String enc)
Convert this String into bytes according to the specified
character encoding, storing the result into a new byte array. |
boolean |
String.equalsIgnoreCase(String anotherString)
Compares this String to another String,
ignoring case considerations. |
int |
String.compareTo(String anotherString)
Compares two strings lexicographically. |
int |
String.compareToIgnoreCase(String str)
Compares two strings lexicographically, ignoring case considerations. |
boolean |
String.regionMatches(int toffset,
String other,
int ooffset,
int len)
Tests if two string regions are equal. |
boolean |
String.regionMatches(boolean ignoreCase,
int toffset,
String other,
int ooffset,
int len)
Tests if two string regions are equal. |
boolean |
String.startsWith(String prefix,
int toffset)
Tests if this string starts with the specified prefix beginning a specified index. |
boolean |
String.startsWith(String prefix)
Tests if this string starts with the specified prefix. |
boolean |
String.endsWith(String suffix)
Tests if this string ends with the specified suffix. |
int |
String.indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring. |
int |
String.indexOf(String str,
int fromIndex)
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index. |
int |
String.lastIndexOf(String str)
Returns the index within this string of the rightmost occurrence of the specified substring. |
int |
String.lastIndexOf(String str,
int fromIndex)
Returns the index within this string of the last occurrence of the specified substring. |
String |
String.concat(String str)
Concatenates the specified string to the end of this string. |
static Float |
Float.valueOf(String s)
Returns the floating point value represented by the specified String. |
static float |
Float.parseFloat(String s)
Returns a new float initialized to the value represented by the specified String, as performed by the valueOf
method of class Double. |
protected int |
SecurityManager.classDepth(String name)
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
protected boolean |
SecurityManager.inClass(String name)
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
void |
SecurityManager.checkExec(String cmd)
Throws a SecurityException if the
calling thread is not allowed to create a subprocess. |
void |
SecurityManager.checkLink(String lib)
Throws a SecurityException if the
calling thread is not allowed to dynamic link the library code
specified by the string argument file. |
void |
SecurityManager.checkRead(String file)
Throws a SecurityException if the
calling thread is not allowed to read the file specified by the
string argument. |
void |
SecurityManager.checkRead(String file,
Object context)
Throws a SecurityException if the
specified security context is not allowed to read the file
specified by the string argument. |
void |
SecurityManager.checkWrite(String file)
Throws a SecurityException if the
calling thread is not allowed to write to the file specified by
the string argument. |
void |
SecurityManager.checkDelete(String file)
Throws a SecurityException if the
calling thread is not allowed to delete the specified file. |
void |
SecurityManager.checkConnect(String host,
int port)
Throws a SecurityException if the
calling thread is not allowed to open a socket connection to the
specified host and port number. |
void |
SecurityManager.checkConnect(String host,
int port,
Object context)
Throws a SecurityException if the
specified security context is not allowed to open a socket
connection to the specified host and port number. |
void |
SecurityManager.checkAccept(String host,
int port)
Throws a SecurityException if the
calling thread is not permitted to accept a socket connection from
the specified host and port number. |
void |
SecurityManager.checkPropertyAccess(String key)
Throws a SecurityException if the
calling thread is not allowed to access the system property with
the specified key name. |
void |
SecurityManager.checkPackageAccess(String pkg)
Throws a SecurityException if the
calling thread is not allowed to access the package specified by
the argument. |
void |
SecurityManager.checkPackageDefinition(String pkg)
Throws a SecurityException if the
calling thread is not allowed to define classes in the package
specified by the argument. |
void |
SecurityManager.checkSecurityAccess(String target)
Determines whether the permission with the specified permission target name should be granted or denied. |
static int |
Integer.parseInt(String s,
int radix)
Parses the string argument as a signed integer in the radix specified by the second argument. |
static int |
Integer.parseInt(String s)
Parses the string argument as a signed decimal integer. |
static Integer |
Integer.valueOf(String s,
int radix)
Returns a new Integer object initialized to the value of the specified String. |
static Integer |
Integer.valueOf(String s)
Returns a new Integer object initialized to the value of the specified String. |
static Integer |
Integer.getInteger(String nm)
Determines the integer value of the system property with the specified name. |
static Integer |
Integer.getInteger(String nm,
int val)
Determines the integer value of the system property with the specified name. |
static Integer |
Integer.getInteger(String nm,
Integer val)
Returns the integer value of the system property with the specified name. |
static Integer |
Integer.decode(String nm)
Decodes a String into an Integer. |
StringBuffer |
StringBuffer.append(String str)
Appends the string to this string buffer. |
StringBuffer |
StringBuffer.replace(int start,
int end,
String str)
Replaces the characters in a substring of this StringBuffer
with characters in the specified String. |
StringBuffer |
StringBuffer.insert(int offset,
String str)
Inserts the string into this string buffer. |
boolean |
Package.isCompatibleWith(String desired)
Compare this package's specification version with a desired version. |
static Package |
Package.getPackage(String name)
Find a package by name in the callers classloader. |
Process |
Runtime.exec(String command)
Executes the specified string command in a separate process. |
Process |
Runtime.exec(String cmd,
String[] envp)
Executes the specified string command in a separate process with the specified environment. |
Process |
Runtime.exec(String command,
String[] envp,
File dir)
Executes the specified string command in a separate process with the specified environment and working directory. |
Process |
Runtime.exec(String[] cmdarray)
Executes the specified command and arguments in a separate process. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process with the specified environment. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp,
File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory. |
void |
Runtime.load(String filename)
Loads the specified filename as a dynamic library. |
void |
Runtime.loadLibrary(String libname)
Loads the dynamic library with the specified library name. |
static byte |
Byte.parseByte(String s)
Assuming the specified String represents a byte, returns that byte's value. |
static byte |
Byte.parseByte(String s,
int radix)
Assuming the specified String represents a byte, returns that byte's value. |
static Byte |
Byte.valueOf(String s,
int radix)
Assuming the specified String represents a byte, returns a new Byte object initialized to that value. |
static Byte |
Byte.valueOf(String s)
Assuming the specified String represents a byte, returns a new Byte object initialized to that value. |
static Byte |
Byte.decode(String nm)
Decodes a String into a Byte. |
Class |
ClassLoader.loadClass(String name)
Loads the class with the specified name. |
protected Class |
ClassLoader.loadClass(String name,
boolean resolve)
Loads the class with the specified name. |
protected Class |
ClassLoader.findClass(String name)
Finds the specified class. |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len)
Converts an array of bytes into an instance of class Class. |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
ProtectionDomain protectionDomain)
Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain. |
protected Class |
ClassLoader.findSystemClass(String name)
Finds a class with the specified name, loading it if necessary. |
protected Class |
ClassLoader.findLoadedClass(String name)
Finds the class with the given name if it had been previously loaded through this class loader. |
URL |
ClassLoader.getResource(String name)
Finds the resource with the given name. |
Enumeration |
ClassLoader.getResources(String name)
Finds all the resources with the given name. |
protected Enumeration |
ClassLoader.findResources(String name)
Returns an Enumeration of URLs representing all the resources with the given name. |
protected URL |
ClassLoader.findResource(String name)
Finds the resource with the given name. |
static URL |
ClassLoader.getSystemResource(String name)
Find a resource of the specified name from the search path used to load classes. |
static Enumeration |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to load classes. |
InputStream |
ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource. |
static InputStream |
ClassLoader.getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path used to load classes. |
protected Package |
ClassLoader.definePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
URL sealBase)
Defines a package by name in this ClassLoader. |
protected Package |
ClassLoader.getPackage(String name)
Returns a Package that has been defined by this class loader or any of its ancestors. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
static Class |
Class.forName(String className)
Returns the Class object associated with the class or
interface with the given string name. |
static Class |
Class.forName(String name,
boolean initialize,
ClassLoader loader)
Returns the Class object associated with the class or
interface with the given string name, using the given class loader. |
Field |
Class.getField(String name)
Returns a Field object that reflects the specified public
member field of the class or interface represented by this
Class object. |
Method |
Class.getMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
Field |
Class.getDeclaredField(String name)
Returns a Field object that reflects the specified declared
field of the class or interface represented by this Class
object. |
Method |
Class.getDeclaredMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified
declared method of the class or interface represented by this
Class object. |
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name. |
URL |
Class.getResource(String name)
Finds a resource with a given name. |
static Double |
Double.valueOf(String s)
Returns a new Double object initialized to the value
represented by the specified string. |
static double |
Double.parseDouble(String s)
Returns a new double initialized to the value represented by the specified String, as performed by the valueOf
method of class Double. |
static Boolean |
Boolean.valueOf(String s)
Returns a Boolean with a value represented by the
specified String. |
static boolean |
Boolean.getBoolean(String name)
Returns true if and only if the system property
named by the argument exists and is equal to the string
"true". |
| Constructors in java.lang with parameters of type String | |
Throwable(String message)
Constructs a new Throwable with the specified error
message. |
|
Exception(String s)
Constructs an Exception with the specified detail message. |
|
RuntimeException(String s)
Constructs a RuntimeException with the specified
detail message. |
|
IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail message. |
|
Error(String s)
Constructs an Error with the specified detail message. |
|
Character.Subset(String name)
Constructs a new Subset instance. |
|
LinkageError(String s)
Constructs a LinkageError with the specified detail
message. |
|
VerifyError(String s)
Constructs an VerifyError with the specified detail message. |
|
Long(String s)
Constructs a newly allocated Long object that
represents the value represented by the string in decimal form. |
|
ThreadGroup(String name)
Constructs a new thread group. |
|
ThreadGroup(ThreadGroup parent,
String name)
Creates a new thread group. |
|
IncompatibleClassChangeError(String s)
Constructs an IncompatibleClassChangeError with the
specified detail message. |
|
IllegalAccessError(String s)
Constructs an IllegalAccessError with the specified
detail message. |
|
InstantiationException(String s)
Constructs an InstantiationException with the
specified detail message. |
|
IllegalArgumentException(String s)
Constructs an IllegalArgumentException with the
specified detail message. |
|
NumberFormatException(String s)
Constructs a NumberFormatException with the
specified detail message. |
|
ClassFormatError(String s)
Constructs a ClassFormatError with the specified
detail message. |
|
CloneNotSupportedException(String s)
Constructs a CloneNotSupportedException with the
specified detail message. |
|
UnsupportedClassVersionError(String s)
Constructs a UnsupportedClassVersionError with
the specified detail message. |
|
IllegalThreadStateException(String s)
Constructs an IllegalThreadStateException with the
specified detail message. |
|
Thread(String name)
Allocates a new Thread object. |
|
Thread(ThreadGroup group,
String name)
Allocates a new Thread object. |
|
Thread(Runnable target,
String name)
Allocates a new Thread object. |
|
Thread(ThreadGroup group,
Runnable target,
String name)
Allocates a new Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group
referred to by group. |
|
Short(String s)
Constructs a Short object initialized to the value specified by the String parameter. |
|
String(String original)
Initializes a newly created String object so that it
represents the same sequence of characters as the argument; in other
words, the newly created string is a copy of the argument string. |
|
String(byte[] bytes,
int offset,
int length,
String enc)
Construct a new String by converting the specified
subarray of bytes using the specified character encoding. |
|
String(byte[] bytes,
String enc)
Construct a new String by converting the specified array
of bytes using the specified character encoding. |
|
Float(String s)
Constructs a newly allocated Float object that
represents the floating-point value of type float
represented by the string. |
|
NoSuchFieldError(String s)
Constructs a NoSuchFieldException with the specified
detail message. |
|
InterruptedException(String s)
Constructs an InterruptedException with the
specified detail message. |
|
IndexOutOfBoundsException(String s)
Constructs an IndexOutOfBoundsException with the
specified detail message. |
|
ArrayStoreException(String s)
Constructs an ArrayStoreException with the specified
detail message. |
|
ExceptionInInitializerError(String s)
Constructs an ExceptionInInitializerError with the specified detail message string. |
|
RuntimePermission(String name)
Creates a new RuntimePermission with the specified name. |
|
RuntimePermission(String name,
String actions)
Creates a new RuntimePermission object with the specified name. |
|
SecurityException(String s)
Constructs a SecurityException with the specified
detail message. |
|
Integer(String s)
Constructs a newly allocated Integer object that
represents the value represented by the string. |
|
ClassCircularityError(String s)
Constructs a ClassCircularityError with the
specified detail message. |
|
VirtualMachineError(String s)
Constructs a VirtualMachineError with the specified
detail message. |
|
ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class
with the specified detail message. |
|
UnknownError(String s)
Constructs an UnknownError with the specified detail
message. |
|
StringBuffer(String str)
Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string. |
|
NullPointerException(String s)
Constructs a NullPointerException with the specified
detail message. |
|
StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with
the specified detail message. |
|
IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message. |
|
OutOfMemoryError(String s)
Constructs an OutOfMemoryError with the specified
detail message. |
|
Byte(String s)
Constructs a Byte object initialized to the value specified by the String parameter. |
|
UnsatisfiedLinkError(String s)
Constructs an UnsatisfiedLinkError with the
specified detail message. |
|
ArithmeticException(String s)
Constructs an ArithmeticException with the specified
detail message. |
|
NoSuchMethodException(String s)
Constructs a NoSuchMethodException with a detail message. |
|
ClassCastException(String s)
Constructs a ClassCastException with the specified
detail message. |
|
StackOverflowError(String s)
Constructs a StackOverflowError with the specified
detail message. |
|
NoSuchFieldException(String s)
Constructor with a detail message. |
|
Double(String s)
Constructs a newly allocated Double object that
represents the floating- point value of type double
represented by the string. |
|
NegativeArraySizeException(String s)
Constructs a NegativeArraySizeException with the
specified detail message. |
|
ClassNotFoundException(String s)
Constructs a ClassNotFoundException with the
specified detail message. |
|
ClassNotFoundException(String s,
Throwable ex)
Constructs a ClassNotFoundException with the
specified detail message and optional exception that was
raised while loading the class. |
|
NoClassDefFoundError(String s)
Constructs a NoClassDefFoundError with the specified
detail message. |
|
Boolean(String s)
Allocates a Boolean object representing the value
true if the string argument is not null
and is equal, ignoring case, to the string "true". |
|
InstantiationError(String s)
Constructs an InstantiationError with the specified
detail message. |
|
IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the
specified detail message. |
|
UnsupportedOperationException(String message)
Constructs an UnsupportedOperationException with the specified detail message. |
|
InternalError(String s)
Constructs an InternalError with the specified
detail message. |
|
NoSuchMethodError(String s)
Constructs a NoSuchMethodError with the
specified detail message. |
|
AbstractMethodError(String s)
Constructs an AbstractMethodError with the specified
detail message. |
|
| Uses of String in java.lang.reflect |
| Methods in java.lang.reflect that return String | |
String |
Member.getName()
Returns the simple name of the underlying member or constructor represented by this Member. |
String |
Method.getName()
Returns the name of the method represented by this Method
object, as a String. |
String |
Method.toString()
Returns a string describing this Method. |
static String |
Modifier.toString(int mod)
Return a string describing the access modifier flags in the specified modifier. |
String |
Field.getName()
Returns the name of the field represented by this Field object. |
String |
Field.toString()
Returns a string describing this Field. |
String |
Constructor.getName()
Returns the name of this constructor, as a string. |
String |
Constructor.toString()
Returns a string describing this Constructor. |
| Constructors in java.lang.reflect with parameters of type String | |
InvocationTargetException(Throwable target,
String s)
Constructs a InvocationTargetException with a target exception and a detail message. |
|
UndeclaredThrowableException(Throwable undeclaredThrowable,
String s)
Constructs an UndeclaredThrowableException with the
specified Throwable and a detail message. |
|
ReflectPermission(String name)
Constructs a ReflectPermission with the specified name. |
|
ReflectPermission(String name,
String actions)
Constructs a ReflectPermission with the specified name and actions. |
|
| Uses of String in java.math |
| Methods in java.math that return String | |
String |
BigInteger.toString(int radix)
Returns the String representation of this BigInteger in the given radix. |
String |
BigInteger.toString()
Returns the decimal String representation of this BigInteger. |
String |
BigDecimal.toString()
Returns the string representation of this BigDecimal. |
| Constructors in java.math with parameters of type String | |
BigInteger(String val,
int radix)
Translates the String representation of a BigInteger in the specified radix into a BigInteger. |
|
BigInteger(String val)
Translates the decimal String representation of a BigInteger into a BigInteger. |
|
BigDecimal(String val)
Translates the String representation of a BigDecmal into a BigDecimal. |
|
| Uses of String in java.net |
| Fields in java.net declared as String | |
protected String |
HttpURLConnection.method
The HTTP method (GET,POST,PUT,etc.). |
protected String |
HttpURLConnection.responseMessage
The HTTP response message. |
| Methods in java.net that return String | |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
String |
URLConnection.getContentType()
Returns the value of the content-type header field. |
String |
URLConnection.getContentEncoding()
Returns the value of the content-encoding header field. |
String |
URLConnection.getHeaderField(String name)
Returns the name of the specified header field. |
String |
URLConnection.getHeaderFieldKey(int n)
Returns the key for the nth header field. |
String |
URLConnection.getHeaderField(int n)
Returns the value for the nth header field. |
String |
URLConnection.toString()
Returns a String representation of this URL connection. |
String |
URLConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
static String |
URLConnection.getDefaultRequestProperty(String key)
Deprecated. The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained. |
protected static String |
URLConnection.guessContentTypeFromName(String fname)
Tries to determine the content type of an object, based on the specified "file" component of a URL. |
static String |
URLConnection.guessContentTypeFromStream(InputStream is)
Tries to determine the type of an input stream based on the characters at the beginning of the input stream. |
String |
JarURLConnection.getEntryName()
Return the entry name for this connection. |
static String |
URLDecoder.decode(String s)
Decodes a "x-www-form-urlencoded" to a String. |
String |
PasswordAuthentication.getUserName()
Returns the user name. |
String |
SocketImpl.toString()
Returns the address and port of this socket as a String. |
String |
Socket.toString()
Converts this socket to a String. |
String |
URL.getQuery()
Returns the query part of this URL. |
String |
URL.getPath()
Returns the path part of this URL. |
String |
URL.getUserInfo()
Returns the userInfo part of this URL. |
String |
URL.getAuthority()
Returns the authority part of this URL. |
String |
URL.getProtocol()
Returns the protocol name of this URL. |
String |
URL.getHost()
Returns the host name of this URL, if applicable. |
String |
URL.getFile()
Returns the file name of this URL. |
String |
URL.getRef()
Returns the anchor (also known as the "reference") of this URL. |
String |
URL.toString()
Constructs a string representation of this URL. |
String |
URL.toExternalForm()
Constructs a string representation of this URL. |
String |
SocketPermission.getActions()
Returns the canonical string representation of the actions. |
String |
HttpURLConnection.getRequestMethod()
Get the request method. |
String |
HttpURLConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
static String |
URLEncoder.encode(String s)
Translates a string into x-www-form-urlencoded format. |
String |
ServerSocket.toString()
Returns the implementation address and implementation port of this socket as a String. |
protected String |
URLStreamHandler.toExternalForm(URL u)
Converts a URL of a specific protocol to a
String. |
String |
InetAddress.getHostName()
Gets the host name for this IP address. |
String |
InetAddress.getHostAddress()
Returns the IP address string "%d.%d.%d.%d". |
String |
InetAddress.toString()
Converts this IP address to a String. |
protected String |
Authenticator.getRequestingProtocol()
Give the protocol that's requesting the connection. |
protected String |
Authenticator.getRequestingPrompt()
Gets the prompt string given by the requestor. |
protected String |
Authenticator.getRequestingScheme()
Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example). |
| Methods in java.net with parameters of type String | |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
protected Class |
URLClassLoader.findClass(String name)
Finds and loads the class with the specified name from the URL search path. |
protected Package |
URLClassLoader.definePackage(String name,
Manifest man,
URL url)
Defines a new package by name in this ClassLoader. |
URL |
URLClassLoader.findResource(String name)
Finds the resource with the specified name on the URL search path. |
Enumeration |
URLClassLoader.findResources(String name)
Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name. |
String |
URLConnection.getHeaderField(String name)
Returns the name of the specified header field. |
int |
URLConnection.getHeaderFieldInt(String name,
int Default)
Returns the value of the named field parsed as a number. |
long |
URLConnection.getHeaderFieldDate(String name,
long Default)
Returns the value of the named field parsed as date. |
void |
URLConnection.setRequestProperty(String key,
String value)
Sets the general request property. |
String |
URLConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
static void |
URLConnection.setDefaultRequestProperty(String key,
String value)
Deprecated. The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. |
static String |
URLConnection.getDefaultRequestProperty(String key)
Deprecated. The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained. |
protected static String |
URLConnection.guessContentTypeFromName(String fname)
Tries to determine the content type of an object, based on the specified "file" component of a URL. |
static String |
URLDecoder.decode(String s)
Decodes a "x-www-form-urlencoded" to a String. |
protected abstract void |
SocketImpl.connect(String host,
int port)
Connects this socket to the specified port on the named host. |
URLStreamHandler |
URLStreamHandlerFactory.createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified
protocol. |
protected void |
URL.set(String protocol,
String host,
int port,
String file,
String ref)
Sets the fields of the URL. |
protected void |
URL.set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the specified 8 fields of the URL. |
ContentHandler |
ContentHandlerFactory.createContentHandler(String mimetype)
Creates a new ContentHandler to read an object from
a URLStreamHandler. |
void |
HttpURLConnection.setRequestMethod(String method)
Set the method for the URL request, one of: GET POST HEAD OPTIONS PUT DELETE TRACE are legal, subject to protocol restrictions. |
long |
HttpURLConnection.getHeaderFieldDate(String name,
long Default)
|
static String |
URLEncoder.encode(String s)
Translates a string into x-www-form-urlencoded format. |
protected void |
URLStreamHandler.parseURL(URL u,
String spec,
int start,
int limit)
Parses the string representation of a URL into a
URL object. |
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the fields of the URL argument to the indicated values. |
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref)
Deprecated. Use setURL(URL, String, String, int, String, String, String, String); |
static InetAddress |
InetAddress.getByName(String host)
Determines the IP address of a host, given the host's name. |
static InetAddress[] |
InetAddress.getAllByName(String host)
Determines all the IP addresses of a host, given the host's name. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress addr,
int port,
String protocol,
String prompt,
String scheme)
Ask the authenticator that has been registered with the system for a password. |
| Constructors in java.net with parameters of type String | |
PasswordAuthentication(String userName,
char[] password)
Creates a new PasswordAuthentication object from the given
user name and password. |
|
Socket(String host,
int port)
Creates a stream socket and connects it to the specified port number on the named host. |
|
Socket(String host,
int port,
InetAddress localAddr,
int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port. |
|
Socket(String host,
int port,
boolean stream)
Deprecated. Use DatagramSocket instead for UDP transport. |
|
SocketException(String msg)
Constructs a new SocketException with the
specified detail message. |
|
BindException(String msg)
Constructs a new BindException with the specified detail message as to why the bind error occurred. |
|
MalformedURLException(String msg)
Constructs a MalformedURLException with the
specified detail message. |
|
URL(String protocol,
String host,
int port,
String file)
Creates a URL object from the specified
protocol, host, port
number, and file. |
|
URL(String protocol,
String host,
String file)
Creates a URL from the specified protocol
name, host name, and file name. |
|
URL(String protocol,
String host,
int port,
String file,
URLStreamHandler handler)
Creates a URL object from the specified
protocol, host, port
number, file, and handler. |
|
URL(String spec)
Creates a URL object from the String
representation. |
|
URL(URL context,
String spec)
Creates a URL by parsing the given spec within a specified context. |
|
URL(URL context,
String spec,
URLStreamHandler handler)
Creates a URL by parsing the given spec with the specified handler within a specified context. |
|
NetPermission(String name)
Creates a new NetPermission with the specified name. |
|
NetPermission(String name,
String actions)
Creates a new NetPermission object with the specified name. |
|
NoRouteToHostException(String msg)
Constructs a new NoRouteToHostException with the specified detail message as to why the remote host cannot be reached. |
|
ProtocolException(String host)
Constructs a new ProtocolException with the
specified detail message. |
|
SocketPermission(String host,
String action)
Creates a new SocketPermission object with the specified actions. |
|
ConnectException(String msg)
Constructs a new ConnectException with the specified detail message as to why the connect error occurred. |
|
UnknownHostException(String host)
Constructs a new UnknownHostException with the
specified detail message. |
|
UnknownServiceException(String msg)
Constructs a new UnknownServiceException with the
specified detail message. |
|
| Uses of String in java.rmi |
| Methods in java.rmi that return String | |
String |
RemoteException.getMessage()
Returns the detail message, including the message from the nested exception if there is one. |
static String[] |
Naming.list(String name)
Returns an array of the names bound in the registry. |
| Methods in java.rmi with parameters of type String | |
static Remote |
Naming.lookup(String name)
Returns a reference, a stub, for the remote object associated with the specified name. |
static void |
Naming.bind(String name,
Remote obj)
Binds the specified name to a remote object. |
static void |
Naming.unbind(String name)
Destroys the binding for the specified name that is associated with a remote object. |
static void |
Naming.rebind(String name,
Remote obj)
Rebinds the specified name to a new remote object. |
static String[] |
Naming.list(String name)
Returns an array of the names bound in the registry. |
| Constructors in java.rmi with parameters of type String | |
RemoteException(String s)
Constructs a RemoteException with the specified
detail message. |
|
RemoteException(String s,
Throwable ex)
Constructs a RemoteException with the specified
detail message and nested exception. |
|
ServerError(String s,
Error err)
Constructs a ServerError with the specified
detail message and nested error. |
|
NotBoundException(String s)
Constructs a NotBoundException with the specified
detail message. |
|
ConnectException(String s)
Constructs a ConnectException with the specified
detail message. |
|
ConnectException(String s,
Exception ex)
Constructs a ConnectException with the specified
detail message and nested exception. |
|
AlreadyBoundException(String s)
Constructs an AlreadyBoundException with the specified
detail message. |
|
ConnectIOException(String s)
Constructs a ConnectIOException with the specified
detail message. |
|
ConnectIOException(String s,
Exception ex)
Constructs a ConnectIOException with the specified
detail message and nested exception. |
|
UnmarshalException(String s)
Constructs an UnmarshalException with the specified
detail message. |
|
UnmarshalException(String s,
Exception ex)
Constructs an UnmarshalException with the specified
detail message and nested exception. |
|
UnexpectedException(String s)
Constructs an UnexpectedException with the specified
detail message. |
|
UnexpectedException(String s,
Exception ex)
Constructs a UnexpectedException with the specified
detail message and nested exception. |
|
AccessException(String s)
Constructs an AccessException with the specified
detail message. |
|
AccessException(String s,
Exception ex)
Constructs an AccessException with the specified
detail message and nested exception. |
|
StubNotFoundException(String s)
Constructs a StubNotFoundException with the specified
detail message and nested exception. |
|
StubNotFoundException(String s,
Exception ex)
Constructs a StubNotFoundException with the specified
detail message and nested exception. |
|
ServerException(String s)
Constructs a ServerException with the specified
detail message. |
|
ServerException(String s,
Exception ex)
Constructs a ServerException with the specified
detail message and nested exception. |
|
RMISecurityException(String name)
Deprecated. no replacement |
|
RMISecurityException(String name,
String arg)
Deprecated. no replacement |
|
UnknownHostException(String s)
Constructs an UnknownHostException with the specified
detail message. |
|
UnknownHostException(String s,
Exception ex)
Constructs an UnknownHostException with the specified
detail message and nested exception. |
|
NoSuchObjectException(String s)
Constructs a NoSuchObjectException with the specified
detail message. |
|
ServerRuntimeException(String s,
Exception ex)
Deprecated. no replacement |
|
MarshalException(String s)
Constructs a MarshalException with the specified
detail message. |
|
MarshalException(String s,
Exception ex)
Constructs a MarshalException with the specified
detail message and nested exception. |
|
| Uses of String in java.rmi.activation |
| Methods in java.rmi.activation that return String | |
String |
ActivationGroupDesc.getClassName()
Returns the group's class name (possibly null). |
String |
ActivationGroupDesc.getLocation()
Returns the group's code location. |
String |
ActivationGroupDesc.CommandEnvironment.getCommandPath()
Fetch the configured path-qualified java command name. |
String[] |
ActivationGroupDesc.CommandEnvironment.getCommandOptions()
Fetch the configured java command options. |
String |
ActivationException.getMessage()
Produces the message, include the message from the nested exception if there is one. |
String |
ActivationDesc.getClassName()
Returns the class name for the object specified by this descriptor. |
String |
ActivationDesc.getLocation()
Returns the code location for the object specified by this descriptor. |
| Methods in java.rmi.activation with parameters of type String | |
static ActivationID |
Activatable.exportObject(Remote obj,
String location,
MarshalledObject data,
boolean restart,
int port)
This exportObject method may be invoked explicitly
by an "activatable" object, that does not extend the
Activatable class, in order to both a) register
the object's activation descriptor, constructed from the supplied
location, and data, with
the activation system (so the object can be activated), and
b) export the remote object, obj, on a specific
port (if port=0, then an anonymous port is chosen). |
static ActivationID |
Activatable.exportObject(Remote obj,
String location,
MarshalledObject data,
boolean restart,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
This exportObject method may be invoked explicitly
by an "activatable" object, that does not extend the
Activatable class, in order to both a) register
the object's activation descriptor, constructed from the supplied
location, and data, with
the activation system (so the object can be activated), and
b) export the remote object, obj, on a specific
port (if port=0, then an anonymous port is chosen). |
| Constructors in java.rmi.activation with parameters of type String | |
Activatable(String location,
MarshalledObject data,
boolean restart,
int port)
Constructor used to register and export the object on a specified port (an anonymous port is chosen if port=0) . |
|
Activatable(String location,
MarshalledObject data,
boolean restart,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Constructor used to register and export the object on a specified port (an anonymous port is chosen if port=0) . |
|
ActivationGroupDesc(String className,
String location,
MarshalledObject data,
Properties overrides,
ActivationGroupDesc.CommandEnvironment&n | |