|
JSR 216 (Maintenance Release) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use String | |
java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
java.awt.color | Provides classes for color spaces. |
java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
java.awt.font | Provides classes and interface relating to fonts. |
java.awt.image | Provides classes for creating and modifying images. |
java.beans | Contains classes for run-time Java Beans support. |
java.io | Provides for system input and output through data streams, serialization and the file system. |
java.lang | Provides classes that are fundamental to the design of the Java programming language. |
java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects. |
java.math | Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). |
java.net | Provides the classes for implementing networking applications. |
java.rmi | Provides the RMI package. |
java.rmi.registry | Provides APIs related to the RMI registry. |
java.security | Provides the classes and interfaces for the security framework. |
java.security.acl | The classes and interfaces in this package have been superseded by classes in the java.security package. |
java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. |
java.security.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications. |
java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. |
java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
java.util.jar | Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. |
java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats. |
javax.microedition.io | Provides a simplified mechanism for applications to use various types of I/O protocols in resource-constrained environments. |
javax.microedition.pki | Certificates are used to authenticate information for secure Connections. |
javax.microedition.xlet | Provides interfaces used by applications and the application manager to communicate. |
javax.microedition.xlet.ixc | Provides facilities for inter-Xlet communication (IXC). |
javax.security.auth.x500 | This package contains the classes that should be used to store X500 Principal and X500 Private Crendentials in a Subject. |
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 that 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(URL url,
String name)
Returns an Image object that can then be painted on
the screen. |
AudioClip |
Applet.getAudioClip(URL url,
String name)
Returns the AudioClip object specified by the
URL and name arguments. |
void |
Applet.play(URL url,
String name)
Plays the audio clip given the URL and a specifier that is relative to it. |
String |
AppletStub.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
Applet |
AppletContext.getApplet(String name)
Finds and returns the applet in the document represented by this applet context with the given name. |
void |
AppletContext.showDocument(URL url,
String target)
Requests that the browser or applet viewer show the Web page indicated by the url argument. |
void |
AppletContext.showStatus(String status)
Requests that the argument string be displayed in the "status window". |
Uses of String in java.awt |
Fields in java.awt declared as String | |
protected String |
Font.name
The logical name of this Font , as passed to the
constructor. |
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). |
Methods in java.awt that return String | |
String |
Window.getWarningString()
Gets the warning string that is displayed with this window. |
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 |
TextComponent.getText()
Returns the text that is presented by this text component. |
String |
TextComponent.getSelectedText()
Returns the selected text from the text that is presented by this text component. |
protected String |
TextComponent.paramString()
Returns a string representing the state of this TextComponent . |
protected String |
TextField.paramString()
Returns a string representing the state of this TextField . |
protected String |
TextArea.paramString()
Returns a string representing the state of this TextArea . |
protected String |
Scrollbar.paramString()
Returns a string representing the state of this Scrollbar . |
String |
ScrollPane.paramString()
Returns a string representing the state of this ScrollPane . |
String |
SystemColor.toString()
Returns a string representation of this Color 's values. |
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 a string representing the state of this MenuItem . |
String |
Point.toString()
Returns a string representation of this point and its location in the (x, y) coordinate space. |
String |
MenuShortcut.toString()
Returns an internationalized description of the MenuShortcut. |
protected String |
MenuShortcut.paramString()
Returns the parameter string representing the state of this MenuShortcut. |
String |
MenuComponent.getName()
Gets the name of the menu component. |
protected String |
MenuComponent.paramString()
Returns a string representing the state of this MenuComponent . |
String |
MenuComponent.toString()
Returns a representation of this menu component as a string. |
String |
Rectangle.toString()
Returns a String representing this
Rectangle and its values. |
String |
Menu.paramString()
Returns a string representing the state of this Menu . |
String |
Insets.toString()
Returns a string representation of this Insets object. |
String |
GridLayout.toString()
Returns the string representation of this grid layout's values. |
String |
GridBagLayout.toString()
Returns a string representation of this grid bag layout's values. |
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 . |
abstract String |
GraphicsDevice.getIDstring()
Returns the identification string associated with this GraphicsDevice . |
String |
FontMetrics.toString()
Returns a representation of this FontMetrics
object's values as a String . |
String |
Graphics.toString()
Returns a String object representing this
Graphics object's value. |
String |
Frame.getTitle()
Gets the title of the frame. |
protected String |
Frame.paramString()
Returns a string representing the state of this Frame . |
String |
List.getItem(int index)
Gets the item associated with the specified index. |
String[] |
List.getItems()
Gets the items in the list. |
String |
List.getSelectedItem()
Gets the selected item on this scrolling list. |
String[] |
List.getSelectedItems()
Gets the selected items on this scrolling list. |
protected String |
List.paramString()
Returns the parameter string representing the state of this scrolling list. |
String |
Font.getFamily()
Returns the family name of this Font . |
String |
Font.getName()
Returns the logical name of this Font . |
String |
Font.toString()
Converts this Font object to a String
representation. |
protected String |
Event.paramString()
NOTE: The Event class is obsolete and is
available only for backwards compatilibility. |
String |
Event.toString()
NOTE: The Event class is obsolete and is
available only for backwards compatilibility. |
String |
FlowLayout.toString()
Returns a string representation of this FlowLayout
object and its values. |
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 a string representing the state of this FileDialog
window. |
String |
Dimension.toString()
Returns a string representation of the values of this Dimension object's height and
width fields. |
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 a string representing the state of this Container . |
String |
Color.toString()
Returns a string representation of this Color . |
String |
Label.getText()
Gets the text of this label. |
protected String |
Label.paramString()
Returns a string representing the state of this Label . |
String |
Checkbox.getLabel()
Gets the label of this check box. |
protected String |
Checkbox.paramString()
Returns a string representing the state of this Checkbox . |
String |
Choice.getItem(int index)
Gets the string at the specified index in this Choice menu. |
String |
Choice.getSelectedItem()
Gets a representation of the current choice as a string. |
protected String |
Choice.paramString()
Returns a string representing the state of this Choice
menu. |
String |
CheckboxGroup.toString()
Returns a string representation of this check box group, including the value of its current selection. |
String |
CardLayout.toString()
Returns a string representation of the state of this card layout. |
String |
Dialog.getTitle()
Gets the title of the dialog. |
protected String |
Dialog.paramString()
Returns a string representing the state of this dialog. |
String |
CheckboxMenuItem.paramString()
Returns a string representing the state of this CheckBoxMenuItem . |
String |
BorderLayout.toString()
Returns a string representation of the state of this border layout. |
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 a string representing the state of this Button . |
String |
AWTEvent.toString()
Returns a String representation of this object. |
String |
AWTEvent.paramString()
Returns a string representing the state of this Event . |
String |
AWTKeyStroke.toString()
Returns a string that displays and identifies this object's properties. |
Methods in java.awt with parameters of type String | |
abstract Image |
Toolkit.getImage(String filename)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG. |
abstract Image |
Toolkit.createImage(String filename)
Returns an image which gets pixel data from the specified file. |
static String |
Toolkit.getProperty(String key,
String defaultValue)
Gets a property with the specified key and default. |
void |
TextComponent.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
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 |
MenuItem.setLabel(String label)
Sets the label for this menu item to the specified label. |
void |
MenuItem.setActionCommand(String command)
Sets the command name of the action event that is fired by this menu item. |
void |
MenuComponent.setName(String name)
Sets the name of the component to the specified string. |
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 |
LayoutManager.addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name . |
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
abstract void |
Graphics2D.drawString(String str,
int x,
int y)
Draws the text given by the specified string, using this graphics context's current font and color. |
int |
FontMetrics.stringWidth(String str)
Returns the total advance width for showing the specified String in this Font . |
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 |
Frame.setTitle(String title)
Sets the title for this frame to the specified string. |
abstract Object |
Image.getProperty(String name,
ImageObserver observer)
Gets a property of this image by name. |
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. |
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. |
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
FileDialog.setDirectory(String dir)
Sets the directory of this file dialog window to be the specified directory. |
void |
FileDialog.setFile(String file)
Sets the selected file for this file dialog window to be the specified file. |
void |
Component.setName(String name)
Sets the name of the component to the specified string. |
protected void |
Component.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Support for reporting bound property changes for Object properties. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
static Color |
Color.decode(String nm)
Converts a String to an integer and returns the
specified opaque Color . |
static Color |
Color.getColor(String nm)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
Color v)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
int v)
Finds a color in the system properties. |
void |
Label.setText(String text)
Sets the text for this label to the specified text. |
void |
Checkbox.setLabel(String label)
Sets this check box's label to be the string argument. |
void |
Choice.add(String item)
Adds an item to this Choice menu. |
void |
Choice.addItem(String item)
Obsolete as of Java 2 platform v1.1. |
void |
Choice.insert(String item,
int index)
Inserts the item into this choice at the specified position. |
void |
Choice.remove(String item)
Removes the first occurrence of item
from the Choice menu. |
void |
Choice.select(String str)
Sets the selected item in this Choice menu
to be the item whose name is equal to the specified string. |
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . |
void |
CardLayout.show(Container parent,
String name)
Flips to the component that was added to this layout with the specified name , using addLayoutComponent . |
void |
Dialog.setTitle(String title)
Sets the title of the Dialog. |
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . |
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. |
protected void |
AWTEventMulticaster.saveInternal(ObjectOutputStream s,
String k)
|
protected static void |
AWTEventMulticaster.save(ObjectOutputStream s,
String k,
EventListener l)
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(String s)
Parses a string and returns an AWTKeyStroke . |
Constructors in java.awt with parameters of type String | |
TextField(String text)
Constructs a new text field initialized with the specified text. |
|
TextField(String text,
int columns)
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns. |
|
TextArea(String text)
Constructs a new text area with the specified text. |
|
TextArea(String text,
int rows,
int columns)
Constructs a new text area with the specified text, and with the specified number of rows and columns. |
|
TextArea(String text,
int rows,
int columns,
int scrollbars)
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified. |
|
MenuItem(String label)
Constructs a new MenuItem with the specified label and no keyboard shortcut. |
|
MenuItem(String label,
MenuShortcut s)
Create a menu item with an associated keyboard shortcut. |
|
PopupMenu(String label)
Creates a new popup menu with the specified name. |
|
Menu(String label)
Constructs a new menu with the specified label. |
|
Menu(String label,
boolean tearOff)
Constructs a new menu with the specified label, indicating whether the menu can be torn off. |
|
HeadlessException(String msg)
|
|
IllegalComponentStateException(String s)
Constructs an IllegalComponentStateException with the specified detail message. |
|
Frame(String title)
Constructs a new, initially invisible Frame object
with the specified title. |
|
Frame(String title,
GraphicsConfiguration gc)
Constructs a new, initially invisible Frame object
with the specified title and a
GraphicsConfiguration . |
|
Font(String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
|
FileDialog(Frame parent,
String title)
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog(Frame parent,
String title,
int mode)
Creates a file dialog window with the specified title for loading or saving a file. |
|
Label(String text)
Constructs a new label with the specified string of text, left justified. |
|
Label(String text,
int alignment)
Constructs a new label that presents the specified string of text with the specified alignment. |
|
Checkbox(String label)
Creates a check box with the specified label. |
|
Checkbox(String label,
boolean state)
Creates a check box with the specified label and sets the specified state. |
|
Checkbox(String label,
boolean state,
CheckboxGroup group)
Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group. |
|
Checkbox(String label,
CheckboxGroup group,
boolean state)
Creates a check box with the specified label, in the specified check box group, and set to the specified state. |
|
Dialog(Frame owner,
String title)
Constructs an initially invisible, non-modal Dialog with
the specified owner frame and title. |
|
Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the
specified owner frame, title, and modality. |
|
Dialog(Frame owner,
String title,
boolean modal,
GraphicsConfiguration gc)
Constructs an initially invisible Dialog with the specified owner frame, title, modality, and GraphicsConfiguration . |
|
CheckboxMenuItem(String label)
Create a check box menu item with the specified label. |
|
CheckboxMenuItem(String label,
boolean state)
Create a check box menu item with the specified label and state. |
|
Button(String label)
Constructs a Button with the specified label. |
|
AWTPermission(String name)
Creates a new AWTPermission with the specified name. |
|
AWTPermission(String name,
String actions)
Creates a new AWTPermission object with the specified name. |
|
AWTError(String msg)
Constructs an instance of AWTError with the specified
detail message. |
|
AWTException(String msg)
Constructs an instance of AWTException with the
specified detail message. |
Uses of String in java.awt.color |
Methods in java.awt.color that return String | |
String |
ColorSpace.getName(int idx)
Returns the name of the component given the component index. |
Uses of String in java.awt.datatransfer |
Methods in java.awt.datatransfer that return String | |
String |
DataFlavor.toString()
String representation of this DataFlavor and its
parameters. |
String |
DataFlavor.getMimeType()
Returns the MIME type string for this DataFlavor . |
String |
DataFlavor.getHumanPresentableName()
Returns the human presentable name for the data format that this DataFlavor represents. |
String |
DataFlavor.getPrimaryType()
Returns the primary MIME type for this DataFlavor . |
String |
DataFlavor.getSubType()
Returns the sub MIME type of this DataFlavor . |
protected String |
DataFlavor.normalizeMimeTypeParameter(String parameterName,
String parameterValue)
Deprecated. |
protected String |
DataFlavor.normalizeMimeType(String mimeType)
Deprecated. |
String |
Clipboard.getName()
Returns the name of this clipboard object. |
Methods in java.awt.datatransfer with parameters of type String | |
void |
DataFlavor.setHumanPresentableName(String humanPresentableName)
Sets the human presentable name for the data format that this DataFlavor represents. |
boolean |
DataFlavor.isMimeTypeEqual(String mimeType)
Returns whether the string representation of the MIME type passed in is equivalent to the MIME type of this DataFlavor . |
protected String |
DataFlavor.normalizeMimeTypeParameter(String parameterName,
String parameterValue)
Deprecated. |
protected String |
DataFlavor.normalizeMimeType(String mimeType)
Deprecated. |
Constructors in java.awt.datatransfer with parameters of type String | |
StringSelection(String data)
Creates a Transferable capable of transferring
the specified String . |
|
DataFlavor(Class representationClass,
String humanPresentableName)
Constructs a DataFlavor that represents a Java class. |
|
DataFlavor(String mimeType,
String humanPresentableName)
Constructs a DataFlavor that represents a
MimeType . |
|
Clipboard(String name)
Creates a clipboard object. |
Uses of String in java.awt.event |
Methods in java.awt.event that return String | |
String |
TextEvent.paramString()
Returns a parameter string identifying this text event. |
String |
PaintEvent.paramString()
|
String |
WindowEvent.paramString()
Returns a parameter string identifying this event. |
static String |
MouseEvent.getMouseModifiersText(int modifiers)
Returns a String describing the modifier keys and mouse buttons that were down during the event, such as "Shift", or "Ctrl+Shift". |
String |
MouseEvent.paramString()
Returns a parameter string identifying this event. |
static String |
KeyEvent.getKeyText(int keyCode)
Returns a String describing the keyCode, such as "HOME", "F1" or "A". |
static String |
KeyEvent.getKeyModifiersText(int modifiers)
Returns a String describing the modifier key(s), such as "Shift", or "Ctrl+Shift". |
String |
KeyEvent.paramString()
Returns a parameter string identifying this event. |
String |
ItemEvent.paramString()
Returns a parameter string identifying this item event. |
String |
InvocationEvent.paramString()
Returns a parameter string identifying this event. |
String |
MouseWheelEvent.paramString()
Returns a parameter string identifying this event. |
String |
FocusEvent.paramString()
Returns a parameter string identifying this event. |
String |
InputMethodEvent.paramString()
Returns a parameter string identifying this event. |
static String |
InputEvent.getModifiersExText(int modifiers)
Returns a String describing the extended modifier keys and mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift". |
String |
ContainerEvent.paramString()
Returns a parameter string identifying this event. |
String |
ComponentEvent.paramString()
Returns a parameter string identifying this event. |
String |
AdjustmentEvent.paramString()
|
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(Object source,
int id,
String command)
Constructs an ActionEvent object. |
|
ActionEvent(Object source,
int id,
String command,
int modifiers)
Constructs an ActionEvent object with modifier keys. |
|
ActionEvent(Object source,
int id,
String command,
long when,
int modifiers)
Constructs an ActionEvent object with the specified
modifier keys and timestamp. |
Uses of String in java.awt.font |
Methods in java.awt.font that return String | |
String |
TextHitInfo.toString()
Returns a String representing the hit for debugging
use only. |
Uses of String in java.awt.image |
Methods in java.awt.image that return String | |
String |
IndexColorModel.toString()
Returns the String representation of the contents of
this ColorModel object. |
String |
BufferedImage.toString()
Returns a String representation of this
BufferedImage object and its values. |
String[] |
BufferedImage.getPropertyNames()
Returns an array of names recognized by getProperty(String)
or null , if no property names are recognized. |
String |
DirectColorModel.toString()
Returns a String that represents this
DirectColorModel . |
String |
ColorModel.toString()
Returns the String representation of the contents of
this ColorModel object. |
Methods in java.awt.image with parameters of type String | |
Object |
BufferedImage.getProperty(String name,
ImageObserver observer)
Returns a property of the image by name. |
Object |
BufferedImage.getProperty(String name)
Returns a property of the image by name. |
Constructors in java.awt.image with parameters of type String | |
RasterFormatException(String s)
Constructs a new RasterFormatException with the
specified message. |
Uses of String in java.beans |
Methods in java.beans that return String | |
String |
PropertyChangeEvent.getPropertyName()
Gets the programmatic name of the property that was changed. |
Methods in java.beans with parameters of type String | |
void |
VetoableChangeSupport.fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
Report a vetoable property update to any registered listeners. |
void |
PropertyChangeSupport.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Report a bound property update to any registered listeners. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName)
Instantiate a JavaBean. |
Constructors in java.beans with parameters of type String | |
PropertyVetoException(String mess,
PropertyChangeEvent evt)
Constructs a PropertyVetoException with a
detailed message. |
|
PropertyChangeEvent(Object source,
String propertyName,
Object oldValue,
Object newValue)
Constructs a new PropertyChangeEvent . |
Uses of String in java.io |
Fields in java.io declared as 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. |
String |
StreamTokenizer.sval
If the current token is a word token, this field contains a string giving the characters of the word token. |
String |
InvalidClassException.classname
Name of the invalid class. |
Methods in java.io that return String | |
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 |
WriteAbortedException.getMessage()
Produce the message and include the message from the nested exception, if there is one. |
String |
ObjectStreamClass.getName()
The name of the class described by this descriptor. |
String |
ObjectStreamClass.toString()
Return a string describing this ObjectStreamClass. |
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 . |
String |
BufferedReader.readLine()
Read a line of text. |
String |
OutputStreamWriter.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
File.getName()
Returns the name of the file or directory denoted by this abstract pathname. |
String |
File.getParent()
Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory. |
String |
File.getPath()
Converts this abstract pathname into a pathname string. |
String |
File.getAbsolutePath()
Returns the absolute pathname string of this abstract pathname. |
String |
File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname. |
String[] |
File.list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. |
String[] |
File.list(FilenameFilter filter)
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
String |
File.toString()
Returns the pathname string of this abstract pathname. |
String |
FilePermission.getActions()
Returns the "canonical string representation" of the actions. |
String |
StreamTokenizer.toString()
Returns the string representation of the current stream token and the line number it occurs on. |
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 |
InputStreamReader.getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
String |
ObjectInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives. |
String |
ObjectInputStream.readUTF()
Reads a UTF format String. |
String |
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 |
InvalidClassException.getMessage()
Produce the message and include the classname, if present. |
String |
StringWriter.toString()
Return the buffer's current value as a string. |
String |
LineNumberReader.readLine()
Read a line of text. |
String |
RandomAccessFile.readLine()
Reads the next line of text from this file. |
String |
RandomAccessFile.readUTF()
Reads in a string from this file. |
String |
CharArrayWriter.toString()
Converts input data to a string. |
Methods in java.io with parameters of type String | |
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 |
BufferedWriter.write(String s,
int off,
int len)
Write a portion of a String. |
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. |
ObjectStreamField |
ObjectStreamClass.getField(String name)
Get the field of this class by name. |
void |
Writer.write(String str)
Write a string. |
void |
Writer.write(String str,
int off,
int len)
Write a portion of a string. |
abstract void |
ObjectOutputStream.PutField.put(String name,
boolean val)
Put the value of the named boolean field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
byte val)
Put the value of the named byte field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
char val)
Put the value of the named char field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
short val)
Put the value of the named short field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
int val)
Put the value of the named int field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
long val)
Put the value of the named long field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
float val)
Put the value of the named float field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
double val)
Put the value of the named double field into the persistent field. |
abstract void |
ObjectOutputStream.PutField.put(String name,
Object val)
Put the value of the named Object field into the persistent field. |
void |
ObjectOutputStream.writeBytes(String str)
Writes a String as a sequence of bytes. |
void |
ObjectOutputStream.writeChars(String str)
Writes a String as a sequence of chars. |
void |
ObjectOutputStream.writeUTF(String str)
Primitive data write of this String in UTF format. |
void |
OutputStreamWriter.write(String str,
int off,
int len)
Write a portion of a string. |
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 |
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 Java modified UTF-8 encoding in a machine-independent manner. |
boolean |
FilenameFilter.accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
String |
ByteArrayOutputStream.toString(String enc)
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding. |
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 val)
Get the value of the named boolean field from the persistent field. |
abstract byte |
ObjectInputStream.GetField.get(String name,
byte val)
Get the value of the named byte field from the persistent field. |
abstract char |
ObjectInputStream.GetField.get(String name,
char val)
Get the value of the named char field from the persistent field. |
abstract short |
ObjectInputStream.GetField.get(String name,
short val)
Get the value of the named short field from the persistent field. |
abstract int |
ObjectInputStream.GetField.get(String name,
int val)
Get the value of the named int field from the persistent field. |
abstract long |
ObjectInputStream.GetField.get(String name,
long val)
Get the value of the named long field from the persistent field. |
abstract float |
ObjectInputStream.GetField.get(String name,
float val)
Get the value of the named float field from the persistent field. |
abstract double |
ObjectInputStream.GetField.get(String name,
double val)
Get the value of the named double field from the persistent field. |
abstract Object |
ObjectInputStream.GetField.get(String name,
Object val)
Get the value of the named Object field from the persistent field. |
void |
PrintStream.print(String s)
Print a string. |
void |
PrintStream.println(String x)
Print a String and then terminate the line. |
protected Class |
ObjectInputStream.resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class. |
void |
StringWriter.write(String str)
Write a string. |
void |
StringWriter.write(String str,
int off,
int len)
Write a portion of a string. |
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. |
void |
FilterWriter.write(String str,
int off,
int len)
Write a portion of a string. |
void |
CharArrayWriter.write(String str,
int off,
int len)
Write a portion of a string to the buffer. |
Constructors in java.io with parameters of type String | |
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message. |
|
ObjectStreamException(String classname)
Create an ObjectStreamException with the specified argument. |
|
ObjectStreamField(String name,
Class type)
Create a Serializable field with the specified type. |
|
ObjectStreamField(String name,
Class type,
boolean unshared)
Creates an ObjectStreamField representing a serializable field with the given name and type. |
|
InvalidObjectException(String reason)
Constructs an InvalidObjectException . |
|
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. |
|
WriteAbortedException(String s,
Exception ex)
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort. |
|
InterruptedIOException(String s)
Constructs an InterruptedIOException with the
specified detail message. |
|
StringReader(String s)
Create a new string reader. |
|
FileWriter(String fileName)
Constructs a FileWriter object given a file name. |
|
FileWriter(String fileName,
boolean append)
Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written. |
|
FileNotFoundException(String s)
Constructs a FileNotFoundException with the
specified detail message. |
|
UTFDataFormatException(String s)
Constructs a UTFDataFormatException with the
specified detail message. |
|
OutputStreamWriter(OutputStream out,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
File(String pathname)
Creates a new File instance by converting the given
pathname string into an abstract pathname. |
|
File(String parent,
String child)
Creates a new File instance from a parent pathname string
and a child pathname string. |
|
File(File parent,
String child)
Creates a new File instance from a parent abstract
pathname and a child pathname string. |
|
FilePermission(String path,
String actions)
Creates a new FilePermission object with the specified actions. |
|
FileReader(String fileName)
Creates a new FileReader, given the name of the file to read from. |
|
CharConversionException(String s)
This provides a detailed message. |
|
EOFException(String s)
Constructs an EOFException with the specified detail
message. |
|
NotActiveException(String reason)
Constructor to create a new NotActiveException with the reason given. |
|
StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown. |
|
SyncFailedException(String desc)
Constructs an SyncFailedException with a detail message. |
|
FileOutputStream(String name)
Creates an output file stream to write to the file with the specified name. |
|
FileOutputStream(String name,
boolean append)
Creates an output file stream to write to the file with the specified name . |
|
InputStreamReader(InputStream in,
String enc)
Create an InputStreamReader that uses the named character encoding. |
|
PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Create a new print stream. |
|
IOException(String s)
Constructs an IOException with the specified detail
message. |
|
NotSerializableException(String classname)
Constructs a NotSerializableException object with message string. |
|
SerializablePermission(String name)
Creates a new SerializablePermission with the specified name. |
|
SerializablePermission(String name,
String actions)
Creates a new SerializablePermission object with the specified name. |
|
InvalidClassException(String reason)
Report a InvalidClassException for the reason specified. |
|
InvalidClassException(String cname,
String reason)
Constructs an InvalidClassException object. |
|
RandomAccessFile(String name,
String mode)
Creates a random access file stream to read from, and optionally to write to, a file with the specified name. |
|
RandomAccessFile(File file,
String mode)
Creates a random access file stream to read from, and optionally to write to, the file specified by the File argument. |
Uses of String in java.lang |
Methods in java.lang that return String | |
static String |
Double.toString(double d)
Returns a string representation of the double
argument. |
String |
Double.toString()
Returns a string representation of this Double object. |
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. |
static String |
Boolean.toString(boolean b)
Returns a String object representing the specified boolean. |
String |
Boolean.toString()
Returns a String object representing this Boolean's value. |
static String |
Long.toString(long i,
int radix)
Returns a string representation of the first argument in the radix specified by the second argument. |
static String |
Long.toHexString(long i)
Returns a string representation of the long
argument as an unsigned integer in base 16. |
static String |
Long.toOctalString(long i)
Returns a string representation of the long
argument as an unsigned integer in base 8. |
static String |
Long.toBinaryString(long i)
Returns a string representation of the long
argument as an unsigned integer in base 2. |
static String |
Long.toString(long i)
Returns a String object representing the specified
long . |
String |
Long.toString()
Returns a String object representing this
Long 's value. |
String |
Character.toString()
Returns a String object representing this
Character 's value. |
static String |
Character.toString(char c)
Returns a String object representing the
specified char . |
String |
StackTraceElement.getFileName()
Returns the name of the source file containing the execution point represented by this stack trace element. |
String |
StackTraceElement.getClassName()
Returns the fully qualified name of the class containing the execution point represented by this stack trace element. |
String |
StackTraceElement.getMethodName()
Returns the name of the method containing the execution point represented by this stack trace element. |
String |
StackTraceElement.toString()
Returns a string representation of this stack trace element. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
String |
Class.toString()
Converts the object to a string. |
String |
Class.getName()
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String. |
String |
Package.getName()
Return the name of this package. |
String |
Package.getSpecificationTitle()
Return the title of the specification that this package implements. |
String |
Package.getSpecificationVersion()
Returns the version number of the specification that this package implements. |
String |
Package.getSpecificationVendor()
Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package. |
String |
Package.getImplementationTitle()
Return the title of this package. |
String |
Package.getImplementationVersion()
Return the version of this implementation. |
String |
Package.getImplementationVendor()
Returns the name of the organization, vendor or company that provided this implementation. |
String |
Package.toString()
Returns the string representation of this Package. |
static String |
Byte.toString(byte b)
Returns a new String object representing the
specified byte . |
String |
Byte.toString()
Returns a String object representing this
Byte 's value. |
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. |
static String |
Integer.toString(int i,
int radix)
Returns a string representation of the first argument in the radix specified by the second argument. |
static String |
Integer.toHexString(int i)
Returns a string representation of the integer argument as an unsigned integer in base 16. |
static String |
Integer.toOctalString(int i)
Returns a string representation of the integer argument as an unsigned integer in base 8. |
static String |
Integer.toBinaryString(int i)
Returns a string representation of the integer argument as an unsigned integer in base 2. |
static String |
Integer.toString(int i)
Returns a String object representing the
specified integer. |
String |
Integer.toString()
Returns a String object representing this
Integer 's value. |
String |
String.substring(int beginIndex)
Returns a new string that is a substring of this string. |
String |
String.substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string. |
String |
String.concat(String str)
Concatenates the specified string to the end of this string. |
String |
String.replace(char oldChar,
char newChar)
Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar . |
String |
String.toLowerCase(Locale locale)
Converts all of the characters in this String to lower
case using the rules of the given Locale . |
String |
String.toLowerCase()
Converts all of the characters in this String to lower
case using the rules of the default locale. |
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. |
String |
String.trim()
Returns a copy of the string, with leading and trailing whitespace omitted. |
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 represents the character sequence in the array specified. |
static String |
String.copyValueOf(char[] data)
Returns a String that represents the character sequence in the array specified. |
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. |
String |
CharSequence.toString()
Returns a string containing the characters in this sequence in the same order as this sequence. |
String |
Object.toString()
Returns a string representation of the 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. |
String |
ThreadGroup.getName()
Returns the name of this thread group. |
String |
ThreadGroup.toString()
Returns a string representation of this Thread group. |
String |
Throwable.getMessage()
Returns the detail message string of this throwable. |
String |
Throwable.getLocalizedMessage()
Creates a localized description of this throwable. |
String |
Throwable.toString()
Returns a short description of this throwable. |
static String |
Float.toString(float f)
Returns a string representation of the float
argument. |
String |
Float.toString()
Returns a string representation of this Float object. |
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.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library. |
Methods in java.lang with parameters of type String | |
static Double |
Double.valueOf(String s)
Returns a Double object holding the
double value represented by the argument string
s . |
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 short |
Short.parseShort(String s)
Parses the string argument as a signed decimal short . |
static short |
Short.parseShort(String s,
int radix)
Parses the string argument as a signed short in
the radix specified by the second argument. |
static Short |
Short.valueOf(String s,
int radix)
Returns a Short object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Short |
Short.valueOf(String s)
Returns a Short object holding the
value given by the specified String . |
static Short |
Short.decode(String nm)
Decodes a String into a Short . |
static Boolean |
Boolean.valueOf(String s)
Returns a Boolean with a value represented by the
specified String. |
static boolean |
Boolean.getBoolean(String name)
Returns true if and only if the system property
named by the argument exists and is equal to the string
"true" . |
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 Long object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Long |
Long.valueOf(String s)
Returns a Long object holding 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. |
Class |
ClassLoader.loadClass(String name)
Loads the class with the specified name. |
protected Class |
ClassLoader.loadClass(String name,
boolean resolve)
Loads the class with the specified name. |
protected Class |
ClassLoader.findClass(String name)
Finds the specified class. |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len)
Converts an array of bytes into an instance of class Class. |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
ProtectionDomain protectionDomain)
Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain. |
protected Class |
ClassLoader.findSystemClass(String name)
Finds a class with the specified name, loading it if necessary. |
protected Class |
ClassLoader.findLoadedClass(String name)
Returns the class with the given name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that name. |
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 URL |
ClassLoader.findResource(String name)
Finds the resource with the given name. |
protected Enumeration |
ClassLoader.findResources(String name)
Returns an enumeration of URL objects
representing all the resources with the given name. |
static URL |
ClassLoader.getSystemResource(String name)
Find a resource of the specified name from the search path used to load classes. |
static Enumeration |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to load classes. |
InputStream |
ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource. |
static InputStream |
ClassLoader.getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path used to load classes. |
protected Package |
ClassLoader.definePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
URL sealBase)
Defines a package by name in this ClassLoader. |
protected Package |
ClassLoader.getPackage(String name)
Returns a Package that has been defined by this class loader or any of its ancestors. |
protected String |
ClassLoader.findLibrary(String libname)
Returns the absolute path name of a native library. |
void |
ClassLoader.setPackageAssertionStatus(String packageName,
boolean enabled)
Sets the package default assertion status for the named package. |
void |
ClassLoader.setClassAssertionStatus(String className,
boolean enabled)
Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein. |
static Class |
Class.forName(String className)
Returns the Class object associated with the class or
interface with the given string name. |
static Class |
Class.forName(String name,
boolean initialize,
ClassLoader loader)
Returns the Class object associated with the class or
interface with the given string name, using the given class loader. |
Field |
Class.getField(String name)
Returns a Field object that reflects the specified public
member field of the class or interface represented by this
Class object. |
Method |
Class.getMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
Field |
Class.getDeclaredField(String name)
Returns a Field object that reflects the specified declared
field of the class or interface represented by this Class
object. |
Method |
Class.getDeclaredMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified
declared method of the class or interface represented by this
Class object. |
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name. |
URL |
Class.getResource(String name)
Finds a resource with a given name. |
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 instance. |
static byte |
Byte.parseByte(String s)
Parses the string argument as a signed decimal byte . |
static byte |
Byte.parseByte(String s,
int radix)
Parses the string argument as a signed byte in the
radix specified by the second argument. |
static Byte |
Byte.valueOf(String s,
int radix)
Returns a Byte object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Byte |
Byte.valueOf(String s)
Returns a Byte object holding the value
given by the specified String . |
static Byte |
Byte.decode(String nm)
Decodes a String into a Byte . |
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. |
int |
StringBuffer.indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring. |
int |
StringBuffer.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 |
StringBuffer.lastIndexOf(String str)
Returns the index within this string of the rightmost occurrence of the specified substring. |
int |
StringBuffer.lastIndexOf(String str,
int fromIndex)
Returns the index within this string of the last occurrence of the specified substring. |
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 an Integer object holding the value
extracted from the specified String when parsed
with the radix given by the second argument. |
static Integer |
Integer.valueOf(String s)
Returns an Integer object holding 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 . |
void |
SecurityManager.checkExec(String cmd)
Throws a SecurityException if the
calling thread is not allowed to create a subprocess. |
void |
SecurityManager.checkLink(String lib)
Throws a SecurityException if the
calling thread is not allowed to dynamic link the library code
specified by the string argument file. |
void |
SecurityManager.checkRead(String file)
Throws a SecurityException if the
calling thread is not allowed to read the file specified by the
string argument. |
void |
SecurityManager.checkRead(String file,
Object context)
Throws a SecurityException if the
specified security context is not allowed to read the file
specified by the string argument. |
void |
SecurityManager.checkWrite(String file)
Throws a SecurityException if the
calling thread is not allowed to write to the file specified by
the string argument. |
void |
SecurityManager.checkDelete(String file)
Throws a SecurityException if the
calling thread is not allowed to delete the specified file. |
void |
SecurityManager.checkConnect(String host,
int port)
Throws a SecurityException if the
calling thread is not allowed to open a socket connection to the
specified host and port number. |
void |
SecurityManager.checkConnect(String host,
int port,
Object context)
Throws a SecurityException if the
specified security context is not allowed to open a socket
connection to the specified host and port number. |
void |
SecurityManager.checkAccept(String host,
int port)
Throws a SecurityException if the
calling thread is not permitted to accept a socket connection from
the specified host and port number. |
void |
SecurityManager.checkPropertyAccess(String key)
Throws a SecurityException if the
calling thread is not allowed to access the system property with
the specified key name. |
void |
SecurityManager.checkPackageAccess(String pkg)
Throws a SecurityException if the
calling thread is not allowed to access the package specified by
the argument. |
void |
SecurityManager.checkPackageDefinition(String pkg)
Throws a SecurityException if the
calling thread is not allowed to define classes in the package
specified by the argument. |
void |
SecurityManager.checkSecurityAccess(String target)
Determines whether the permission with the specified permission target name should be granted or denied. |
byte[] |
String.getBytes(String charsetName)
Encodes this String into a sequence of bytes using the named charset, 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 differences. |
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, searching backward starting at the specified index. |
String |
String.concat(String str)
Concatenates the specified string to the end of this string. |
Process |
Runtime.exec(String command)
Executes the specified string command in a separate process. |
Process |
Runtime.exec(String cmd,
String[] envp)
Executes the specified string command in a separate process with the specified environment. |
Process |
Runtime.exec(String command,
String[] envp,
File dir)
Executes the specified string command in a separate process with the specified environment and working directory. |
Process |
Runtime.exec(String[] cmdarray)
Executes the specified command and arguments in a separate process. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process with the specified environment. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp,
File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory. |
void |
Runtime.load(String filename)
Loads the specified filename as a dynamic library. |
void |
Runtime.loadLibrary(String libname)
Loads the dynamic library with the specified library name. |
void |
Thread.setName(String name)
Changes the name of this thread to be equal to the argument name . |
static Float |
Float.valueOf(String s)
Returns a Float object holding the
float value represented by the argument string
s . |
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 Float . |
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 void |
System.load(String filename)
Loads a code file with the specified filename from the local file system as a dynamic library. |
static void |
System.loadLibrary(String libname)
Loads the system library specified by the libname
argument. |
static String |
System.mapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library. |
static boolean |
Compiler.compileClasses(String string)
Compiles all classes whose name matches the specified string. |
Constructors in java.lang with parameters of type String | |
Double(String s)
Constructs a newly allocated Double object that
represents the floating-point value of type double
represented by the string. |
|
Character.Subset(String name)
Constructs a new Subset instance. |
|
Error(String message)
Constructs a new error with the specified detail message. |
|
Error(String message,
Throwable cause)
Constructs a new error with the specified detail message and cause. |
|
Short(String s)
Constructs a newly allocated Short object that
represents the short value indicated by the
String parameter. |
|
LinkageError(String s)
Constructs a LinkageError with the specified detail
message. |
|
Boolean(String s)
Allocates a Boolean object representing the value
true if the string argument is not null
and is equal, ignoring case, to the string "true" . |
|
NoSuchMethodError(String s)
Constructs a NoSuchMethodError with the
specified detail message. |
|
Long(String s)
Constructs a newly allocated Long object that
represents the long value indicated by the
String parameter. |
|
ClassNotFoundException(String s)
Constructs a ClassNotFoundException with the
specified detail message. |
|
ClassNotFoundException(String s,
Throwable ex)
Constructs a ClassNotFoundException with the
specified detail message and optional exception that was
raised while loading the class. |
|
AbstractMethodError(String s)
Constructs an AbstractMethodError with the specified
detail message. |
|
IndexOutOfBoundsException(String s)
Constructs an IndexOutOfBoundsException with the
specified detail message. |
|
RuntimePermission(String name)
Creates a new RuntimePermission with the specified name. |
|
RuntimePermission(String name,
String actions)
Creates a new RuntimePermission object with the specified name. |
|
VirtualMachineError(String s)
Constructs a VirtualMachineError with the specified
detail message. |
|
UnsupportedOperationException(String message)
Constructs an UnsupportedOperationException with the specified detail message. |
|
CloneNotSupportedException(String s)
Constructs a CloneNotSupportedException with the
specified detail message. |
|
IllegalThreadStateException(String s)
Constructs an IllegalThreadStateException with the
specified detail message. |
|
NoClassDefFoundError(String s)
Constructs a NoClassDefFoundError with the specified
detail message. |
|
NullPointerException(String s)
Constructs a NullPointerException with the specified
detail message. |
|
Exception(String message)
Constructs a new exception with the specified detail message. |
|
Exception(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
ArithmeticException(String s)
Constructs an ArithmeticException with the specified
detail message. |
|
OutOfMemoryError(String s)
Constructs an OutOfMemoryError with the specified
detail message. |
|
IncompatibleClassChangeError(String s)
Constructs an IncompatibleClassChangeError with the
specified detail message. |
|
VerifyError(String s)
Constructs an VerifyError with the specified detail message. |
|
StackOverflowError(String s)
Constructs a StackOverflowError with the specified
detail message. |
|
Byte(String s)
Constructs a newly allocated Byte object that
represents the byte value indicated by the
String parameter. |
|
IllegalStateException(String s)
Constructs an IllegalStateException with the specified detail message. |
|
NegativeArraySizeException(String s)
Constructs a NegativeArraySizeException with the
specified detail message. |
|
ClassCircularityError(String s)
Constructs a ClassCircularityError with the
specified detail message. |
|
IllegalArgumentException(String s)
Constructs an IllegalArgumentException with the
specified detail message. |
|
StringBuffer(String str)
Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string. |
|
InstantiationException(String s)
Constructs an InstantiationException with the
specified detail message. |
|
Integer(String s)
Constructs a newly allocated Integer object that
represents the int value indicated by the
String parameter. |
|
ExceptionInInitializerError(String s)
Constructs an ExceptionInInitializerError with the specified detail message string. |
|
String(String original)
Initializes a newly created String object so that it
represents the same sequence of characters as the argument; in other
words, the newly created string is a copy of the argument string. |
|
String(byte[] bytes,
int offset,
int length,
String charsetName)
Constructs a new String by decoding the specified subarray of bytes using the specified charset. |
|
String(byte[] bytes,
String charsetName)
Constructs a new String by decoding the specified array of bytes using the specified charset. |
|
ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class
with the specified detail message. |
|
UnsupportedClassVersionError(String s)
Constructs a UnsupportedClassVersionError with
the specified detail message. |
|
InternalError(String s)
Constructs an InternalError with the specified
detail message. |
|
NumberFormatException(String s)
Constructs a NumberFormatException with the
specified detail message. |
|
IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message. |
|
Thread(String name)
Allocates a new Thread object. |
|
Thread(ThreadGroup group,
String name)
Allocates a new Thread object. |
|
Thread(Runnable target,
String name)
Allocates a new Thread object. |
|
Thread(ThreadGroup group,
Runnable target,
String name)
Allocates a new Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group
referred to by group . |
|
Thread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
Allocates a new Thread object so that it has
target as its run object, has the specified
name as its name, belongs to the thread group referred to
by group , and has the specified stack size. |
|
RuntimeException(String message)
Constructs a new runtime exception with the specified detail message. |
|
RuntimeException(String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and cause. |
|
IllegalAccessError(String s)
Constructs an IllegalAccessError with the specified
detail message. |
|
NoSuchFieldException(String s)
Constructor with a detail message. |
|
ThreadGroup(String name)
Constructs a new thread group. |
|
ThreadGroup(ThreadGroup parent,
String name)
Creates a new thread group. |
|
Throwable(String message)
Constructs a new throwable with the specified detail message. |
|
Throwable(String message,
Throwable cause)
Constructs a new throwable with the specified detail message and cause. |
|
SecurityException(String s)
Constructs a SecurityException with the specified
detail message. |
|
Float(String s)
Constructs a newly allocated Float object that
represents the floating-point value of type float
represented by the string. |
|
ArrayStoreException(String s)
Constructs an ArrayStoreException with the specified
detail message. |
|
ClassCastException(String s)
Constructs a ClassCastException with the specified
detail message. |
|
NoSuchMethodException(String s)
Constructs a NoSuchMethodException with a detail message. |
|
NoSuchFieldError(String s)
Constructs a NoSuchFieldException with the specified
detail message. |
|
InterruptedException(String s)
Constructs an InterruptedException with the
specified detail message. |
|
InstantiationError(String s)
Constructs an InstantiationError with the specified
detail message. |
|
ClassFormatError(String s)
Constructs a ClassFormatError with the specified
detail message. |
|
IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the
specified detail message. |
|
StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with
the specified detail message. |
|
UnsatisfiedLinkError(String s)
Constructs an UnsatisfiedLinkError with the
specified detail message. |
|
UnknownError(String s)
Constructs an UnknownError with the specified detail
message. |
Uses of String in java.lang.reflect |
Methods in java.lang.reflect that return String | |
String |
Method.getName()
Returns the name of the method represented by this Method
object, as a String . |
String |
Method.toString()
Returns a string describing this Method . |
String |
Member.getName()
Returns the simple name of the underlying member or constructor represented by this Member. |
static String |
Modifier.toString(int mod)
Return a string describing the access modifier flags in the specified modifier. |
String |
Field.getName()
Returns the name of the field represented by this Field object. |
String |
Field.toString()
Returns a string describing this Field . |
String |
Constructor.getName()
Returns the name of this constructor, as a string. |
String |
Constructor.toString()
Returns a string describing this Constructor . |
Constructors in java.lang.reflect with parameters of type String | |
ReflectPermission(String name)
Constructs a ReflectPermission with the specified name. |
|
ReflectPermission(String name,
String actions)
Constructs a ReflectPermission with the specified name and actions. |
|
UndeclaredThrowableException(Throwable undeclaredThrowable,
String s)
Constructs an UndeclaredThrowableException with the
specified Throwable and a detail message. |
|
InvocationTargetException(Throwable target,
String s)
Constructs a InvocationTargetException with a target exception and a detail message. |
Uses of String in java.math |
Methods in java.math that return String | |
String |
BigInteger.toString(int radix)
Returns the String representation of this BigInteger in the given radix. |
String |
BigInteger.toString()
Returns the decimal String representation of this BigInteger. |
String |
BigDecimal.toString()
Returns the string representation of this BigDecimal. |
Constructors in java.math with parameters of type String | |
BigInteger(String val,
int radix)
Translates the String representation of a BigInteger in the specified radix into a BigInteger. |
|
BigInteger(String val)
Translates the decimal String representation of a BigInteger into a BigInteger. |
|
BigDecimal(String val)
Translates the String representation of a BigDecimal into a BigDecimal. |
Uses of String in java.net |
Fields in java.net declared as String | |
protected String |
HttpURLConnection.method
The HTTP method (GET,POST,PUT,etc.). |
protected String |
HttpURLConnection.responseMessage
The HTTP response message. |
Methods in java.net that return String | |
String |
URLConnection.getContentType()
Returns the value of the content-type header field. |
String |
URLConnection.getContentEncoding()
Returns the value of the content-encoding header field. |
String |
URLConnection.getHeaderField(String name)
Returns the value of the named header field. |
String |
URLConnection.getHeaderFieldKey(int n)
Returns the key for the n th header field. |
String |
URLConnection.getHeaderField(int n)
Returns the value for the n th header field. |
String |
URLConnection.toString()
Returns a String representation of this URL connection. |
String |
URLConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
static String |
URLConnection.guessContentTypeFromName(String fname)
Tries to determine the content type of an object, based on the specified "file" component of a URL. |
static String |
URLConnection.guessContentTypeFromStream(InputStream is)
Tries to determine the type of an input stream based on the characters at the beginning of the input stream. |
String |
URISyntaxException.getInput()
Returns the input string. |
String |
URISyntaxException.getReason()
Returns a string explaining why the input string could not be parsed. |
String |
URISyntaxException.getMessage()
Returns a string describing the parse error. |
String |
Inet6Address.getHostAddress()
Returns the IP address string in textual presentation. |
String |
URI.getScheme()
Returns the scheme component of this URI. |
String |
URI.getRawSchemeSpecificPart()
Returns the raw scheme-specific part of this URI. |
String |
URI.getSchemeSpecificPart()
Returns the decoded scheme-specific part of this URI. |
String |
URI.getRawAuthority()
Returns the raw authority component of this URI. |
String |
URI.getAuthority()
Returns the decoded authority component of this URI. |
String |
URI.getRawUserInfo()
Returns the raw user-information component of this URI. |
String |
URI.getUserInfo()
Returns the decoded user-information component of this URI. |
String |
URI.getHost()
Returns the host component of this URI. |
String |
URI.getRawPath()
Returns the raw path component of this URI. |
String |
URI.getPath()
Returns the decoded path component of this URI. |
String |
URI.getRawQuery()
Returns the raw query component of this URI. |
String |
URI.getQuery()
Returns the decoded query component of this URI. |
String |
URI.getRawFragment()
Returns the raw fragment component of this URI. |
String |
URI.getFragment()
Returns the decoded fragment component of this URI. |
String |
URI.toString()
Returns the content of this URI as a string. |
String |
URI.toASCIIString()
Returns the content of this URI as a US-ASCII string. |
protected String |
URLStreamHandler.toExternalForm(URL u)
Converts a URL of a specific protocol to a
String . |
String |
InetAddress.getHostName()
Gets the host name for this IP address. |
String |
InetAddress.getCanonicalHostName()
Gets the fully qualified domain name for this IP address. |
String |
InetAddress.getHostAddress()
Returns the IP address string in textual presentation. |
String |
InetAddress.toString()
Converts this IP address to a String . |
String |
SocketPermission.getActions()
Returns the canonical string representation of the actions. |
String |
Inet4Address.getHostAddress()
Returns the IP address string in textual presentation form. |
String |
JarURLConnection.getEntryName()
Return the entry name for this connection. |
String |
HttpURLConnection.getHeaderFieldKey(int n)
Returns the key for the n th header field. |
String |
HttpURLConnection.getHeaderField(int n)
Returns the value for the n th header field. |
String |
HttpURLConnection.getRequestMethod()
Get the request method. |
String |
HttpURLConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
String |
URL.getQuery()
Gets the query part of this URL . |
String |
URL.getPath()
Gets the path part of this URL . |
String |
URL.getUserInfo()
Gets the userInfo part of this URL . |
String |
URL.getAuthority()
Gets the authority part of this URL . |
String |
URL.getProtocol()
Gets the protocol name of this URL . |
String |
URL.getHost()
Gets the host name of this URL , if applicable. |
String |
URL.getFile()
Gets the file name of this URL . |
String |
URL.getRef()
Gets the anchor (also known as the "reference") of this URL . |
String |
URL.toString()
Constructs a string representation of this URL . |
String |
URL.toExternalForm()
Constructs a string representation of this URL . |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
String |
InetSocketAddress.getHostName()
Gets the hostname . |
String |
InetSocketAddress.toString()
Constructs a string representation of this InetSocketAddress. |
String |
SocketImpl.toString()
Returns the address and port of this socket as a String . |
String |
Socket.toString()
Converts this socket to a String . |
protected String |
Authenticator.getRequestingHost()
Gets the hostname of the
site or proxy requesting authentication, or null
if not available. |
protected String |
Authenticator.getRequestingProtocol()
Give the protocol that's requesting the connection. |
protected String |
Authenticator.getRequestingPrompt()
Gets the prompt string given by the requestor. |
protected String |
Authenticator.getRequestingScheme()
Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example). |
String |
NetworkInterface.getName()
Get the name of this network interface. |
String |
NetworkInterface.getDisplayName()
Get the display name of this network interface. |
String |
NetworkInterface.toString()
|
String |
PasswordAuthentication.getUserName()
Returns the user name. |
static String |
URLEncoder.encode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. |
static String |
URLEncoder.encode(String s,
String enc)
Translates a string into application/x-www-form-urlencoded
format using a specific encoding scheme. |
String |
ServerSocket.toString()
Returns the implementation address and implementation port of this socket as a String . |
static String |
URLDecoder.decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
URLDecoder.decode(String s,
String enc)
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme. |
Methods in java.net with parameters of type String | |
String |
URLConnection.getHeaderField(String name)
Returns the value of the named header field. |
int |
URLConnection.getHeaderFieldInt(String name,
int Default)
Returns the value of the named field parsed as a number. |
long |
URLConnection.getHeaderFieldDate(String name,
long Default)
Returns the value of the named field parsed as date. |
void |
URLConnection.setRequestProperty(String key,
String value)
Sets the general request property. |
void |
URLConnection.addRequestProperty(String key,
String value)
Adds a general request property specified by a key-value pair. |
String |
URLConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
static String |
URLConnection.guessContentTypeFromName(String fname)
Tries to determine the content type of an object, based on the specified "file" component of a URL. |
URLStreamHandler |
URLStreamHandlerFactory.createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified
protocol. |
static URI |
URI.create(String str)
Creates a URI by parsing the given string. |
URI |
URI.resolve(String str)
Constructs a new URI by parsing the given string and then resolving it against this URI. |
protected void |
URLStreamHandler.parseURL(URL u,
String spec,
int start,
int limit)
Parses the string representation of a URL into a
URL object. |
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the fields of the URL argument to the indicated values. |
static InetAddress |
InetAddress.getByAddress(String host,
byte[] addr)
Create an InetAddress based on the provided host name and IP address No name service is checked for the validity of the address. |
static InetAddress |
InetAddress.getByName(String host)
Determines the IP address of a host, given the host's name. |
static InetAddress[] |
InetAddress.getAllByName(String host)
Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system. |
protected Class |
URLClassLoader.findClass(String name)
Finds and loads the class with the specified name from the URL search path. |
protected Package |
URLClassLoader.definePackage(String name,
Manifest man,
URL url)
Defines a new package by name in this ClassLoader. |
URL |
URLClassLoader.findResource(String name)
Finds the resource with the specified name on the URL search path. |
Enumeration |
URLClassLoader.findResources(String name)
Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name. |
void |
HttpURLConnection.setRequestMethod(String method)
Set the method for the URL request, one of: GET POST HEAD OPTIONS PUT DELETE TRACE are legal, subject to protocol restrictions. |
long |
HttpURLConnection.getHeaderFieldDate(String name,
long Default)
|
ContentHandler |
ContentHandlerFactory.createContentHandler(String mimetype)
Creates a new ContentHandler to read an object from
a URLStreamHandler . |
protected void |
URL.set(String protocol,
String host,
int port,
String file,
String ref)
Sets the fields of the URL. |
protected void |
URL.set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Sets the specified 8 fields of the URL. |
String |
FileNameMap.getContentTypeFor(String fileName)
Gets the MIME type for the specified file name. |
protected abstract void |
SocketImpl.connect(String host,
int port)
Connects this socket to the specified port on the named host. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress addr,
int port,
String protocol,
String prompt,
String scheme)
Ask the authenticator that has been registered with the system for a password. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String host,
InetAddress addr,
int port,
String protocol,
String prompt,
String scheme)
Ask the authenticator that has been registered with the system for a password. |
static NetworkInterface |
NetworkInterface.getByName(String name)
Searches for the network interface with the specified name. |
static String |
URLEncoder.encode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. |
static String |
URLEncoder.encode(String s,
String enc)
Translates a string into application/x-www-form-urlencoded
format using a specific encoding scheme. |
static String |
URLDecoder.decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
URLDecoder.decode(String s,
String enc)
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme. |
Constructors in java.net with parameters of type String | |
MalformedURLException(String msg)
Constructs a MalformedURLException with the
specified detail message. |
|
URISyntaxException(String input,
String reason,
int index)
Constructs an instance from the given input string, reason, and error index. |
|
URISyntaxException(String input,
String reason)
Constructs an instance from the given input string and reason. |
|
URI(String str)
Constructs a URI by parsing the given string. |
|
URI(String scheme,
String userInfo,
String host,
int port,
String path,
String query,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String authority,
String path,
String query,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String host,
String path,
String fragment)
Constructs a hierarchical URI from the given components. |
|
URI(String scheme,
String ssp,
String fragment)
Constructs a URI from the given components. |
|
SocketPermission(String host,
String action)
Creates a new SocketPermission object with the specified actions. |
|
UnknownServiceException(String msg)
Constructs a new UnknownServiceException with the
specified detail message. |
|
NetPermission(String name)
Creates a new NetPermission with the specified name. |
|
NetPermission(String name,
String actions)
Creates a new NetPermission object with the specified name. |
|
ProtocolException(String host)
Constructs a new ProtocolException with the
specified detail message. |
|
UnknownHostException(String host)
Constructs a new UnknownHostException with the
specified detail message. |
|
URL(String protocol,
String host,
int port,
String file)
Creates a URL object from the specified
protocol , host , port
number, and file . |
|
URL(String protocol,
String host,
String file)
Creates a URL from the specified protocol
name, host name, and file name. |
|
URL(String protocol,
String host,
int port,
String file,
URLStreamHandler handler)
Creates a URL object from the specified
protocol , host , port
number, file , and handler . |
|
URL(String spec)
Creates a URL object from the String
representation. |
|
URL(URL context,
String spec)
Creates a URL by parsing the given spec within a specified context. |
|
URL(URL context,
String spec,
URLStreamHandler handler)
Creates a URL by parsing the given spec with the specified handler within a specified context. |
|
PortUnreachableException(String msg)
Constructs a new PortUnreachableException with a
detail message. |
|
BindException(String msg)
Constructs a new BindException with the specified detail message as to why the bind error occurred. |
|
InetSocketAddress(String hostname,
int port)
Creates a socket address from a hostname and a port number. |
|
ConnectException(String msg)
Constructs a new ConnectException with the specified detail message as to why the connect error occurred. |
|
SocketException(String msg)
Constructs a new SocketException with the
specified detail message. |
|
Socket(String host,
int port)
Creates a stream socket and connects it to the specified port number on the named host. |
|
Socket(String host,
int port,
InetAddress localAddr,
int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port. |
|
SocketTimeoutException(String msg)
Constructs a new SocketTimeoutException with a detail message. |
|
PasswordAuthentication(String userName,
char[] password)
Creates a new PasswordAuthentication object from the given
user name and password. |
|
NoRouteToHostException(String msg)
Constructs a new NoRouteToHostException with the specified detail message as to why the remote host cannot be reached. |
Uses of String in java.rmi |
Methods in java.rmi that return String | |
String |
RemoteException.getMessage()
Returns the detail message, including the message from the nested exception if there is one. |
Constructors in java.rmi with parameters of type String | |
UnexpectedException(String s)
Constructs an UnexpectedException with the specified
detail message. |
|
UnexpectedException(String s,
Exception ex)
Constructs a UnexpectedException with the specified
detail message and nested exception. |
|
NotBoundException(String s)
Constructs a NotBoundException with the specified
detail message. |
|
AlreadyBoundException(String s)
Constructs an AlreadyBoundException with the specified
detail message. |
|
AccessException(String s)
Constructs an AccessException with the specified
detail message. |
|
AccessException(String s,
Exception ex)
Constructs an AccessException with the specified
detail message and nested exception. |
|
RemoteException(String s)
Constructs a RemoteException with the specified
detail message. |
|
RemoteException(String s,
Throwable ex)
Constructs a RemoteException with the specified
detail message and nested exception. |
Uses of String in java.rmi.registry |
Methods in java.rmi.registry that return String | |
String[] |
Registry.list()
Returns an array of the names bound in this registry. |
Methods in java.rmi.registry with parameters of type String | |
Remote |
Registry.lookup(String name)
Returns the remote reference bound to the specified name in this registry. |
void |
Registry.bind(String name,
Remote obj)
Binds a remote reference to the specified name in
this registry. |
void |
Registry.unbind(String name)
Removes the binding for the specified name in
this registry. |
void |
Registry.rebind(String name,
Remote obj)
Replaces the binding for the specified name in
this registry with the supplied remote reference. |
Uses of String in java.security |
Methods in java.security that return String | |
String |
KeyStore.getType()
Returns the type of this keystore. |
String |
KeyStore.getCertificateAlias(Certificate cert)
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. |
static String |
KeyStore.getDefaultType()
Returns the default keystore type as specified in the Java security properties file, or the string "jks" (acronym for "Java keystore") if no such property exists. |
protected abstract String |
AlgorithmParametersSpi.engineToString()
Returns a formatted string describing the parameters. |
String |
MessageDigest.toString()
Returns a string representation of this message digest object. |
String |
MessageDigest.getAlgorithm()
Returns a string that identifies the algorithm, independent of implementation details. |
static String |
Security.getProperty(String key)
Gets a security property value. |
String |
UnresolvedPermission.getActions()
Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for an UnresolvedPermission. |
String |
UnresolvedPermission.toString()
Returns a string describing this UnresolvedPermission. |
String |
CodeSource.toString()
Returns a string describing this CodeSource, telling its URL and certificates. |
String |
Certificate.getFormat()
Deprecated. Returns the name of the coding format. |
String |
Certificate.toString(boolean detailed)
Deprecated. Returns a string that represents the contents of the certificate. |
String |
Signer.toString()
Deprecated. Returns a string of information about the signer. |
String |
AllPermission.getActions()
Returns the canonical string representation of the actions. |
String |
DigestOutputStream.toString()
Prints a string representation of this digest output stream and its associated message digest object. |
String |
ProtectionDomain.toString()
Convert a ProtectionDomain to a String. |
String |
PrivilegedActionException.toString()
|
String |
Provider.getName()
Returns the name of this provider. |
String |
Provider.getInfo()
Returns a human-readable description of the provider and its services. |
String |
Provider.toString()
Returns a string with the name and the version number of this provider. |
String |
AlgorithmParameters.getAlgorithm()
Returns the name of the algorithm associated with this parameter object. |
String |
AlgorithmParameters.toString()
Returns a formatted string describing the parameters. |
String |
Principal.toString()
Returns a string representation of this principal. |
String |
Principal.getName()
Returns the name of this principal. |
String |
Signature.getAlgorithm()
Returns the name of the algorithm for this signature object. |
String |
Signature.toString()
Returns a string representation of this signature object, providing information that includes the state of the object and the name of the algorithm used. |
String |
PermissionCollection.toString()
Returns a string describing this PermissionCollection object, providing information about all the permissions it contains. |
String |
Key.getAlgorithm()
Returns the standard algorithm name for this key. |
String |
Key.getFormat()
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |
String |
BasicPermission.getActions()
Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for a BasicPermission. |
String |
KeyFactory.getAlgorithm()
Gets the name of the algorithm associated with this KeyFactory. |
abstract String |
KeyStoreSpi.engineGetCertificateAlias(Certificate cert)
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. |
String |
Permission.getName()
Returns the name of this Permission. |
abstract String |
Permission.getActions()
Returns the actions as a String. |
String |
Permission.toString()
Returns a string describing this Permission. |
String |
IdentityScope.toString()
Deprecated. Returns a string representation of this identity scope, including its name, its scope name, and the number of identities in this identity scope. |
String |
Identity.getName()
Deprecated. Returns this identity's name. |
String |
Identity.getInfo()
Deprecated. Returns general information previously specified for this identity. |
String |
Identity.toString()
Deprecated. Returns a short string describing this identity, telling its name and its scope (if any). |
String |
Identity.toString(boolean detailed)
Deprecated. Returns a string representation of this identity, with optionally more details than that provided by the toString method without any arguments. |
String |
SignedObject.getAlgorithm()
Retrieves the name of the signature algorithm. |
String |
KeyPairGenerator.getAlgorithm()
Returns the standard name of the algorithm for this key pair generator. |
String |
DigestInputStream.toString()
Prints a string representation of this digest input stream and its associated message digest object. |
String |
AlgorithmParameterGenerator.getAlgorithm()
Returns the standard name of the algorithm this parameter generator is associated with. |
Methods in java.security with parameters of type String | |
static KeyStore |
KeyStore.getInstance(String type)
Generates a keystore object of the given type. |
static KeyStore |
KeyStore.getInstance(String type,
String provider)
Generates a keystore object for the specified keystore type from the specified provider. |
static KeyStore |
KeyStore.getInstance(String type,
Provider provider)
Generates a keystore object for the specified keystore type from the specified provider. |
Key |
KeyStore.getKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it. |
Certificate[] |
KeyStore.getCertificateChain(String alias)
Returns the certificate chain associated with the given alias. |
Certificate |
KeyStore.getCertificate(String alias)
Returns the certificate associated with the given alias. |
Date |
KeyStore.getCreationDate(String alias)
Returns the creation date of the entry identified by the given alias. |
void |
KeyStore.setKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given password. |
void |
KeyStore.setKeyEntry(String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias. |
void |
KeyStore.setCertificateEntry(String alias,
Certificate cert)
Assigns the given certificate to the given alias. |
void |
KeyStore.deleteEntry(String alias)
Deletes the entry identified by the given alias from this keystore. |
boolean |
KeyStore.containsAlias(String alias)
Checks if the given alias exists in this keystore. |
boolean |
KeyStore.isKeyEntry(String alias)
Returns true if the entry identified by the given alias is a key entry, and false otherwise. |
boolean |
KeyStore.isCertificateEntry(String alias)
Returns true if the entry identified by the given alias is a trusted certificate entry, and false otherwise. |
protected abstract void |
AlgorithmParametersSpi.engineInit(byte[] params,
String format)
Imports the parameters from params and
decodes them according to the specified decoding format. |
protected abstract byte[] |
AlgorithmParametersSpi.engineGetEncoded(String format)
Returns the parameters encoded in the specified format. |
static SecureRandom |
SecureRandom.getInstance(String algorithm)
Generates a SecureRandom object that implements the specified Pseudo Random Number Generator (PRNG) algorithm. |
static SecureRandom |
SecureRandom.getInstance(String algorithm,
String provider)
Generates a SecureRandom object for the specified PRNG algorithm, as supplied from the specified provider, if such a PRNG implementation is available from the provider. |
static SecureRandom |
SecureRandom.getInstance(String algorithm,
Provider provider)
Generates a SecureRandom object for the specified PRNG algorithm, as supplied from the specified provider, if such a PRNG implementation is available from the provider. |
static MessageDigest |
MessageDigest.getInstance(String algorithm)
Generates a MessageDigest object that implements the specified digest algorithm. |
static MessageDigest |
MessageDigest.getInstance(String algorithm,
String provider)
Generates a MessageDigest object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static MessageDigest |
MessageDigest.getInstance(String algorithm,
Provider provider)
Generates a MessageDigest object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static void |
Security.removeProvider(String name)
Removes the provider with the specified name. |
static Provider |
Security.getProvider(String name)
Returns the provider installed with the specified name, if any. |
static Provider[] |
Security.getProviders(String filter)
Returns an array containing all installed providers that satisfy the specified selection criterion, or null if no such providers have been installed. |
static String |
Security.getProperty(String key)
Gets a security property value. |
static void |
Security.setProperty(String key,
String datum)
Sets a security property value. |
static Set |
Security.getAlgorithms(String serviceName)
Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore). |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm)
Generates a parameter object for the specified algorithm. |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm,
String provider)
Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider. |
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm,
Provider provider)
Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider. |
void |
AlgorithmParameters.init(byte[] params,
String format)
Imports the parameters from params and decodes them
according to the specified decoding scheme. |
byte[] |
AlgorithmParameters.getEncoded(String format)
Returns the parameters encoded in the specified scheme. |
static Signature |
Signature.getInstance(String algorithm)
Generates a Signature object that implements the specified digest algorithm. |
static Signature |
Signature.getInstance(String algorithm,
String provider)
Generates a Signature object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static Signature |
Signature.getInstance(String algorithm,
Provider provider)
Generates a Signature object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
protected Class |
SecureClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
CodeSource cs)
Converts an array of bytes into an instance of class Class, with an optional CodeSource. |
static KeyFactory |
KeyFactory.getInstance(String algorithm)
Generates a KeyFactory object that implements the specified algorithm. |
static KeyFactory |
KeyFactory.getInstance(String algorithm,
String provider)
Generates a KeyFactory object for the specified algorithm from the specified provider. |
static KeyFactory |
KeyFactory.getInstance(String algorithm,
Provider provider)
Generates a KeyFactory object for the specified algorithm from the specified provider. |
abstract Key |
KeyStoreSpi.engineGetKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it. |
abstract Certificate[] |
KeyStoreSpi.engineGetCertificateChain(String alias)
Returns the certificate chain associated with the given alias. |
abstract Certificate |
KeyStoreSpi.engineGetCertificate(String alias)
Returns the certificate associated with the given alias. |
abstract Date |
KeyStoreSpi.engineGetCreationDate(String alias)
Returns the creation date of the entry identified by the given alias. |
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given password. |
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias. |
abstract void |
KeyStoreSpi.engineSetCertificateEntry(String alias,
Certificate cert)
Assigns the given certificate to the given alias. |
abstract void |
KeyStoreSpi.engineDeleteEntry(String alias)
Deletes the entry identified by the given alias from this keystore. |
abstract boolean |
KeyStoreSpi.engineContainsAlias(String alias)
Checks if the given alias exists in this keystore. |
abstract boolean |
KeyStoreSpi.engineIsKeyEntry(String alias)
Returns true if the entry identified by the given alias is a key entry, and false otherwise. |
abstract boolean |
KeyStoreSpi.engineIsCertificateEntry(String alias)
Returns true if the entry identified by the given alias is a trusted certificate entry, and false otherwise. |
abstract Identity |
IdentityScope.getIdentity(String name)
Deprecated. Returns the identity in this scope with the specified name (if any). |
void |
Identity.setInfo(String info)
Deprecated. Specifies a general information string for this identity. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm)
Generates a KeyPairGenerator object that implements the specified digest algorithm. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm,
String provider)
Generates a KeyPairGenerator object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm,
Provider provider)
Generates a KeyPairGenerator object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm)
Generates an AlgorithmParameterGenerator object that implements the specified digest algorithm. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm,
String provider)
Generates an AlgorithmParameterGenerator object for the requested algorithm, as supplied from the specified provider, if such a parameter generator is available from the provider. |
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm,
Provider provider)
Generates an AlgorithmParameterGenerator object for the requested algorithm, as supplied from the specified provider, if such a parameter generator is available from the provider. |
Constructors in java.security with parameters of type String | |
ProviderException(String s)
Constructs a ProviderException with the specified detail message. |
|
KeyStore(KeyStoreSpi keyStoreSpi,
Provider provider,
String type)
Creates a KeyStore object of the given type, and encapsulates the given provider implementation (SPI object) in it. |
|
SecurityPermission(String name)
Creates a new SecurityPermission with the specified name. |
|
SecurityPermission(String name,
String actions)
Creates a new SecurityPermission object with the specified name. |
|
MessageDigest(String algorithm)
Creates a message digest with the specified algorithm name. |
|
UnresolvedPermission(String type,
String name,
String actions,
Certificate[] certs)
Creates a new UnresolvedPermission containing the permission information needed later to actually create a Permission of the specified class, when the permission is resolved. |
|
Signer(String name)
Deprecated. Creates a signer with the specified identity name. |
|
Signer(String name,
IdentityScope scope)
Deprecated. Creates a signer with the specified identity name and scope. |
|
AllPermission(String name,
String actions)
Creates a new AllPermission object. |
|
InvalidParameterException(String msg)
Constructs an InvalidParameterException with the specified detail message. |
|
Provider(String name,
double version,
String info)
Constructs a provider with the specified name, version number, and information. |
|
InvalidAlgorithmParameterException(String msg)
Constructs an InvalidAlgorithmParameterException with the specified detail message. |
|
AlgorithmParameters(AlgorithmParametersSpi paramSpi,
Provider provider,
String algorithm)
Creates an AlgorithmParameters object. |
|
KeyManagementException(String msg)
Constructs a KeyManagementException with the specified detail message. |
|
UnrecoverableKeyException(String msg)
Constructs an UnrecoverableKeyException with the specified detail message, which provides more information about why this exception has been thrown. |
|
SignatureException(String msg)
Constructs a SignatureException with the specified detail message. |
|
Signature(String algorithm)
Creates a Signature object for the specified algorithm. |
|
AccessControlException(String s)
Constructs an AccessControlException with the
specified, detailed message. |
|
AccessControlException(String s,
Permission p)
Constructs an AccessControlException with the
specified, detailed message, and the requested permission that caused
the exception. |
|
BasicPermission(String name)
Creates a new BasicPermission with the specified name. |
|
BasicPermission(String name,
String actions)
Creates a new BasicPermission object with the specified name. |
|
KeyException(String msg)
Constructs a KeyException with the specified detail message. |
|
KeyStoreException(String msg)
Constructs a KeyStoreException with the specified detail message. |
|
KeyFactory(KeyFactorySpi keyFacSpi,
Provider provider,
String algorithm)
Creates a KeyFactory object. |
|
NoSuchAlgorithmException(String msg)
Constructs a NoSuchAlgorithmException with the specified detail message. |
|
NoSuchProviderException(String msg)
Constructs a NoSuchProviderException with the specified detail message. |
|
DigestException(String msg)
Constructs a DigestException with the specified detail message. |
|
GeneralSecurityException(String msg)
Constructs a GeneralSecurityException with the specified detail message. |
|
Permission(String name)
Constructs a permission with the specified name. |
|
IdentityScope(String name)
Deprecated. Constructs a new identity scope with the specified name. |
|
IdentityScope(String name,
IdentityScope scope)
Deprecated. Constructs a new identity scope with the specified name and scope. |
|
InvalidKeyException(String msg)
Constructs an InvalidKeyException with the specified detail message. |
|
Identity(String name,
IdentityScope scope)
Deprecated. Constructs an identity with the specified name and scope. |
|
Identity(String name)
Deprecated. Constructs an identity with the specified name and no scope. |
|
KeyPairGenerator(String algorithm)
Creates a KeyPairGenerator object for the specified algorithm. |
|
AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi,
Provider provider,
String algorithm)
Creates an AlgorithmParameterGenerator object. |
Uses of String in java.security.acl |
Methods in java.security.acl that return String | |
String |
Acl.getName()
Returns the name of this ACL. |
String |
Acl.toString()
Returns a string representation of the ACL contents. |
String |
AclEntry.toString()
Returns a string representation of the contents of this ACL entry. |
String |
Permission.toString()
Prints a string representation of this permission. |
Methods in java.security.acl with parameters of type String | |
void |
Acl.setName(Principal caller,
String name)
Sets the name of this ACL. |
Uses of String in java.security.cert |
Methods in java.security.cert that return String | |
String |
CertificateFactory.getType()
Returns the name of the certificate type associated with this certificate factory. |
String |
CertPath.getType()
Returns the type of Certificate s in this certification
path. |
String |
CertPath.toString()
Returns a string representation of this certification path. |
abstract String |
X509CRL.getSigAlgName()
Gets the signature algorithm name for the CRL signature algorithm. |
abstract String |
X509CRL.getSigAlgOID()
Gets the signature algorithm OID string from the CRL. |
String |
Certificate.getType()
Returns the type of this certificate. |
abstract String |
Certificate.toString()
Returns a string representation of this certificate. |
String |
CRL.getType()
Returns the type of this CRL. |
abstract String |
CRL.toString()
Returns a string representation of this CRL. |
abstract String |
X509Certificate.getSigAlgName()
Gets the signature algorithm name for the certificate signature algorithm. |
abstract String |
X509Certificate.getSigAlgOID()
Gets the signature algorithm OID string from the certificate. |
abstract String |
X509CRLEntry.toString()
Returns a string representation of this CRL entry. |
Methods in java.security.cert with parameters of type String | |
static CertificateFactory |
CertificateFactory.getInstance(String type)
Generates a certificate factory object that implements the specified certificate type. |
static CertificateFactory |
CertificateFactory.getInstance(String type,
String provider)
Generates a certificate factory object for the specified certificate type from the specified provider. |
static CertificateFactory |
CertificateFactory.getInstance(String type,
Provider provider)
Generates a certificate factory object for the specified certificate type from the specified provider. |
CertPath |
CertificateFactory.generateCertPath(InputStream inStream,
String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
abstract byte[] |
CertPath.getEncoded(String encoding)
Returns the encoded form of this certification path, using the specified encoding. |
abstract void |
X509CRL.verify(PublicKey key,
String sigProvider)
Verifies that this CRL was signed using the private key that corresponds to the given public key. |
abstract void |
Certificate.verify(PublicKey key,
String sigProvider)
Verifies that this certificate was signed using the private key that corresponds to the specified public key. |
CertPath |
CertificateFactorySpi.engineGenerateCertPath(InputStream inStream,
String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
byte[] |
X509Extension.getExtensionValue(String oid)
Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-in oid
String. |
Constructors in java.security.cert with parameters of type String | |
CertificateFactory(CertificateFactorySpi certFacSpi,
Provider provider,
String type)
Creates a CertificateFactory object of the given type, and encapsulates the given provider implementation (SPI object) in it. |
|
CertificateParsingException(String message)
Constructs a CertificateParsingException with the specified detail message. |
|
CertPath(String type)
Creates a CertPath of the specified type. |
|
CertPath.CertPathRep(String type,
byte[] data)
Creates a CertPathRep with the specified
type and encoded form of a certification path. |
|
CertificateEncodingException(String message)
Constructs a CertificateEncodingException with the specified detail message. |
|
Certificate(String type)
Creates a certificate of the specified type. |
|
Certificate.CertificateRep(String type,
byte[] data)
Construct the alternate Certificate class with the Certificate type and Certificate encoding bytes. |
|
CRL(String type)
Creates a CRL of the specified type. |
|
CertificateExpiredException(String message)
Constructs a CertificateExpiredException with the specified detail message. |
|
CertificateNotYetValidException(String message)
Constructs a CertificateNotYetValidException with the specified detail message. |
|
CertificateException(String msg)
Constructs a certificate exception with the given detail message. |
|
CRLException(String message)
Constructs a CRLException with the specified detail message. |
Uses of String in java.security.spec |
Methods in java.security.spec that return String | |
abstract String |
EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
String |
X509EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
String |
PKCS8EncodedKeySpec.getFormat()
Returns the name of the encoding format associated with this key specification. |
Constructors in java.security.spec with parameters of type String | |
InvalidParameterSpecException(String msg)
Constructs an InvalidParameterSpecException with the specified detail message. |
|
InvalidKeySpecException(String msg)
Constructs an InvalidKeySpecException with the specified detail message. |
Uses of String in java.text |
Methods in java.text that return String | |
String |
AttributedCharacterIterator.Attribute.toString()
Returns a string representation of the object. |
protected String |
AttributedCharacterIterator.Attribute.getName()
Returns the name of the attribute. |
String |
ChoiceFormat.toPattern()
Gets the pattern. |
String |
DecimalFormatSymbols.getInfinity()
Gets the string used to represent infinity. |
String |
DecimalFormatSymbols.getNaN()
Gets the string used to represent "not a number". |
String |
DecimalFormatSymbols.getCurrencySymbol()
Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale. |
String |
DecimalFormatSymbols.getInternationalCurrencySymbol()
Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols. |
String[] |
DateFormatSymbols.getEras()
Gets era strings. |
String[] |
DateFormatSymbols.getMonths()
Gets month strings. |
String[] |
DateFormatSymbols.getShortMonths()
Gets short month strings. |
String[] |
DateFormatSymbols.getWeekdays()
Gets weekday strings. |
String[] |
DateFormatSymbols.getShortWeekdays()
Gets short weekday strings. |
String[] |
DateFormatSymbols.getAmPmStrings()
Gets ampm strings. |
String[][] |
DateFormatSymbols.getZoneStrings()
Gets timezone strings. |
String |
DateFormatSymbols.getLocalPatternChars()
Gets localized date-time pattern characters. |
String |
SimpleDateFormat.toPattern()
Returns a pattern string describing this date format. |
String |
SimpleDateFormat.toLocalizedPattern()
Returns a localized pattern string describing this date format. |
String |
Format.format(Object obj)
Formats an object to produce a string. |
String |
DateFormat.format(Date date)
Formats a Date into a date/time string. |
String |
Annotation.toString()
Returns the String representation of this Annotation. |
String |
FieldPosition.toString()
Return a string representation of this FieldPosition. |
String |
ParsePosition.toString()
Return a string representation of this ParsePosition. |
String |
DecimalFormat.getPositivePrefix()
Get the positive prefix. |
String |
DecimalFormat.getNegativePrefix()
Get the negative prefix. |
String |
DecimalFormat.getPositiveSuffix()
Get the positive suffix. |
String |
DecimalFormat.getNegativeSuffix()
Get the negative suffix. |
String |
DecimalFormat.toPattern()
Synthesizes a pattern string that represents the current state of this Format object. |
String |
DecimalFormat.toLocalizedPattern()
Synthesizes a localized pattern string that represents the current state of this Format object. |
String |
NumberFormat.format(double number)
Specialization of format. |
String |
NumberFormat.format(long number)
Specialization of format. |
String |
MessageFormat.toPattern()
Returns a pattern representing the current state of the message format. |
static String |
MessageFormat.format(String pattern,
Object[] arguments)
Creates a MessageFormat with the given pattern and uses it to format the given arguments. |
String |
RuleBasedCollator.getRules()
Gets the table-based rules for the collation object. |
String |
CollationKey.getSourceString()
Returns the String that this CollationKey represents. |
Methods in java.text with parameters of type String | |
void |
ChoiceFormat.applyPattern(String newPattern)
Sets the pattern. |
void |
ChoiceFormat.setChoices(double[] limits,
String[] formats)
Set the choices to be used in formatting. |
Number |
ChoiceFormat.parse(String text,
ParsePosition status)
Parses a Number from the input text. |
void |
DecimalFormatSymbols.setInfinity(String infinity)
Sets the string used to represent infinity. |
void |
DecimalFormatSymbols.setNaN(String NaN)
Sets the string used to represent "not a number". |
void |
DecimalFormatSymbols.setCurrencySymbol(String currency)
Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale. |
void |
DecimalFormatSymbols.setInternationalCurrencySymbol(String currencyCode)
Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols. |
void |
StringCharacterIterator.setText(String text)
Reset this iterator to point to a new string. |
void |
DateFormatSymbols.setEras(String[] newEras)
Sets era strings. |
void |
DateFormatSymbols.setMonths(String[] newMonths)
Sets month strings. |
void |
DateFormatSymbols.setShortMonths(String[] newShortMonths)
Sets short month strings. |
void |
DateFormatSymbols.setWeekdays(String[] newWeekdays)
Sets weekday strings. |
void |
DateFormatSymbols.setShortWeekdays(String[] newShortWeekdays)
Sets short weekday strings. |
void |
DateFormatSymbols.setAmPmStrings(String[] newAmpms)
Sets ampm strings. |
void |
DateFormatSymbols.setZoneStrings(String[][] newZoneStrings)
Sets timezone strings. |
void |
DateFormatSymbols.setLocalPatternChars(String newLocalPatternChars)
Sets localized date-time pattern characters. |
Date |
SimpleDateFormat.parse(String text,
ParsePosition pos)
Parses text from a string to produce a Date . |
void |
SimpleDateFormat.applyPattern(String pattern)
Applies the given pattern string to this date format. |
void |
SimpleDateFormat.applyLocalizedPattern(String pattern)
Applies the given localized pattern string to this date format. |
abstract Object |
Format.parseObject(String source,
ParsePosition pos)
Parses text from a string to produce an object. |
Object |
Format.parseObject(String source)
Parses text from the beginning of the given string to produce an object. |
Date |
DateFormat.parse(String source)
Parses text from the beginning of the given string to produce a date. |
abstract Date |
DateFormat.parse(String source,
ParsePosition pos)
Parse a date/time string according to the given parse position. |
Object |
DateFormat.parseObject(String source,
ParsePosition pos)
Parses text from a string to produce a Date . |
Number |
DecimalFormat.parse(String text,
ParsePosition pos)
Parses text from a string to produce a Number . |
void |
DecimalFormat.setPositivePrefix(String newValue)
Set the positive prefix. |
void |
DecimalFormat.setNegativePrefix(String newValue)
Set the negative prefix. |
void |
DecimalFormat.setPositiveSuffix(String newValue)
Set the positive suffix. |
void |
DecimalFormat.setNegativeSuffix(String newValue)
Set the positive suffix. |
void |
DecimalFormat.applyPattern(String pattern)
Apply the given pattern to this Format object. |
void |
DecimalFormat.applyLocalizedPattern(String pattern)
Apply the given pattern to this Format object. |
Object |
NumberFormat.parseObject(String source,
ParsePosition pos)
Parses text from a string to produce a Number . |
abstract Number |
NumberFormat.parse(String source,
ParsePosition parsePosition)
Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, Long.MAX_VALUE] and with no decimals), otherwise a Double. |
Number |
NumberFormat.parse(String source)
Parses text from the beginning of the given string to produce a number. |
void |
MessageFormat.applyPattern(String pattern)
Sets the pattern used by this message format. |
static String |
MessageFormat.format(String pattern,
Object[] arguments)
Creates a MessageFormat with the given pattern and uses it to format the given arguments. |
Object[] |
MessageFormat.parse(String source,
ParsePosition pos)
Parses the string. |
Object[] |
MessageFormat.parse(String source)
Parses text from the beginning of the given string to produce an object array. |
Object |
MessageFormat.parseObject(String source,
ParsePosition pos)
Parses text from a string to produce an object array. |
CollationElementIterator |
RuleBasedCollator.getCollationElementIterator(String source)
Return a CollationElementIterator for the given String. |
int |
RuleBasedCollator.compare(String source,
String target)
Compares the character data stored in two different strings based on the collation rules. |
CollationKey |
RuleBasedCollator.getCollationKey(String source)
Transforms the string into a series of characters that can be compared with CollationKey.compareTo. |
void |
BreakIterator.setText(String newText)
Set a new text string to be scanned. |
abstract int |
Collator.compare(String source,
String target)
Compares the source string to the target string according to the collation rules for this Collator. |
abstract CollationKey |
Collator.getCollationKey(String source)
Transforms the String into a series of bits that can be compared bitwise to other CollationKeys. |
boolean |
Collator.equals(String source,
String target)
Convenience method for comparing the equality of two strings based on this Collator's collation rules. |
void |
CollationElementIterator.setText(String source)
Set a new string over which to iterate. |
Constructors in java.text with parameters of type String | |
AttributedCharacterIterator.Attribute(String name)
Constructs an Attribute with the given name. |
|
ChoiceFormat(String newPattern)
Constructs with limits and corresponding formats based on the pattern. |
|
ChoiceFormat(double[] limits,
String[] formats)
Constructs with the limits and the corresponding formats. |
|
StringCharacterIterator(String text)
Constructs an iterator with an initial index of 0. |
|
StringCharacterIterator(String text,
int pos)
Constructs an iterator with the specified initial index. |
|
StringCharacterIterator(String text,
int begin,
int end,
int pos)
Constructs an iterator over the given range of the given string, with the index set at the specified position. |
|
MessageFormat.Field(String name)
Creates a Field with the specified name. |
|
SimpleDateFormat(String pattern)
Constructs a SimpleDateFormat using the given pattern and
the default date format symbols for the default locale. |
|
SimpleDateFormat(String pattern,
Locale locale)
Constructs a SimpleDateFormat using the given pattern and
the default date format symbols for the given locale. |
|
SimpleDateFormat(String pattern,
DateFormatSymbols formatSymbols)
Constructs a SimpleDateFormat using the given pattern and
date format symbols. |
|
AttributedString(String text)
Constructs an AttributedString instance with the given text. |
|
AttributedString(String text,
Map attributes)
Constructs an AttributedString instance with the given text and attributes. |
|
Format.Field(String name)
Creates a Field with the specified name. |
|
DateFormat.Field(String name,
int calendarField)
Creates a Field with the specified name. |
|
DecimalFormat(String pattern)
Creates a DecimalFormat using the given pattern and the symbols for the default locale. |
|
DecimalFormat(String pattern,
DecimalFormatSymbols symbols)
Creates a DecimalFormat using the given pattern and symbols. |
|
NumberFormat.Field(String name)
Creates a Field instance with the specified name. |
|
ParseException(String s,
int errorOffset)
Constructs a ParseException with the specified detail message and offset. |
|
MessageFormat(String pattern)
Constructs a MessageFormat for the default locale and the specified pattern. |
|
MessageFormat(String pattern,
Locale locale)
Constructs a MessageFormat for the specified locale and pattern. |
|
RuleBasedCollator(String rules)
RuleBasedCollator constructor. |
Uses of String in java.util |
Methods in java.util that return String | |
String |
PropertyPermission.getActions()
Returns the "canonical string representation" of the actions. |
String |
ResourceBundle.getString(String key)
Gets a string for the given key from this resource bundle or one of its parents. |
String[] |
ResourceBundle.getStringArray(String key)
Gets a string array for the given key from this resource bundle or one of its parents. |
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. |
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. |
String |
MissingResourceException.getClassName()
Gets parameter passed by constructor. |
String |
MissingResourceException.getKey()
Gets parameter passed by constructor. |
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 |
SimpleTimeZone.toString()
Returns a string representation of this time zone. |
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). |
String |
Vector.toString()
Returns a string representation of this Vector, containing the String representation of each element. |
String |
AbstractCollection.toString()
Returns a string representation of this collection. |
String |
BitSet.toString()
Returns a string representation of this bit set. |
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. |
String |
Date.toString()
Converts this Date object to a String
of the form:
|
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 |
Currency.getCurrencyCode()
Gets the ISO 4217 currency code of this currency. |
String |
Currency.getSymbol()
Gets the symbol of this currency for the default locale. |
String |
Currency.getSymbol(Locale locale)
Gets the symbol of this currency for the specified locale. |
String |
Currency.toString()
Returns the ISO 4217 currency code of this currency. |
String |
Calendar.toString()
Return a string representation of this calendar. |
String |
AbstractMap.toString()
Returns a string representation of this map. |
String |
EventObject.toString()
Returns a String representation of this EventObject. |
Methods in java.util with parameters of type String | |
String |
ResourceBundle.getString(String key)
Gets a string for the given key from this resource bundle or one of its parents. |
String[] |
ResourceBundle.getStringArray(String key)
Gets a string array for the given key from this resource bundle or one of its parents. |
Object |
ResourceBundle.getObject(String key)
Gets an object for the given key from this resource bundle or one of its parents. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName)
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale)
Gets a resource bundle using the specified base name and locale, and the caller's class loader. |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale,
ClassLoader loader)
Gets a resource bundle using the specified base name, locale, and class loader. |
protected abstract Object |
ResourceBundle.handleGetObject(String key)
Gets an object for the given key from this resource bundle. |
void |
TimeZone.setID(String ID)
Sets the time zone ID. |
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the TimeZone for the given ID. |
Object |
ListResourceBundle.handleGetObject(String key)
|
Object |
PropertyResourceBundle.handleGetObject(String key)
|
String |
StringTokenizer.nextToken(String delim)
Returns the next token in this string tokenizer's string. |
Object |
Properties.setProperty(String key,
String value)
Calls the Hashtable method put . |
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 the Java 2 platform v1.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. |
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. |
static Currency |
Currency.getInstance(String currencyCode)
Returns the Currency instance for the given currency code. |
Constructors in java.util with parameters of type String | |
PropertyPermission(String name,
String actions)
Creates a new PropertyPermission object with the specified name. |
|
Locale(String language,
String country,
String variant)
Construct a locale from language, country, variant. |
|
Locale(String language,
String country)
Construct a locale from language, country. |
|
Locale(String language)
Construct a locale from a language code. |
|
MissingResourceException(String s,
String className,
String key)
Constructs a MissingResourceException with the specified information. |
|
ConcurrentModificationException(String message)
Constructs a ConcurrentModificationException with the specified detail message. |
|
SimpleTimeZone(int rawOffset,
String ID)
Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule. |
|
SimpleTimeZone(int rawOffset,
String ID,
int startMonth,
int startDay,
int startDayOfWeek,
int startTime,
int endMonth,
int endDay,
int endDayOfWeek,
int endTime)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time. |
|
SimpleTimeZone(int rawOffset,
String ID,
int startMonth,
int startDay,
int startDayOfWeek,
int startTime,
int endMonth,
int endDay,
int endDayOfWeek,
int endTime,
int dstSavings)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time. |
|
SimpleTimeZone(int rawOffset,
String ID,
int startMonth,
int startDay,
int startDayOfWeek,
int startTime,
int startTimeMode,
int endMonth,
int endDay,
int endDayOfWeek,
int endTime,
int endTimeMode,
int dstSavings)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time. |
|
StringTokenizer(String str,
String delim,
boolean returnDelims)
Constructs a string tokenizer for the specified string. |
|
StringTokenizer(String str,
String delim)
Constructs a string tokenizer for the specified string. |
|
StringTokenizer(String str)
Constructs a string tokenizer for the specified string. |
|
NoSuchElementException(String s)
Constructs a NoSuchElementException , saving a reference
to the error message string s for later retrieval by the
getMessage method. |
|
TooManyListenersException(String s)
Constructs a TooManyListenersException with the specified detail message. |
Uses of String in java.util.jar |
Fields in java.util.jar declared as String | |
static String |
JarFile.MANIFEST_NAME
The JAR manifest file name. |
Methods in java.util.jar that return String | |
String |
Attributes.Name.toString()
Returns the attribute name as a String. |
String |
Attributes.getValue(String name)
Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found. |
String |
Attributes.getValue(Attributes.Name name)
Returns the value of the specified Attributes.Name, or null if the attribute was not found. |
String |
Attributes.putValue(String name,
String value)
Associates the specified value with the specified attribute name, specified as a String. |
Methods in java.util.jar with parameters of type String | |
protected ZipEntry |
JarInputStream.createZipEntry(String name)
Creates a new JarEntry (ZipEntry ) for the
specified JAR file entry name. |
Attributes |
Manifest.getAttributes(String name)
Returns the Attributes for the specified entry name. |
String |
Attributes.getValue(String name)
Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found. |
String |
Attributes.putValue(String name,
String value)
Associates the specified value with the specified attribute name, specified as a String. |
JarEntry |
JarFile.getJarEntry(String name)
Returns the JarEntry for the given entry name or
null if not found. |
ZipEntry |
JarFile.getEntry(String name)
Returns the ZipEntry for the given entry name or
null if not found. |
Constructors in java.util.jar with parameters of type String | |
Attributes.Name(String name)
Constructs a new attribute name using the given string name. |
|
JarEntry(String name)
Creates a new JarEntry for the specified JAR file
entry name. |
|
JarFile(String name)
Creates a new JarFile to read from the specified
file name . |
|
JarFile(String name,
boolean verify)
Creates a new JarFile to read from the specified
file name . |
|
JarException(String s)
Constructs a JarException with the specified detail message. |
Uses of String in java.util.zip |
Methods in java.util.zip that return String | |
String |
ZipEntry.getName()
Returns the name of the entry. |
String |
ZipEntry.getComment()
Returns the comment string for the entry, or null if none. |
String |
ZipEntry.toString()
Returns a string representation of the ZIP entry. |
String |
ZipFile.getName()
Returns the path name of the ZIP file. |
Methods in java.util.zip with parameters of type String | |
void |
ZipEntry.setComment(String comment)
Sets the optional comment string for the entry. |
ZipEntry |
ZipFile.getEntry(String name)
Returns the zip file entry for the specified name, or null if not found. |
protected ZipEntry |
ZipInputStream.createZipEntry(String name)
Creates a new ZipEntry object for the specified
entry name. |
void |
ZipOutputStream.setComment(String comment)
Sets the ZIP file comment. |
Constructors in java.util.zip with parameters of type String | |
ZipEntry(String name)
Creates a new zip entry with the specified name. |
|
ZipFile(String name)
Opens a zip file for reading. |
|
ZipException(String s)
Constructs an ZipException with the specified detail
message. |
|
DataFormatException(String s)
Constructs a DataFormatException with the specified detail message. |
Uses of String in javax.microedition.io |
Fields in javax.microedition.io declared as String | |
static String |
HttpConnection.HEAD
HTTP Head method. |
static String |
HttpConnection.GET
HTTP Get method. |
static String |
HttpConnection.POST
HTTP Post method. |
Methods in javax.microedition.io that return String | |
String |
HttpConnection.getURL()
Return a string representation of the URL for this connection. |
String |
HttpConnection.getProtocol()
Returns the protocol name of the URL of this HttpConnection . |
String |
HttpConnection.getHost()
Returns the host information of the URL of this HttpConnection . |
String |
HttpConnection.getFile()
Returns the file portion of the URL of this HttpConnection . |
String |
HttpConnection.getRef()
Returns the ref portion of the URL of this HttpConnection . |
String |
HttpConnection.getQuery()
Returns the query portion of the URL of this HttpConnection . |
String |
HttpConnection.getRequestMethod()
Get the current request method. |
String |
HttpConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
String |
HttpConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
String |
HttpConnection.getHeaderField(String name)
Returns the value of the named header field. |
String |
HttpConnection.getHeaderField(int n)
Gets a header field value by index. |
String |
HttpConnection.getHeaderFieldKey(int n)
Gets a header field key by index. |
String |
UDPDatagramConnection.getLocalAddress()
Gets the local address to which the datagram connection is bound. |
String |
Datagram.getAddress()
Get the address of the datagram. |
String |
ContentConnection.getType()
Returns the type of content that the resource connected to is providing. |
String |
ContentConnection.getEncoding()
Returns a string describing the encoding of the content which the resource connected to is providing. |
String |
SecurityInfo.getProtocolVersion()
Returns the protocol version. |
String |
SecurityInfo.getProtocolName()
Returns the secure protocol name. |
String |
SecurityInfo.getCipherSuite()
Returns the name of the cipher suite in use for the connection. |
String |
SocketConnection.getLocalAddress()
Gets the local address to which the socket is bound. |
String |
SocketConnection.getAddress()
Gets the remote address to which the socket is bound. |
String |
ServerSocketConnection.getLocalAddress()
Gets the local address to which the socket is bound. |
Methods in javax.microedition.io with parameters of type String | |
void |
HttpConnection.setRequestMethod(String method)
Set the method for the URL request, one of: GET POST HEAD are legal, subject to protocol restrictions. |
String |
HttpConnection.getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
void |
HttpConnection.setRequestProperty(String key,
String value)
Sets the general request property. |
String |
HttpConnection.getHeaderField(String name)
Returns the value of the named header field. |
int |
HttpConnection.getHeaderFieldInt(String name,
int def)
Returns the value of the named field parsed as a number. |
long |
HttpConnection.getHeaderFieldDate(String name,
long def)
Returns the value of the named field parsed as date. |
void |
Datagram.setAddress(String addr)
Set datagram address. |
Datagram |
DatagramConnection.newDatagram(int size,
String addr)
Create a new datagram object. |
Datagram |
DatagramConnection.newDatagram(byte[] buf,
int size,
String addr)
Make a new datagram object. |
static Connection |
Connector.open(String name)
Create and open a Connection. |
static Connection |
Connector.open(String name,
int mode)
Create and open a Connection. |
static Connection |
Connector.open(String name,
int mode,
boolean timeouts)
Create and open a Connection. |
static DataInputStream |
Connector.openDataInputStream(String name)
Create and open a connection input stream. |
static DataOutputStream |
Connector.openDataOutputStream(String name)
Create and open a connection output stream. |
static InputStream |
Connector.openInputStream(String name)
Create and open a connection input stream. |
static OutputStream |
Connector.openOutputStream(String name)
Create and open a connection output stream. |
Constructors in javax.microedition.io with parameters of type String | |
ConnectionNotFoundException(String s)
Constructs a ConnectionNotFoundException with the specified detail message. |
Uses of String in javax.microedition.pki |
Methods in javax.microedition.pki that return String | |
String |
Certificate.getSubject()
Gets the name of this certificate's subject. |
String |
Certificate.getIssuer()
Gets the name of this certificate's issuer. |
String |
Certificate.getType()
Get the type of the Certificate . |
String |
Certificate.getVersion()
Gets the version number of this Certificate . |
String |
Certificate.getSigAlgName()
Gets the name of the algorithm used to sign the Certificate . |
String |
Certificate.getSerialNumber()
Gets the printable form of the serial number of this Certificate . |
Constructors in javax.microedition.pki with parameters of type String | |
CertificateException(String message,
Certificate certificate,
byte status)
Create a new exception with a message, Certificate ,
and specific error reason. |
Uses of String in javax.microedition.xlet |
Fields in javax.microedition.xlet declared as String | |
static String |
XletContext.ARGS
The property key used to obtain initialization arguments for the Xlet. |
Methods in javax.microedition.xlet with parameters of type String | |
Object |
XletContext.getXletProperty(String key)
Provides an Xlet with a mechanism to retrieve named properties from the XletContext. |
Constructors in javax.microedition.xlet with parameters of type String | |
XletStateChangeException(String s)
Constructs an exception with the specified detail message. |
|
UnavailableContainerException(String s)
Constructs an exception with the specified detail message. |
Uses of String in javax.microedition.xlet.ixc |
Methods in javax.microedition.xlet.ixc that return String | |
abstract String[] |
IxcRegistry.list()
Returns an array of the names bound in the registry. |
String |
IxcPermission.getActions()
Returns the "canonical string representation" of the actions. |
Methods in javax.microedition.xlet.ixc with parameters of type String | |
abstract Remote |
IxcRegistry.lookup(String name)
Returns a reference, a stub, for the remote object associated with the specified name . |
abstract void |
IxcRegistry.bind(String name,
Remote obj)
Binds the specified name to a remote object. |
abstract void |
IxcRegistry.unbind(String name)
Destroys the binding for the specified name that is associated with a remote object. |
abstract void |
IxcRegistry.rebind(String name,
Remote obj)
Rebinds the specified name to a new remote object. |
Constructors in javax.microedition.xlet.ixc with parameters of type String | |
StubException(String s)
Constructs a StubException with the specified
detail message. |
|
StubException(String s,
Throwable ex)
Constructs a StubException with the specified
detail message and nested exception. |
|
IxcPermission(String name,
String actions)
Creates a new IxcPermission object with the specified name and actions. |
Uses of String in javax.security.auth.x500 |
Fields in javax.security.auth.x500 declared as String | |
static String |
X500Principal.RFC1779
RFC 1779 String format of Distinguished Names. |
static String |
X500Principal.RFC2253
RFC 2253 String format of Distinguished Names. |
static String |
X500Principal.CANONICAL
Canonical String format of Distinguished Names. |
Methods in javax.security.auth.x500 that return String | |
String |
X500Principal.getName()
Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253. |
String |
X500Principal.getName(String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
String |
X500Principal.toString()
Return a user-friendly string representation of this X500Principal . |
Methods in javax.security.auth.x500 with parameters of type String | |
String |
X500Principal.getName(String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
Constructors in javax.security.auth.x500 with parameters of type String | |
X500Principal(String name)
Creates an X500Principal from a string representation of
an X.500 distinguished name (ex:
"CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US"). |
|
JSR 216 (Maintenance Release) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |