|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use String | |
com.jjt.utbeg | |
edu.utexas.beg.agi | |
edu.utexas.beg.agi.servlet | |
edu.utexas.beg.agi.servlet.page | |
java.applet | |
java.awt | |
java.awt.event | |
java.beans | |
java.io | |
java.lang | |
java.util |
Uses of String in com.jjt.utbeg |
Fields in com.jjt.utbeg declared as String | |
static String |
UserParameters.DEPTH_TO_SHALLOWEST_TARGET
|
static String |
UserParameters.DEPTH_OF_PRIMARY_TARGET
|
static String |
UserParameters.SMALLEST_FEATURE_TO_IMAGE
|
static String |
UserParameters.STACKING_BIN_SIZE
|
static String |
UserParameters.SOURCE_STATION_SPACING
|
static String |
UserParameters.RECEIVER_STATION_SPACING
|
static String |
UserParameters.SOURCE_LINE_SPACING
|
static String |
UserParameters.RECEIVER_LINE_SPACING
|
static String |
UserParameters.REFERENCE_SWATH_SIZE
|
static String |
UserParameters.NUMBER_OF_SOURCE_LINES
|
static String |
UserParameters.NUMBER_OF_RECEIVER_LINES
|
static String[] |
UserParameters.KNOWN_PARAMETER_NAMES
|
private String[] |
SwathViewer.imageURLs
|
Methods in com.jjt.utbeg that return String | |
protected abstract String |
SeismicDesignExerciseApplet.verifyInputParameters()
This method is called so that subclasses may verify that all their required parameters have been set. |
String[] |
SeismicDesignExerciseApplet.readAppletParameterArray(String arrayName)
Utility method for reading Applet parameters that make up an array sequence. |
protected String |
Applet1.verifyInputParameters()
This method is called so that subclasses may verify that all their required parameters have been set. |
private String[] |
Applet1.getSwathImageURLs()
Returns the URLs to be used to access the eight surface images for each depth. |
String |
UserParameters.getValueString(String parameterName)
Returns the value of a parameter represented by a String. |
static String[] |
UserParameters.getKnownParameterNames()
Returns a list of all parameter names known to be stored in UserParameters Objects. |
Methods in com.jjt.utbeg with parameters of type String | |
String[] |
SeismicDesignExerciseApplet.readAppletParameterArray(String arrayName)
Utility method for reading Applet parameters that make up an array sequence. |
double |
SeismicDesignExerciseApplet.getNumericAppletParameter(String parameterName)
Loads an Applet parameter as a number. |
double |
UserParameters.getDouble(String key,
double defaultValue)
Returns a double-precision floating point number for a given key. |
double |
UserParameters.getDouble(String key)
Returns a double-precision floating point number for a given key. |
int |
UserParameters.getInt(String key,
int defaultValue)
Returns an integer value for a parameter. |
protected Number |
UserParameters.getNumber(String key)
Internal method to return a Number parameter. |
int |
UserParameters.getInt(String key)
Returns an integer value for a parameter. |
void |
UserParameters.set(String key,
int value)
Sets the value of a parameter. |
void |
UserParameters.set(String key,
double value)
Sets the value of a parameter. |
boolean |
UserParameters.hasParameter(String parameterName)
Determines if a parameter value is stored in this collection. |
String |
UserParameters.getValueString(String parameterName)
Returns the value of a parameter represented by a String. |
Constructors in com.jjt.utbeg with parameters of type String | |
SwathViewer.SwathViewer(Applet imageLoader,
String[] imageURLs,
UserParameters parameters)
Creates a SwathViewer. |
Uses of String in edu.utexas.beg.agi |
Methods in edu.utexas.beg.agi that return String | |
String |
AGIServlet.getServletInfo()
Standard Servlet API method for describing who we are, and what we think we're doing here. |
private String |
AGIServlet.getNextPage(javax.servlet.http.HttpServletRequest request,
UserParameters parameters)
Determines the next page to show the user. |
Methods in edu.utexas.beg.agi with parameters of type String | |
protected void |
AGIServlet.returnErrorPage(String error,
String reason,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generic routine for reporting errors to the client browser when something goes wrong. |
private DynamicHTMLPage |
AGIServlet.findDynamicHTMLPage(String pagePath)
Searches the array of dynamic page Objects for one to handle the given path. |
Uses of String in edu.utexas.beg.agi.servlet |
Fields in edu.utexas.beg.agi.servlet declared as String | |
private String |
DynamicHTMLPage.filePath
The relative path of the URL that this page will support. |
Methods in edu.utexas.beg.agi.servlet with parameters of type String | |
boolean |
DynamicHTMLPage.canHandlePage(String filePath)
Determines if the given file path can be serviced by this Object. |
void |
DynamicHTMLPage.streamPage(String page,
UserParameters parameters,
PrintWriter outStream)
Streams HTML content to the client browser. |
protected abstract void |
DynamicHTMLPage.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
Streams the actual dynamic content for this page. |
Constructors in edu.utexas.beg.agi.servlet with parameters of type String | |
DynamicHTMLPage.DynamicHTMLPage(String filePath)
Creates a dynamic HTML page for handling the given file path. |
Uses of String in edu.utexas.beg.agi.servlet.page |
Methods in edu.utexas.beg.agi.servlet.page with parameters of type String | |
void |
Step3Page.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
|
void |
PostStep1Page.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
|
void |
PostStep2Page.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
|
void |
Step1Page.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
Writes the dynamic portion of this page as HTML. |
void |
Step2Page.streamDynamicContent(String page,
UserParameters parameters,
PrintWriter outStream)
|
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 | |
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(java.net.URL url,
String name)
Returns an Image object that can then be painted on
the screen. |
AudioClip |
Applet.getAudioClip(java.net.URL url,
String name)
Returns the AudioClip object specified by the
URL and name arguments. |
void |
Applet.play(java.net.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. |
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(java.net.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". |
Uses of String in java.awt |
Fields in java.awt declared as String | |
private String |
Component.name
A components name. |
(package private) static String |
Component.actionListenerK
Internal, constants for serialization |
(package private) static String |
Component.adjustmentListenerK
|
(package private) static String |
Component.componentListenerK
|
(package private) static String |
Component.containerListenerK
|
(package private) static String |
Component.focusListenerK
|
(package private) static String |
Component.itemListenerK
|
(package private) static String |
Component.keyListenerK
|
(package private) static String |
Component.mouseListenerK
|
(package private) static String |
Component.mouseMotionListenerK
|
(package private) static String |
Component.textListenerK
|
(package private) static String |
Component.ownedWindowK
|
(package private) static String |
Component.windowListenerK
|
(package private) static String |
Component.inputMethodListenerK
|
private static String |
Panel.base
|
private static String |
Canvas.base
|
(package private) static String[][] |
Cursor.cursorProperties
|
private static String |
Cursor.systemCustomCursorDirPrefix
|
private static String |
Cursor.systemCustomCursorPropertiesFile
|
private static String |
Cursor.CursorDotPrefix
|
private static String |
Cursor.DotFileSuffix
|
private static String |
Cursor.DotHotspotSuffix
|
private static String |
Cursor.DotNameSuffix
|
protected String |
Cursor.name
The user-visible name of the cursor. |
private String |
MenuComponent.name
The Menu Components name. |
(package private) static String |
MenuComponent.actionListenerK
|
(package private) static String |
MenuComponent.itemListenerK
|
private static String |
MenuBar.base
|
(package private) String |
TextComponent.text
The value of the text. |
(package private) String |
Checkbox.label
The label of the Checkbox. |
private static String |
Checkbox.base
|
private static String |
ScrollPane.base
|
private static String |
ScrollPaneAdjustable.SCROLLPANE_ONLY
|
private static String |
Scrollbar.base
|
private static String |
Choice.base
|
(package private) String |
Window.warningString
This represents the warning message that is to be displayed in a non secure window. |
private static String |
Window.base
|
(package private) String |
MenuItem.label
label is the label of a menu item. |
(package private) String |
MenuItem.actionCommand
This field indicates the command tha has been issued by a particular menu item. |
private static String |
MenuItem.base
|
private static String |
CheckboxMenuItem.base
|
(package private) String |
Frame.title
This is the title of the frame. |
private static String |
Frame.base
|
(package private) String |
Button.label
|
(package private) String |
Button.actionCommand
|
private static String |
Button.base
|
private static String |
TextField.base
|
private static String |
Menu.base
|
private static String |
PopupMenu.base
|
(package private) String |
Dialog.title
Specifies the title of the Dialog. |
private static String |
Dialog.base
|
(package private) String |
FileDialog.dir
|
(package private) String |
FileDialog.file
|
private static String |
FileDialog.base
|
private static String |
TextArea.base
|
private static String |
List.base
|
protected String |
Font.name
The logical name of this Font , as passed to the
constructor. |
private static String |
Font.systemBundle
|
(package private) String |
Label.text
The text of this label. |
private static String |
Label.base
|
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. |
Methods in java.awt that return String | |
(package private) String |
Component.constructComponentName()
Construct a name for this component. |
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. |
(package private) String |
Panel.constructComponentName()
Construct a name for this component. |
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 . |
(package private) String |
Canvas.constructComponentName()
Construct a name for this component. |
private static String |
Cursor.initCursorDir()
|
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. |
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. |
(package private) String |
MenuComponent.constructComponentName()
Construct a name for this MenuComponent. |
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. |
(package private) String |
MenuBar.constructComponentName()
Construct a name for this MenuComponent. |
abstract String |
GraphicsDevice.getIDstring()
Returns the identification string associated with this GraphicsDevice . |
String |
Point.toString()
Returns a string representation of this point and its location in the (x, y) coordinate space. |
String |
CheckboxGroup.toString()
Returns a string representation of this check box group, including the value of its current selection. |
String |
Graphics.toString()
Returns a String object representing this
Graphics object's value. |
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 |
GridLayout.toString()
Returns the string representation of this grid layout's values. |
String |
RenderingHints.toString()
Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object. |
private String |
RenderingHints.Key.getIdentity()
|
(package private) String |
Checkbox.constructComponentName()
Construct a name for this component. |
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 |
Color.toString()
Returns a string representation of this color. |
String |
SystemColor.toString()
Returns the String representation of this Color's values. |
String |
MenuShortcut.toString()
Returns an internationalized description of the MenuShortcut. |
protected String |
MenuShortcut.paramString()
|
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 |
Insets.toString()
Returns a string representation of this Insets object. |
(package private) String |
ScrollPane.constructComponentName()
Construct a name for this component. |
String |
ScrollPane.paramString()
|
String |
ScrollPaneAdjustable.toString()
|
String |
ScrollPaneAdjustable.paramString()
|
(package private) String |
Scrollbar.constructComponentName()
Construct a name for this component. |
protected String |
Scrollbar.paramString()
Returns the parameter string representing the state of this scroll bar. |
String |
AWTEvent.toString()
|
String |
AWTEvent.paramString()
Returns a string representing the state of this event. |
(package private) String |
Choice.constructComponentName()
Construct a name for this component. |
String |
Choice.getItem(int index)
Gets the string at the specified index in this Choice menu. |
(package private) String |
Choice.getItemImpl(int index)
|
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 |
FontMetrics.toString()
Returns a representation of this FontMetrics
object's values as a String . |
(package private) String |
Window.constructComponentName()
Construct a name for this component. |
String |
Window.getWarningString()
Gets the warning string that is displayed with this window. |
(package private) String |
MenuItem.constructComponentName()
Construct a name for this MenuComponent. |
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. |
(package private) String |
CheckboxMenuItem.constructComponentName()
Construct a name for this MenuComponent. |
String |
CheckboxMenuItem.paramString()
Returns the parameter string representing the state of this check box menu item. |
(package private) String |
Frame.constructComponentName()
Construct a name for this component. |
String |
Frame.getTitle()
Gets the title of the frame. |
protected String |
Frame.paramString()
Returns the parameter String of this Frame. |
(package private) String |
Button.constructComponentName()
Construct a name for this component. |
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. |
(package private) String |
TextField.constructComponentName()
Construct a name for this component. |
protected String |
TextField.paramString()
Returns the parameter string representing the state of this text field. |
(package private) String |
Menu.constructComponentName()
Construct a name for this MenuComponent. |
String |
Menu.paramString()
Gets the parameter string representing the state of this menu. |
(package private) String |
PopupMenu.constructComponentName()
Construct a name for this MenuComponent. |
String |
Rectangle.toString()
Returns a String representing this
Rectangle and its values. |
(package private) String |
Dialog.constructComponentName()
Construct a name for this component. |
String |
Dialog.getTitle()
Gets the title of the dialog. |
protected String |
Dialog.paramString()
Returns the parameter string representing the state of this dialog window. |
(package private) String |
FileDialog.constructComponentName()
Construct a name for this component. |
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. |
(package private) String |
TextArea.constructComponentName()
Construct a name for this component. |
protected String |
TextArea.paramString()
Returns the parameter string representing the state of this text area. |
(package private) String |
List.constructComponentName()
Construct a name for this component. |
String |
List.getItem(int index)
Gets the item associated with the specified index. |
(package private) String |
List.getItemImpl(int 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 |
GridBagLayout.toString()
Returns a string representation of this grid bag layout's values. |
String |
Font.getFamily()
Returns the family name of this Font . |
(package private) String |
Font.getFamily_NoClientCode()
|
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 |
FlowLayout.toString()
Returns a string representation of this FlowLayout
object and its values. |
(package private) String |
Label.constructComponentName()
Construct a name for this component. |
String |
Label.getText()
Gets the text of this label. |
protected String |
Label.paramString()
Returns the parameter string representing the state of this label. |
String |
BorderLayout.toString()
Returns a string representation of the state of this border layout. |
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 . |
static Cursor |
Cursor.getSystemCustomCursor(String name)
|
void |
MenuComponent.setName(String name)
Sets the name of the component to the specified string. |
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. |
void |
TextComponent.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
Checkbox.setLabel(String label)
Sets this check box's label to be the string argument. |
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. |
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. |
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. |
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. |
protected void |
AWTEventMulticaster.saveInternal(ObjectOutputStream s,
String k)
|
protected static void |
AWTEventMulticaster.save(ObjectOutputStream s,
String k,
EventListener l)
|
abstract Object |
Image.getProperty(String name,
java.awt.image.ImageObserver observer)
Gets a property of this image by name. |
void |
Choice.add(String item)
Adds an item to this Choice menu. |
void |
Choice.addItem(String item)
Adds an item to this Choice. |
private void |
Choice.addItemNoInvalidate(String item)
Adds an item to this Choice, but does not invalidate the 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. |
int |
FontMetrics.stringWidth(String str)
Returns the total advance width for showing the specified String in this Font . |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(String str,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(String str,
int beginIndex,
int limit,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(String str,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(String str,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
void |
Window.applyResourceBundle(String rbName)
Load the ResourceBundle with the given name using the default locale and apply its settings to this window. |
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. |
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. |
void |
Frame.setTitle(String title)
Sets the title for this frame to the specified string. |
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 |
TextField.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
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 |
Dialog.setTitle(String title)
Sets the title of the Dialog. |
void |
LayoutManager.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
FileDialog.setDirectory(String dir)
Sets the directory of this file dialog window to be the specified directory. |
(package private) void |
FileDialog.setDirectory_NoClientCode(String dir)
|
void |
FileDialog.setFile(String file)
Sets the selected file for this file dialog window to be the specified file. |
(package private) void |
FileDialog.setFile_NoClientCode(String file)
|
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) . |
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 |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
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 . |
java.awt.font.LineMetrics |
Font.getLineMetrics(String str,
java.awt.font.FontRenderContext frc)
Returns a Font.FontLineMetrics object created with the specified
String and FontRenderContext . |
java.awt.font.LineMetrics |
Font.getLineMetrics(String str,
int beginIndex,
int limit,
java.awt.font.FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments. |
java.awt.geom.Rectangle2D |
Font.getStringBounds(String str,
java.awt.font.FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext . |
java.awt.geom.Rectangle2D |
Font.getStringBounds(String str,
int beginIndex,
int limit,
java.awt.font.FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext . |
java.awt.font.GlyphVector |
Font.createGlyphVector(java.awt.font.FontRenderContext frc,
String str)
Returns a new GlyphVector object created with the
specified String and the specified
FontRenderContext . |
private static Hashtable |
Font.ffApply(String name,
Map attributes)
|
private static Hashtable |
Font.ffApply(String name,
int style,
float size,
Map attributes)
|
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
Label.setText(String text)
Sets the text for this label to the specified text. |
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . |
private Component |
BorderLayout.getChild(String key,
boolean ltr)
Get the component that corresponds to the given constraint location |
Constructors in java.awt with parameters of type String | |
AWTException.AWTException(String msg)
Constructs an instance of AWTException with the
specified detail message. |
|
IllegalComponentStateException.IllegalComponentStateException(String s)
Constructs an IllegalComponentStateException with the specified detail message. |
|
Cursor.Cursor(String name)
Creates a new custom cursor object with the specified name. Note: this constructor should only be used by AWT implementations as part of their support for custom cursors. |
|
TextComponent.TextComponent(String text)
Constructs a new text component initialized with the specified text. |
|
Checkbox.Checkbox(String label)
Creates a check box with the specified label. |
|
Checkbox.Checkbox(String label,
boolean state)
Creates a check box with the specified label and sets the specified state. |
|
Checkbox.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.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. |
|
EventDispatchThread.EventDispatchThread(String name,
EventQueue queue)
|
|
AWTPermission.AWTPermission(String name)
Creates a new AWTPermission with the specified name. |
|
AWTPermission.AWTPermission(String name,
String actions)
Creates a new AWTPermission object with the specified name. |
|
MenuItem.MenuItem(String label)
Constructs a new MenuItem with the specified label and no keyboard shortcut. |
|
MenuItem.MenuItem(String label,
MenuShortcut s)
Create a menu item with an associated keyboard shortcut. |
|
CheckboxMenuItem.CheckboxMenuItem(String label)
Create a check box menu item with the specified label. |
|
CheckboxMenuItem.CheckboxMenuItem(String label,
boolean state)
Create a check box menu item with the specified label and state. |
|
Frame.Frame(String title)
Constructs a new, initially invisible Frame object
with the specified title. |
|
Button.Button(String label)
Constructs a Button with the specified label. |
|
TextField.TextField(String text)
Constructs a new text field initialized with the specified text. |
|
TextField.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. |
|
Menu.Menu(String label)
Constructs a new menu with the specified label. |
|
Menu.Menu(String label,
boolean tearOff)
Constructs a new menu with the specified label, indicating whether the menu can be torn off. |
|
PopupMenu.PopupMenu(String label)
Creates a new popup menu with the specified name. |
|
Dialog.Dialog(Frame owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner frame and title. |
|
Dialog.Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner frame, title, and modality. |
|
Dialog.Dialog(Dialog owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner dialog and title. |
|
Dialog.Dialog(Dialog owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner dialog, title, and modality. |
|
FileDialog.FileDialog(Frame parent,
String title)
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog.FileDialog(Frame parent,
String title,
int mode)
Creates a file dialog window with the specified title for loading or saving a file. |
|
AWTError.AWTError(String msg)
Constructs an instance of AWTError with the specified
detail message. |
|
TextArea.TextArea(String text)
Constructs a new text area with the specified text. |
|
TextArea.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.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. |
|
Font.Font(String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
|
Font.Font(String name,
int style,
float sizePts)
|
|
Label.Label(String text)
Constructs a new label with the specified string of text, left justified. |
|
Label.Label(String text,
int alignment)
Constructs a new label that presents the specified string of text with the specified alignment. |
Uses of String in java.awt.event |
Fields in java.awt.event declared as String | |
(package private) String |
ActionEvent.actionCommand
The nonlocalized string that gives more details of what actually caused the event. |
Methods in java.awt.event that return String | |
String |
ComponentEvent.paramString()
Returns a parameter string identifying this event. |
String |
ContainerEvent.paramString()
Returns a parameter string identifying this event. |
String |
PaintEvent.paramString()
|
String |
TextEvent.paramString()
Returns a parameter string identifying this text 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. |
String |
MouseEvent.paramString()
Returns a parameter string identifying this event. |
String |
InputMethodEvent.paramString()
Returns a parameter string identifying this event. |
String |
WindowEvent.paramString()
Returns a parameter string identifying this event. |
String |
AdjustmentEvent.paramString()
|
String |
FocusEvent.paramString()
Returns a parameter string identifying this event. |
String |
InvocationEvent.paramString()
Returns a parameter string identifying this event. |
String |
ItemEvent.paramString()
Returns a parameter string identifying this item event. |
String |
ActionEvent.getActionCommand()
Returns the command string associated with this action. |
String |
ActionEvent.paramString()
Returns a parameter string identifying this action event. |
Constructors in java.awt.event with parameters of type String | |
ActionEvent.ActionEvent(Object source,
int id,
String command)
Constructs an ActionEvent object. |
|
ActionEvent.ActionEvent(Object source,
int id,
String command,
int modifiers)
Constructs an ActionEvent object with modifier keys. |
Uses of String in java.beans |
Fields in java.beans declared as String | |
private static String[] |
PropertyEditorManager.searchPath
|
static String |
DesignMode.PROPERTYNAME
the standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents. |
private String |
FeatureDescriptor.shortDescription
|
private String |
FeatureDescriptor.name
|
private String |
FeatureDescriptor.displayName
|
private String |
PropertyChangeEvent.propertyName
name of the property that changed. |
private String |
Introspector.defaultEventName
|
private String |
Introspector.defaultPropertyName
|
private static String[] |
Introspector.searchPath
|
Methods in java.beans that return String | |
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. |
static String[] |
PropertyEditorManager.getEditorSearchPath()
Gets the package names that will be searched for property editors. |
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. |
(package private) static String |
PropertyDescriptor.capitalize(String s)
|
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. |
String |
BeansAppletStub.getParameter(String name)
|
String |
PropertyChangeEvent.getPropertyName()
Gets the programmatic name of the property that was changed. |
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. |
private String |
Introspector.makeQualifiedMethodName(MethodDescriptor md)
|
Methods in java.beans with parameters of type String | |
void |
PropertyEditorSupport.setAsText(String text)
Sets the property value by parsing a given String. |
static void |
PropertyEditorManager.setEditorSearchPath(String[] path)
Change the list of package names that will be used for finding property editors. |
private static void |
PropertyEditorManager.load(Class targetType,
String name)
|
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. |
(package private) static String |
PropertyDescriptor.capitalize(String s)
|
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 |
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. |
void |
PropertyEditor.setAsText(String text)
Set the property value by parsing a given String. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
java.beans.beancontext.BeanContext beanContext)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
java.beans.beancontext.BeanContext beanContext,
AppletInitializer initializer)
Instantiate a bean. |
Applet |
BeansAppletContext.getApplet(String name)
|
void |
BeansAppletContext.showDocument(java.net.URL url,
String target)
|
void |
BeansAppletContext.showStatus(String status)
|
String |
BeansAppletStub.getParameter(String name)
|
Image |
SimpleBeanInfo.loadImage(String resourceName)
This is a utility method to help in loading icon images. |
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. |
private static java.lang.reflect.Method |
Introspector.internalFindMethod(Class start,
String methodName,
int argCount)
Internal support for finding a target methodName on a given class. |
(package private) static java.lang.reflect.Method |
Introspector.findMethod(Class cls,
String methodName,
int argCount)
Find a target methodName on a given class. |
(package private) static Object |
Introspector.instantiate(Class sibling,
String className)
Try to create an instance of a named class. |
Constructors in java.beans with parameters of type String | |
PropertyDescriptor.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.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.PropertyDescriptor(String propertyName,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
|
IndexedPropertyDescriptor.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.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.IndexedPropertyDescriptor(String propertyName,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.reflect.Method indexedGetter,
java.lang.reflect.Method indexedSetter)
This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
|
PropertyVetoException.PropertyVetoException(String mess,
PropertyChangeEvent evt)
Constructs a PropertyVetoException with a
detailed message. |
|
IntrospectionException.IntrospectionException(String mess)
Constructs an IntrospectionException with a
detailed message. |
|
PropertyChangeEvent.PropertyChangeEvent(Object source,
String propertyName,
Object oldValue,
Object newValue)
Constructs a new PropertyChangeEvent . |
|
EventSetDescriptor.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.EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName)
This constructor creates an EventSetDescriptor from scratch using string names. |
|
EventSetDescriptor.EventSetDescriptor(String eventSetName,
Class listenerType,
java.lang.reflect.Method[] listenerMethods,
java.lang.reflect.Method addListenerMethod,
java.lang.reflect.Method removeListenerMethod)
This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects. |
|
EventSetDescriptor.EventSetDescriptor(String eventSetName,
Class listenerType,
MethodDescriptor[] listenerMethodDescriptors,
java.lang.reflect.Method addListenerMethod,
java.lang.reflect.Method removeListenerMethod)
This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.MethodDescriptor and java.lang.Class objects. |
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. |
private String |
FilePermission.actions
the actions string. |
private String |
FilePermission.cpath
|
private static String |
FilePermission.RECURSIVE
|
private static String |
FilePermission.WILD
|
private static String |
FilePermission.SEP_RECURSIVE
|
private static String |
FilePermission.SEP_WILD
|
private String |
StringReader.str
|
String |
InvalidClassException.classname
|
private String |
PrintWriter.lineSeparator
Line separator string. |
private String |
ObjectStreamField.name
|
private String |
ObjectStreamField.typeString
|
private static String |
ObjectStreamField.OBJECT_TYPESTRING
|
private String |
ObjectStreamClass.name
|
(package private) String |
ObjectStreamClass.MethodSignature.signature
|
private String |
File.path
This abstract pathname's normalized pathname string. |
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. |
private static String |
File.tmpdir
|
protected String |
StringBufferInputStream.buffer
Deprecated. The string from which bytes are read. |
private String |
BufferedWriter.lineSeparator
Line separator string. |
private String |
SerializablePermission.actions
|
Methods in java.io that return String | |
String |
InputStreamReader.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
OutputStreamWriter.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
StreamTokenizer.toString()
Returns the string representation of the current stream token. |
private static String |
FilePermission.getActions(int mask)
Return the canonical string representation of the actions. |
String |
FilePermission.getActions()
Returns the "canonical string representation" of the actions. |
String |
WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one. |
String |
InvalidClassException.getMessage()
Produce the message and include the classname, if present. |
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:DataInputStream d = new DataInputStream(in); BufferedReader d = new BufferedReader(new InputStreamReader(in)); |
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 . |
(package private) String |
BufferedReader.readLine(boolean skipLF)
Read a line of text. |
String |
BufferedReader.readLine()
Read a line of text. |
String |
LineNumberReader.readLine()
Read a line of text. |
abstract String |
FileSystem.normalize(String path)
Convert the given pathname string to normal form. |
abstract String |
FileSystem.resolve(String parent,
String child)
Resolve the child pathname string against the parent. |
abstract String |
FileSystem.getDefaultParent()
Return the parent pathname string to be used when the parent-directory argument in one of the two-argument File constructors is the empty pathname. |
abstract String |
FileSystem.resolve(File f)
Resolve the given abstract pathname into absolute form. |
abstract String |
FileSystem.canonicalize(String path)
|
abstract String[] |
FileSystem.list(File f)
List the elements of the directory denoted by the given abstract pathname. |
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 |
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 |
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 |
RandomAccessFile.readLine()
Reads the next line of text from this file. |
String |
RandomAccessFile.readUTF()
Reads in a string from this file. |
String |
ObjectStreamClass.getName()
The name of the class described by this descriptor. |
String |
ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass. |
(package private) static String |
ObjectStreamClass.getSignature(Class clazz)
Compute the JVM signature for the class. |
(package private) static String |
ObjectStreamClass.getSignature(java.lang.reflect.Method meth)
|
(package private) static String |
ObjectStreamClass.getSignature(java.lang.reflect.Constructor cons)
|
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. |
private static String |
File.getTempDir()
|
String |
File.toString()
Returns the pathname string of this abstract pathname. |
String |
CharArrayWriter.toString()
Converts input data to a string. |
String |
StringWriter.toString()
Return the buffer's current value as a string. |
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. |
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 |
OutputStreamWriter.write(String str,
int off,
int len)
Write a portion of a string. |
private void |
FileInputStream.open(String name)
Opens the specified file for reading. |
private static int |
FilePermission.getMask(String actions)
Converts an actions String to an actions mask. |
private void |
ObjectOutputStream.outputString(String s)
Write a string to the stream. |
(package private) void |
ObjectOutputStream.writeTypeString(String typeString)
|
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 data)
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. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
boolean value)
Put the value of the named boolean field into the persistent field. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
char value)
Put the value of the named char field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
byte value)
Put the value of the named byte field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
short value)
Put the value of the named short field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
int value)
Put the value of the named int field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
long value)
Put the value of the named long field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
float value)
Put the value of the named float field into the persistent fields. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
double value)
Put the value of the named double field into the persistent field. |
void |
ObjectOutputStream.PutFieldImpl.put(String name,
Object value)
Put the value of the named Object field into the persistent field. |
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. |
private void |
FileOutputStream.open(String name)
Opens a file, with the specified name, for writing. |
private void |
FileOutputStream.openAppend(String name)
Opens a file, with the specified name, for appending. |
void |
FilterWriter.write(String str,
int off,
int len)
Write a portion of a string. |
abstract String |
FileSystem.normalize(String path)
Convert the given pathname string to normal form. |
abstract int |
FileSystem.prefixLength(String path)
Compute the length of this pathname string's prefix. |
abstract String |
FileSystem.resolve(String parent,
String child)
Resolve the child pathname string against the parent. |
abstract String |
FileSystem.canonicalize(String path)
|
abstract boolean |
FileSystem.createFileExclusively(String pathname)
Create a new empty file with the given pathname. |
String |
ByteArrayOutputStream.toString(String enc)
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding. |
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. |
(package private) static ObjectStreamField |
ObjectStreamField.constructSearchKey(String fieldName,
Class fieldType)
|
private void |
RandomAccessFile.open(String name,
boolean writeable)
Opens a file and returns the file descriptor. |
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. |
ObjectStreamField |
ObjectStreamClass.getField(String name)
Get the field of this class by name. |
(package private) ObjectStreamField |
ObjectStreamClass.getField(String name,
Class fieldType)
Get the field of this class by name and fieldType. |
(package private) static boolean |
ObjectStreamClass.compareClassNames(String streamName,
String localName,
char pkgSeparator)
|
private java.lang.reflect.Method |
ObjectStreamClass.getDeclaredMethod(String methodName,
Class[] args,
int requiredModifierMask,
int disallowedModifierMask)
|
private void |
PrintStream.write(String s)
|
void |
PrintStream.print(String s)
Print a string. |
void |
PrintStream.println(String x)
Print a String and then terminate the line. |
private static File |
File.generateFile(String prefix,
String suffix,
File dir)
|
private static boolean |
File.checkAndCreate(String filename,
SecurityManager sm)
|
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 |
CharArrayWriter.write(String str,
int off,
int len)
Write a portion of a string to the buffer. |
void |
BufferedWriter.write(String s,
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 |
StringWriter.write(String str)
Write a string. |
void |
StringWriter.write(String str,
int off,
int len)
Write a portion of a string. |
private Class |
ObjectInputStream.loadClass0(Class cl,
String classname)
|
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. |
boolean |
ObjectInputStream.GetFieldImpl.defaulted(String name)
Return true if the named field is defaulted and has no value in this stream. |
boolean |
ObjectInputStream.GetFieldImpl.get(String name,
boolean defvalue)
Get the value of the named boolean field from the persistent field. |
char |
ObjectInputStream.GetFieldImpl.get(String name,
char defvalue)
Get the value of the named char field from the persistent fields. |
byte |
ObjectInputStream.GetFieldImpl.get(String name,
byte defvalue)
Get the value of the named byte field from the persistent fields. |
short |
ObjectInputStream.GetFieldImpl.get(String name,
short defvalue)
Get the value of the named short field from the persistent fields. |
int |
ObjectInputStream.GetFieldImpl.get(String name,
int defvalue)
Get the value of the named int field from the persistent fields. |
long |
ObjectInputStream.GetFieldImpl.get(String name,
long defvalue)
Get the value of the named long field from the persistent fields. |
float |
ObjectInputStream.GetFieldImpl.get(String name,
float defvalue)
Get the value of the named float field from the persistent fields. |
double |
ObjectInputStream.GetFieldImpl.get(String name,
double defvalue)
Get the value of the named double field from the persistent field. |
Object |
ObjectInputStream.GetFieldImpl.get(String name,
Object defvalue)
Get the value of the named Object field from the persistent field. |
private ObjectStreamField |
ObjectInputStream.GetFieldImpl.checkField(String name,
Class type)
|
Constructors in java.io with parameters of type String | |
InputStreamReader.InputStreamReader(InputStream in,
String enc)
Create an InputStreamReader that uses the named character encoding. |
|
OutputStreamWriter.OutputStreamWriter(OutputStream out,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
FileWriter.FileWriter(String fileName)
|
|
FileWriter.FileWriter(String fileName,
boolean append)
|
|
FileInputStream.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. |
|
FilePermission.FilePermission(String path,
String actions)
Creates a new FilePermission object with the specified actions. |
|
FilePermission.FilePermission(String path,
int mask)
Creates a new FilePermission object using an action mask. |
|
IOException.IOException(String s)
Constructs an IOException with the specified detail
message. |
|
ObjectStreamException.ObjectStreamException(String classname)
Create an ObjectStreamException with the specified argument. |
|
WriteAbortedException.WriteAbortedException(String s,
Exception ex)
Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation. |
|
FileReader.FileReader(String fileName)
|
|
StringReader.StringReader(String s)
Create a new string reader. |
|
InterruptedIOException.InterruptedIOException(String s)
Constructs an InterruptedIOException with the
specified detail message. |
|
FileOutputStream.FileOutputStream(String name)
Creates an output file stream to write to the file with the specified name. |
|
FileOutputStream.FileOutputStream(String name,
boolean append)
Creates an output file stream to write to the file with the specified name . |
|
NotActiveException.NotActiveException(String reason)
Constructor to create a new NotActiveException with the reason given. |
|
InvalidClassException.InvalidClassException(String reason)
Report a InvalidClassException for the reason specified. |
|
InvalidClassException.InvalidClassException(String cname,
String reason)
|
|
StreamCorruptedException.StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown. |
|
FileNotFoundException.FileNotFoundException(String s)
Constructs a FileNotFoundException with the
specified detail message. |
|
FileNotFoundException.FileNotFoundException(String path,
String reason)
Constructs a FileNotFoundException with a detail message
consisting of the given pathname string followed by the given reason
string. |
|
EOFException.EOFException(String s)
Constructs an EOFException with the specified detail
message. |
|
UnsupportedEncodingException.UnsupportedEncodingException(String s)
detailed message |
|
NotSerializableException.NotSerializableException(String classname)
|
|
InvalidObjectException.InvalidObjectException(String reason)
Constructs an InvalidObjectException . |
|
CharConversionException.CharConversionException(String s)
provides a detailed message |
|
SyncFailedException.SyncFailedException(String desc)
Constructs an SyncFailedException with a detail message. |
|
ObjectStreamField.ObjectStreamField(String n,
Class clazz)
Create a Serializable field with the specified type. |
|
ObjectStreamField.ObjectStreamField(String n,
char t,
java.lang.reflect.Field f,
String ts)
Create an ObjectStreamField containing a reflected Field. |
|
ObjectStreamField.ObjectStreamField(String name,
boolean isPrimitive)
SearchKey constructor. |
|
RandomAccessFile.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.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. |
|
ObjectStreamClass.ObjectStreamClass(String n,
long s)
|
|
File.File(String pathname,
int prefixLength)
Internal constructor for already-normalized pathname strings. |
|
File.File(String pathname)
Creates a new File instance by converting the given
pathname string into an abstract pathname. |
|
File.File(String parent,
String child)
Creates a new File instance from a parent pathname string
and a child pathname string. |
|
File.File(File parent,
String child)
Creates a new File instance from a parent abstract
pathname and a child pathname string. |
|
StringBufferInputStream.StringBufferInputStream(String s)
Deprecated. Creates a string input stream to read data from the specified string. |
|
UTFDataFormatException.UTFDataFormatException(String s)
Constructs a UTFDataFormatException with the
specified detail message. |
|
SerializablePermission.SerializablePermission(String name)
Creates a new SerializablePermission with the specified name. |
|
SerializablePermission.SerializablePermission(String name,
String actions)
Creates a new SerializablePermission object with the specified name. |
Uses of String in java.lang |
Fields in java.lang declared as String | |
private String |
Throwable.detailMessage
Specific details about the Throwable. |
private static String[] |
ClassLoader.usr_paths
|
private static String[] |
ClassLoader.sys_paths
|
(package private) String |
ClassLoader.NativeLibrary.name
|
private static String |
Character.X_DATA
|
private static String |
Character.Y_DATA
|
private static String |
Character.A_DATA
|
private String |
Character.Subset.name
|
private static String[] |
SecurityManager.packageAccess
|
private static String[] |
SecurityManager.packageDefinition
|
(package private) String |
ThreadGroup.name
|
private String |
Package.pkgName
|
private String |
Package.specTitle
|
private String |
Package.specVersion
|
private String |
Package.specVendor
|
private String |
Package.implTitle
|
private String |
Package.implVersion
|
private String |
Package.implVendor
|
Methods in java.lang that return String | |
String |
Object.toString()
Returns a string representation of the object. |
String |
Throwable.getMessage()
Returns the errort 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 |
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. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
private static String[] |
ClassLoader.initializePath(String propname)
|
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. |
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 . |
private String |
Class.resolveName(String name)
Add a package name prefix if the name is not absolute Remove leading "/" if name is absolute |
String |
FloatingDecimal.toString()
|
String |
FloatingDecimal.toJavaFormatString()
|
String |
FDBigInt.toString()
|
String |
Character.toString()
Returns a String object representing this character's value. |
String |
Character.Subset.toString()
Returns the name of this subset. |
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. |
private static String[] |
SecurityManager.getPackages(String prop)
|
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. |
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. |
private static String |
Long.toUnsignedString(long i,
int shift)
Convert the integer to an unsigned number. |
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 |
Float.toString(float f)
Returns a String representation for the specified float value. |
String |
Float.toString()
Returns a String representation of this Float object. |
String |
ThreadGroup.getName()
Returns the name of this thread group. |
String |
ThreadGroup.toString()
Returns a string representation of this Thread group. |
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. |
private static String |
Package.getSystemPackage0(String name)
|
private static String[] |
Package.getSystemPackages0()
|
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 get TypeName methods of
the Boolean , Integer , and
Long primitive types. For example:
String classPath = System.getProperty("java.class.path","."); |
static String |
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library. |
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 |
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. |
private static String |
Integer.toUnsignedString(int i,
int shift)
Convert the integer to an unsigned number. |
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 |
Boolean.toString()
Returns a String object representing this Boolean's value. |
Methods in java.lang with parameters of type String | |
private void |
Thread.init(ThreadGroup g,
Runnable target,
String name)
Initialize a Thread. |
void |
Thread.setName(String name)
Changes the name of this thread to be equal to the argument name . |
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,
java.security.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. Prior to JDK1.2, this method loads a class from the local file system in a platform-dependent manner, and returns a class object that has no associated class loader. Since JDK1.2, this method loads the class through the system class loader(see ClassLoader.getSystemClassLoader() ). |
private Class |
ClassLoader.defineClass0(String name,
byte[] b,
int off,
int len)
|
private Class |
ClassLoader.findBootstrapClass(String name)
|
protected Class |
ClassLoader.findLoadedClass(String name)
Finds the class with the given name if it had been previously loaded through this class loader. |
java.net.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 java.net.URL |
ClassLoader.findResource(String name)
Finds the resource with the given name. |
static java.net.URL |
ClassLoader.getSystemResource(String name)
Find a resource of the specified name from the search path used to load classes. In JDK1.1, the search path used is that of the virtual machine's built-in class loader. Since JDK1.2, this method locates the resource through the system class loader (see ClassLoader.getSystemClassLoader() ). |
private static java.net.URL |
ClassLoader.getBootstrapResource(String name)
Find resources from the VM's built-in classloader. |
static Enumeration |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to load classes. |
private static Enumeration |
ClassLoader.getBootstrapResources(String name)
Find resources from the VM's built-in classloader. |
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. The search order is described in the documentation for ClassLoader.getSystemResource(String) . |
protected Package |
ClassLoader.definePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
java.net.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. |
private static String[] |
ClassLoader.initializePath(String propname)
|
(package private) static void |
ClassLoader.loadLibrary(Class fromClass,
String name,
boolean isAbsolute)
|
(package private) static long |
ClassLoader.findNative(ClassLoader loader,
String name)
|
(package private) void |
ClassLoader.NativeLibrary.load(String name)
|
(package private) long |
ClassLoader.NativeLibrary.find(String 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. |
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. |
private static Class |
Class.forName0(String name,
boolean initialize,
ClassLoader loader)
Called after security checks have been made. |
java.lang.reflect.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. |
java.lang.reflect.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. |
java.lang.reflect.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. |
java.lang.reflect.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. |
java.net.URL |
Class.getResource(String name)
Finds a resource with a given name. |
(package private) static Class |
Class.getPrimitiveClass(String name)
|
private String |
Class.resolveName(String name)
Add a package name prefix if the name is not absolute Remove leading "/" if name is absolute |
private java.lang.reflect.Field |
Class.getField0(String name,
int which)
|
private java.lang.reflect.Method |
Class.getMethod0(String name,
Class[] parameterTypes,
int which)
|
static FloatingDecimal |
FloatingDecimal.readJavaFormatString(String in)
|
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 . |
private Process |
Runtime.execInternal(String[] cmdarray,
String[] envp)
|
Process |
Runtime.exec(String command)
Executes the specified string command in a separate process. |
Process |
Runtime.exec(String command,
String[] envp)
Executes the specified string command in a separate process with the specified environment. |
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. |
void |
Runtime.load(String filename)
Loads the specified filename as a dynamic library. |
(package private) void |
Runtime.load0(Class fromClass,
String filename)
|
void |
Runtime.loadLibrary(String libname)
Loads the dynamic library with the specified library name. |
(package private) void |
Runtime.loadLibrary0(Class fromClass,
String libname)
|
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. |
private static String[] |
SecurityManager.getPackages(String prop)
|
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 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 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 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 . |
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. |
static boolean |
Compiler.compileClasses(String string)
Compiles all classes whose name matches the specified string. |
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. |
(package private) static Package |
Package.getSystemPackage(String name)
|
private static Package |
Package.defineSystemPackage(String iname,
String fn)
|
private static java.util.jar.Manifest |
Package.loadManifest(String fn)
|
private static String |
Package.getSystemPackage0(String 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 get TypeName methods of
the Boolean , Integer , and
Long primitive types. For example:
String classPath = System.getProperty("java.class.path","."); |
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. |
private static sun.io.ByteToCharConverter |
String.getBTCConverter(String encoding)
Returns a ByteToCharConverter that uses the specified
encoding. |
private static sun.io.CharToByteConverter |
String.getCTBConverter(String encoding)
Returns a CharToByteConverter that uses the specified
encoding. |
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 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 . |
static Boolean |
Boolean.valueOf(String s)
Returns the boolean 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" . |
private static boolean |
Boolean.toBoolean(String name)
|
Constructors in java.lang with parameters of type String | |
Throwable.Throwable(String message)
Constructs a new Throwable with the specified error
message. |
|
Exception.Exception(String s)
Constructs an Exception with the specified detail message. |
|
RuntimeException.RuntimeException(String s)
Constructs a RuntimeException with the specified
detail message. |
|
IllegalStateException.IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail message. |
|
Thread.Thread(String name)
Allocates a new Thread object. |
|
Thread.Thread(ThreadGroup group,
String name)
Allocates a new Thread object. |
|
Thread.Thread(Runnable target,
String name)
Allocates a new Thread object. |
|
Thread.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 . |
|
Error.Error(String s)
Constructs an Error with the specified detail message. |
|
ClassLoader.NativeLibrary.ClassLoader.NativeLibrary(Class fromClass,
String name)
|
|
NoSuchMethodException.NoSuchMethodException(String s)
Constructs a NoSuchMethodException with a detail message. |
|
IndexOutOfBoundsException.IndexOutOfBoundsException(String s)
Constructs an IndexOutOfBoundsException with the
specified detail message. |
|
StringIndexOutOfBoundsException.StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with
the specified detail message. |
|
LinkageError.LinkageError(String s)
Constructs a LinkageError with the specified detail
message. |
|
ClassFormatError.ClassFormatError(String s)
Constructs a ClassFormatError with the specified
detail message. |
|
UnsupportedClassVersionError.UnsupportedClassVersionError(String s)
Constructs a UnsupportedClassVersionError with
the specified detail message. |
|
ArrayStoreException.ArrayStoreException(String s)
Constructs an ArrayStoreException with the specified
detail message. |
|
Byte.Byte(String s)
Constructs a Byte object initialized to the value specified by the String parameter. |
|
VirtualMachineError.VirtualMachineError(String s)
Constructs a VirtualMachineError with the specified
detail message. |
|
UnknownError.UnknownError(String s)
Constructs an UnknownError with the specified detail
message. |
|
IllegalArgumentException.IllegalArgumentException(String s)
Constructs an IllegalArgumentException with the
specified detail message. |
|
IllegalThreadStateException.IllegalThreadStateException(String s)
Constructs an IllegalThreadStateException with the
specified detail message. |
|
IllegalMonitorStateException.IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the
specified detail message. |
|
Character.Subset.Character.Subset(String name)
Constructs a new Subset instance. |
|
Character.UnicodeBlock.Character.UnicodeBlock(String name)
|
|
Short.Short(String s)
Constructs a Short object initialized to the value specified by the String parameter. |
|
StackOverflowError.StackOverflowError(String s)
Constructs a StackOverflowError with the specified
detail message. |
|
IncompatibleClassChangeError.IncompatibleClassChangeError(String s)
Constructs an IncompatibleClassChangeError with the
specified detail message. |
|
InstantiationError.InstantiationError(String s)
Constructs an InstantiationError with the specified
detail message. |
|
ExceptionInInitializerError.ExceptionInInitializerError(String s)
Constructs an ExceptionInInitializerError with the specified detail message string. |
|
IllegalAccessError.IllegalAccessError(String s)
Constructs an IllegalAccessError with the specified
detail message. |
|
Double.Double(String s)
Constructs a newly allocated Double object that
represents the floating- point value of type double
represented by the string. |
|
OutOfMemoryError.OutOfMemoryError(String s)
Constructs an OutOfMemoryError with the specified
detail message. |
|
ClassCastException.ClassCastException(String s)
Constructs a ClassCastException with the specified
detail message. |
|
Long.Long(String s)
Constructs a newly allocated Long object that
represents the value represented by the string in decimal form. |
|
NullPointerException.NullPointerException(String s)
Constructs a NullPointerException with the specified
detail message. |
|
ArrayIndexOutOfBoundsException.ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class
with the specified detail message. |
|
Float.Float(String s)
Constructs a newly allocated Float object that
represents the floating-point value of type float
represented by the string. |
|
UnsupportedOperationException.UnsupportedOperationException(String message)
Constructs an UnsupportedOperationException with the specified detail message. |
|
ThreadGroup.ThreadGroup(String name)
Constructs a new thread group. |
|
ThreadGroup.ThreadGroup(ThreadGroup parent,
String name)
Creates a new thread group. |
|
VerifyError.VerifyError(String s)
Constructs an VerifyError with the specified detail message. |
|
InterruptedException.InterruptedException(String s)
Constructs an InterruptedException with the
specified detail message. |
|
NoSuchMethodError.NoSuchMethodError(String s)
Constructs a NoSuchMethodError with the
specified detail message. |
|
NoSuchFieldException.NoSuchFieldException(String s)
Constructor with a detail message. |
|
NegativeArraySizeException.NegativeArraySizeException(String s)
Constructs a NegativeArraySizeException with the
specified detail message. |
|
UnsatisfiedLinkError.UnsatisfiedLinkError(String s)
Constructs an UnsatisfiedLinkError with the
specified detail message. |
|
InstantiationException.InstantiationException(String s)
Constructs an InstantiationException with the
specified detail message. |
|
StringBuffer.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. |
|
InternalError.InternalError(String s)
Constructs an InternalError with the specified
detail message. |
|
ClassCircularityError.ClassCircularityError(String s)
Constructs a ClassCircularityError with the
specified detail message. |
|
IllegalAccessException.IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message. |
|
Package.Package(String name,
String spectitle,
String specversion,
String specvendor,
String impltitle,
String implversion,
String implvendor,
java.net.URL sealbase)
Construct a package instance with the specified version information. |
|
Package.Package(String name,
java.util.jar.Manifest man,
java.net.URL url)
|
|
ClassNotFoundException.ClassNotFoundException(String s)
Constructs a ClassNotFoundException with the
specified detail message. |
|
ClassNotFoundException.ClassNotFoundException(String s,
Throwable ex)
Constructs a ClassNotFoundException with the
specified detail message and optional exception that was
raised while loading the class. |
|
NumberFormatException.NumberFormatException(String s)
Constructs a NumberFormatException with the
specified detail message. |
|
String.String(String value)
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.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.String(byte[] bytes,
String enc)
Construct a new String by converting the specified array
of bytes using the specified character encoding. |
|
NoClassDefFoundError.NoClassDefFoundError(String s)
Constructs a NoClassDefFoundError with the specified
detail message. |
|
CloneNotSupportedException.CloneNotSupportedException(String s)
Constructs a CloneNotSupportedException with the
specified detail message. |
|
AbstractMethodError.AbstractMethodError(String s)
Constructs an AbstractMethodError with the specified
detail message. |
|
Integer.Integer(String s)
Constructs a newly allocated Integer object that
represents the value represented by the string. |
|
RuntimePermission.RuntimePermission(String name)
Creates a new RuntimePermission with the specified name. |
|
RuntimePermission.RuntimePermission(String name,
String actions)
Creates a new RuntimePermission object with the specified name. |
|
ArithmeticException.ArithmeticException(String s)
Constructs an ArithmeticException with the specified
detail message. |
|
SecurityException.SecurityException(String s)
Constructs a SecurityException with the specified
detail message. |
|
Boolean.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" . |
|
NoSuchFieldError.NoSuchFieldError(String s)
Constructs a NoSuchFieldException with the specified
detail message. |
Uses of String in java.util |
Fields in java.util declared as String | |
private String |
StringTokenizer.str
|
private String |
StringTokenizer.delimiters
|
private String |
PropertyPermission.actions
The actions string. |
private static String[] |
Calendar.FIELD_NAME
|
private String |
TimeZone.ID
The string identifier of this TimeZone . |
(package private) static String |
TimeZone.GMT_ID
|
private static String |
TimeZone.CUSTOM_ID
|
private static String |
Properties.keyValueSeparators
|
private static String |
Properties.strictKeyValueSeparators
|
private static String |
Properties.specialSaveChars
|
private static String |
Properties.whiteSpaceChars
|
private String |
MissingResourceException.className
The class name of the resource bundle requested by the user. |
private String |
MissingResourceException.key
The name of the specific resource requested by the user. |
private String |
Locale.language
|
private String |
Locale.country
|
private String |
Locale.variant
|
private static String[] |
Locale.isoLanguages
List of all 2-letter language codes currently defined in ISO 639. |
private static String |
Locale.compressedIsoLanguages
|
private static String[] |
Locale.isoCountries
List of all 2-letter country codes currently defined in ISO 3166. |
private static String |
Locale.compressedIsoCountries
|
private static String |
Locale.compressedCtry2LangMapping
|
private static String[] |
Date.wtb
|
Methods in java.util that return String | |
String |
EventObject.toString()
Returns a String representation of this EventObject. |
String |
AbstractMap.toString()
Returns a string representation of this map. |
String |
AbstractCollection.toString()
Returns a string representation of this collection. |
String |
StringTokenizer.nextToken()
Returns the next token from this string tokenizer. |
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string. |
(package private) static String |
PropertyPermission.getActions(int mask)
Return the canonical string representation of the actions. |
String |
PropertyPermission.getActions()
Returns the "canonical string representation" of the actions. |
String |
HashMap.Entry.toString()
|
String |
Calendar.toString()
Return a string representation of this calendar. |
String |
Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntry.toString()
|
String |
TimeZone.getID()
Gets the ID of this time zone. |
String |
TimeZone.getDisplayName()
Returns a name of this time zone suitable for presentation to the user in the default locale. |
String |
TimeZone.getDisplayName(Locale locale)
Returns a name of this time zone suitable for presentation to the user in the specified locale. |
String |
TimeZone.getDisplayName(boolean daylight,
int style)
Returns a name of this time zone suitable for presentation to the user in the default locale. |
String |
TimeZone.getDisplayName(boolean daylight,
int style,
Locale locale)
Returns a name of this time zone suitable for presentation to the user in the specified locale. |
static String[] |
TimeZone.getAvailableIDs(int rawOffset)
Gets the available IDs according to the given time zone offset. |
static String[] |
TimeZone.getAvailableIDs()
Gets all the available IDs supported. |
String |
Vector.toString()
Returns a string representation of this Vector, containing the String representation of each element. |
String |
SimpleTimeZone.toString()
Return a string representation of this time zone. |
String |
BitSet.toString()
Returns a string representation of this bit set. |
String |
Hashtable.toString()
Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters ", " (comma and space). |
private String |
Properties.loadConvert(String theString)
|
private String |
Properties.saveConvert(String theString)
|
String |
Properties.getProperty(String key)
Searches for the property with the specified key in this property list. |
String |
Properties.getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list. |
String |
ResourceBundle.getString(String key)
Get an object from a ResourceBundle. |
String[] |
ResourceBundle.getStringArray(String key)
Get an object from a ResourceBundle. |
String |
Hashtable.Entry.toString()
|
String |
MissingResourceException.getClassName()
Gets parameter passed by constructor. |
String |
MissingResourceException.getKey()
Gets parameter passed by constructor. |
static String[] |
Locale.getISOCountries()
Returns a list of all 2-letter country codes defined in ISO 3166. |
static String[] |
Locale.getISOLanguages()
Returns a list of all 2-letter language codes defined in ISO 639. |
(package private) static String[] |
Locale.getLanguagesForCountry(String country)
Given an ISO country code, returns an array of Strings containing the ISO codes of the languages spoken in that country. |
String |
Locale.getLanguage()
Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code. |
String |
Locale.getCountry()
Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code. |
String |
Locale.getVariant()
Returns the variant code for this locale. |
String |
Locale.toString()
Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars. |
String |
Locale.getISO3Language()
Returns a three-letter abbreviation for this locale's language. |
String |
Locale.getISO3Country()
Returns a three-letter abbreviation for this locale's country. |
String |
Locale.getDisplayLanguage()
Returns a name for the locale's language that is appropriate for display to the user. |
String |
Locale.getDisplayLanguage(Locale inLocale)
Returns a name for the locale's language that is appropriate for display to the user. |
String |
Locale.getDisplayCountry()
Returns a name for the locale's country that is appropriate for display to the user. |
String |
Locale.getDisplayCountry(Locale inLocale)
Returns a name for the locale's country that is appropriate for display to the user. |
String |
Locale.getDisplayVariant()
Returns a name for the locale's variant code that is appropriate for display to the user. |
String |
Locale.getDisplayVariant(Locale inLocale)
Returns a name for the locale's variant code that is appropriate for display to the user. |
String |
Locale.getDisplayName()
Returns a name for the locale that is appropriate for display to the user. |
String |
Locale.getDisplayName(Locale inLocale)
Returns a name for the locale that is appropriate for display to the user. |
private String[] |
Locale.getDisplayVariantArray(ResourceBundle bundle)
Return an array of the display names of the variant. |
private static String |
Locale.formatList(String[] patterns,
String[] stringList)
Format a list with an array of patterns. |
private static String[] |
Locale.composeList(java.text.MessageFormat format,
String[] list)
Given a list of strings, return a list shortened to three elements. |
private String |
Locale.toLowerCase(String str)
|
private String |
Locale.toUpperCase(String str)
|
private String |
Locale.findStringMatch(String[][] languages,
String desiredLanguage,
String fallbackLanguage)
|
String |
Date.toString()
Converts this Date object to a String
of the form:
dow mon dd hh:mm:ss zzz yyyy
where:
dow is the day of the week (Sun, Mon, Tue, Wed,
Thu, Fri, Sat). |
String |
Date.toLocaleString()
Deprecated. As of JDK version 1.1, replaced by DateFormat.format(Date date) . |
String |
Date.toGMTString()
Deprecated. As of JDK version 1.1, replaced by DateFormat.format(Date date) , using a
GMT TimeZone . |
String |
TreeMap.Entry.toString()
|
Methods in java.util with parameters of type String | |
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string. |
private static int |
PropertyPermission.getMask(String actions)
Converts an actions String to an actions mask. |
void |
TimeZone.setID(String ID)
Sets the time zone ID. |
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the TimeZone for the given ID. |
private static SimpleTimeZone |
TimeZone.parseCustomTimeZone(String id)
Parse a custom time zone identifier and return a corresponding zone. |
(package private) static TimeZone |
TimeZoneData.get(String ID)
|
Object |
Properties.setProperty(String key,
String value)
Calls the hashtable method put . |
private boolean |
Properties.continueLine(String line)
|
private String |
Properties.loadConvert(String theString)
|
private String |
Properties.saveConvert(String theString)
|
void |
Properties.save(OutputStream out,
String header)
Deprecated. This method does not throw an IOException if an I/O error occurs while saving the property list. As of JDK 1.2, the preferred way to save a properties list is via the store(OutputStream out,
String header) method. |
void |
Properties.store(OutputStream out,
String header)
Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable
for loading into a Properties table using the
load method. |
private static void |
Properties.writeln(BufferedWriter bw,
String s)
|
String |
Properties.getProperty(String key)
Searches for the property with the specified key in this property list. |
String |
Properties.getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list. |
String |
ResourceBundle.getString(String key)
Get an object from a ResourceBundle. |
String[] |
ResourceBundle.getStringArray(String key)
Get an object from a ResourceBundle. |
Object |
ResourceBundle.getObject(String key)
Get an object from a ResourceBundle. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName)
Get the appropriate ResourceBundle subclass. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale)
Get the appropriate ResourceBundle subclass. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale,
ClassLoader loader)
Get the appropriate ResourceBundle subclass. |
private static ResourceBundle |
ResourceBundle.findBundle(String baseName,
StringBuffer localeName,
ClassLoader loader,
boolean includeBase)
The internal routine that does the real work of finding and loading the right ResourceBundle for a given name and locale. |
protected abstract Object |
ResourceBundle.handleGetObject(String key)
Get an object from a ResourceBundle. |
private static void |
ResourceBundle.debug(String str)
|
Object |
ListResourceBundle.handleGetObject(String key)
Override of ResourceBundle, same semantics |
(package private) static String[] |
Locale.getLanguagesForCountry(String country)
Given an ISO country code, returns an array of Strings containing the ISO codes of the languages spoken in that country. |
private static String |
Locale.formatList(String[] patterns,
String[] stringList)
Format a list with an array of patterns. |
private static String[] |
Locale.composeList(java.text.MessageFormat format,
String[] list)
Given a list of strings, return a list shortened to three elements. |
private String |
Locale.toLowerCase(String str)
|
private String |
Locale.toUpperCase(String str)
|
private String |
Locale.findStringMatch(String[][] languages,
String desiredLanguage,
String fallbackLanguage)
|
Object |
PropertyResourceBundle.handleGetObject(String key)
Override of ResourceBundle, same semantics |
static long |
Date.parse(String s)
Deprecated. As of JDK version 1.1, replaced by DateFormat.parse(String s) . |
Constructors in java.util with parameters of type String | |
StringTokenizer.StringTokenizer(String str,
String delim,
boolean returnTokens)
Constructs a string tokenizer for the specified string. |
|
StringTokenizer.StringTokenizer(String str,
String delim)
Constructs a string tokenizer for the specified string. |
|
StringTokenizer.StringTokenizer(String str)
Constructs a string tokenizer for the specified string. |
|
PropertyPermission.PropertyPermission(String name,
String actions)
Creates a new PropertyPermission object with the specified name. |
|
TooManyListenersException.TooManyListenersException(String s)
Constructs a TooManyListenersException with the specified detail message. |
|
SimpleTimeZone.SimpleTimeZone(int rawOffset,
String ID)
Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID. |
|
SimpleTimeZone.SimpleTimeZone(int rawOffset,
String ID,
int startMonth,
int startDay,
int startDayOfWeek,
int startTime,
int endMonth,
int endDay,
int endDayOfWeek,
int endTime)
Construct a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, time to start and end the daylight time. |
|
SimpleTimeZone.SimpleTimeZone(int rawOffset,
String ID,
int startMonth,
int startDay,
int startDayOfWeek,
int startTime,
int endMonth,
int endDay,
int endDayOfWeek,
int endTime,
int dstSavings)
Constructor. |
|
MissingResourceException.MissingResourceException(String s,
String className,
String key)
Constructs a MissingResourceException with the specified information. |
|
ConcurrentModificationException.ConcurrentModificationException(String message)
Constructs a ConcurrentModificationException with the specified detail message. |
|
Locale.Locale(String language,
String country,
String variant)
Construct a locale from language, country, variant. |
|
Locale.Locale(String language,
String country)
Construct a locale from language, country. |
|
Date.Date(String s)
Deprecated. As of JDK version 1.1, replaced by DateFormat.parse(String s) . |
|
NoSuchElementException.NoSuchElementException(String s)
Constructs a NoSuchElementException , saving a reference
to the error message string s for later retrieval by the
getMessage method. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |