8080422: some docs cleanup for core libs
Some docs cleanup Reviewed-by: rriggs, lancea
This commit is contained in:
parent
d4f45f51c9
commit
30cda926e9
@ -490,7 +490,7 @@ public class ChoiceFormat extends NumberFormat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Equality comparision between two
|
* Equality comparison between two
|
||||||
*/
|
*/
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null) return false;
|
if (obj == null) return false;
|
||||||
|
@ -85,7 +85,7 @@ class ArrayPrefixHelpers {
|
|||||||
*
|
*
|
||||||
* As usual for this sort of utility, there are 4 versions, that
|
* As usual for this sort of utility, there are 4 versions, that
|
||||||
* are simple copy/paste/adapt variants of each other. (The
|
* are simple copy/paste/adapt variants of each other. (The
|
||||||
* double and int versions differ from long version soley by
|
* double and int versions differ from long version solely by
|
||||||
* replacing "long" (with case-matching)).
|
* replacing "long" (with case-matching)).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1172,7 +1172,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||||||
* {@code fieldValuePairs} that are pairs of a field and its value.
|
* {@code fieldValuePairs} that are pairs of a field and its value.
|
||||||
* For example,
|
* For example,
|
||||||
* <pre>
|
* <pre>
|
||||||
* setFeilds(Calendar.YEAR, 2013,
|
* setFields(Calendar.YEAR, 2013,
|
||||||
* Calendar.MONTH, Calendar.DECEMBER,
|
* Calendar.MONTH, Calendar.DECEMBER,
|
||||||
* Calendar.DAY_OF_MONTH, 23);</pre>
|
* Calendar.DAY_OF_MONTH, 23);</pre>
|
||||||
* is equivalent to the sequence of the following
|
* is equivalent to the sequence of the following
|
||||||
@ -1298,7 +1298,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the time zone parameter to the given {@code zone}. If no time
|
* Sets the time zone parameter to the given {@code zone}. If no time
|
||||||
* zone parameter is given to this {@code Caledar.Builder}, the
|
* zone parameter is given to this {@code Calendar.Builder}, the
|
||||||
* {@linkplain TimeZone#getDefault() default
|
* {@linkplain TimeZone#getDefault() default
|
||||||
* <code>TimeZone</code>} will be used in the {@link #build() build}
|
* <code>TimeZone</code>} will be used in the {@link #build() build}
|
||||||
* method.
|
* method.
|
||||||
@ -3316,7 +3316,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||||||
* @param field the calendar field
|
* @param field the calendar field
|
||||||
* @return the calendar field name
|
* @return the calendar field name
|
||||||
* @exception IndexOutOfBoundsException if <code>field</code> is negative,
|
* @exception IndexOutOfBoundsException if <code>field</code> is negative,
|
||||||
* equal to or greater then <code>FIELD_COUNT</code>.
|
* equal to or greater than {@code FIELD_COUNT}.
|
||||||
*/
|
*/
|
||||||
static String getFieldName(int field) {
|
static String getFieldName(int field) {
|
||||||
return FIELD_NAME[field];
|
return FIELD_NAME[field];
|
||||||
|
@ -537,7 +537,7 @@ public interface Collection<E> extends Iterable<E> {
|
|||||||
* @implSpec
|
* @implSpec
|
||||||
* The default implementation creates a
|
* The default implementation creates a
|
||||||
* <em><a href="Spliterator.html#binding">late-binding</a></em> spliterator
|
* <em><a href="Spliterator.html#binding">late-binding</a></em> spliterator
|
||||||
* from the collections's {@code Iterator}. The spliterator inherits the
|
* from the collection's {@code Iterator}. The spliterator inherits the
|
||||||
* <em>fail-fast</em> properties of the collection's iterator.
|
* <em>fail-fast</em> properties of the collection's iterator.
|
||||||
* <p>
|
* <p>
|
||||||
* The created {@code Spliterator} reports {@link Spliterator#SIZED}.
|
* The created {@code Spliterator} reports {@link Spliterator#SIZED}.
|
||||||
|
@ -719,7 +719,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||||||
* created and cached.
|
* created and cached.
|
||||||
*
|
*
|
||||||
* @param language lowercase 2 to 8 language code.
|
* @param language lowercase 2 to 8 language code.
|
||||||
* @param country uppercase two-letter ISO-3166 code and numric-3 UN M.49 area code.
|
* @param country uppercase two-letter ISO-3166 code and numeric-3 UN M.49 area code.
|
||||||
* @param variant vendor and browser specific code. See class description.
|
* @param variant vendor and browser specific code. See class description.
|
||||||
* @return the <code>Locale</code> instance requested
|
* @return the <code>Locale</code> instance requested
|
||||||
* @exception NullPointerException if any argument is null.
|
* @exception NullPointerException if any argument is null.
|
||||||
@ -1236,7 +1236,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||||||
/**
|
/**
|
||||||
* Package private method returning the Locale's LocaleExtensions,
|
* Package private method returning the Locale's LocaleExtensions,
|
||||||
* used by ResourceBundle.
|
* used by ResourceBundle.
|
||||||
* @return locale exnteions of this Locale,
|
* @return locale extensions of this Locale,
|
||||||
* or {@code null} if no extensions are defined
|
* or {@code null} if no extensions are defined
|
||||||
*/
|
*/
|
||||||
LocaleExtensions getLocaleExtensions() {
|
LocaleExtensions getLocaleExtensions() {
|
||||||
@ -2609,7 +2609,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||||||
* href="./Locale.html#def_locale_extension">well-formed</a> or an exception
|
* href="./Locale.html#def_locale_extension">well-formed</a> or an exception
|
||||||
* is thrown.
|
* is thrown.
|
||||||
*
|
*
|
||||||
* <p>Attribute comparision for removal is case-insensitive.
|
* <p>Attribute comparison for removal is case-insensitive.
|
||||||
*
|
*
|
||||||
* @param attribute the attribute
|
* @param attribute the attribute
|
||||||
* @return This builder.
|
* @return This builder.
|
||||||
|
@ -859,7 +859,7 @@ public class TreeMap<K,V>
|
|||||||
* Returns a {@link Set} view of the mappings contained in this map.
|
* Returns a {@link Set} view of the mappings contained in this map.
|
||||||
*
|
*
|
||||||
* <p>The set's iterator returns the entries in ascending key order. The
|
* <p>The set's iterator returns the entries in ascending key order. The
|
||||||
* sets's spliterator is
|
* set's spliterator is
|
||||||
* <em><a href="Spliterator.html#binding">late-binding</a></em>,
|
* <em><a href="Spliterator.html#binding">late-binding</a></em>,
|
||||||
* <em>fail-fast</em>, and additionally reports {@link Spliterator#SORTED} and
|
* <em>fail-fast</em>, and additionally reports {@link Spliterator#SORTED} and
|
||||||
* {@link Spliterator#ORDERED} with an encounter order that is ascending key
|
* {@link Spliterator#ORDERED} with an encounter order that is ascending key
|
||||||
@ -2643,7 +2643,7 @@ public class TreeMap<K,V>
|
|||||||
* child, also serving as origin for the split-off spliterator.
|
* child, also serving as origin for the split-off spliterator.
|
||||||
* Left-hands are symmetric. Descending versions place the origin
|
* Left-hands are symmetric. Descending versions place the origin
|
||||||
* at the end and invert ascending split rules. This base class
|
* at the end and invert ascending split rules. This base class
|
||||||
* is non-commital about directionality, or whether the top-level
|
* is non-committal about directionality, or whether the top-level
|
||||||
* spliterator covers the whole tree. This means that the actual
|
* spliterator covers the whole tree. This means that the actual
|
||||||
* split mechanics are located in subclasses. Some of the subclass
|
* split mechanics are located in subclasses. Some of the subclass
|
||||||
* trySplit methods are identical (except for return types), but
|
* trySplit methods are identical (except for return types), but
|
||||||
|
@ -481,7 +481,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
|||||||
*
|
*
|
||||||
* Maintaining API and serialization compatibility with previous
|
* Maintaining API and serialization compatibility with previous
|
||||||
* versions of this class introduces several oddities. Mainly: We
|
* versions of this class introduces several oddities. Mainly: We
|
||||||
* leave untouched but unused constructor arguments refering to
|
* leave untouched but unused constructor arguments referring to
|
||||||
* concurrencyLevel. We accept a loadFactor constructor argument,
|
* concurrencyLevel. We accept a loadFactor constructor argument,
|
||||||
* but apply it only to initial table capacity (which is the only
|
* but apply it only to initial table capacity (which is the only
|
||||||
* time that we can guarantee to honor it.) We also declare an
|
* time that we can guarantee to honor it.) We also declare an
|
||||||
|
@ -2710,7 +2710,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns lowest absolute key (ignoring directonality).
|
* Returns lowest absolute key (ignoring directionality).
|
||||||
*/
|
*/
|
||||||
K lowestKey() {
|
K lowestKey() {
|
||||||
Comparator<? super K> cmp = m.comparator;
|
Comparator<? super K> cmp = m.comparator;
|
||||||
@ -2722,7 +2722,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns highest absolute key (ignoring directonality).
|
* Returns highest absolute key (ignoring directionality).
|
||||||
*/
|
*/
|
||||||
K highestKey() {
|
K highestKey() {
|
||||||
Comparator<? super K> cmp = m.comparator;
|
Comparator<? super K> cmp = m.comparator;
|
||||||
|
@ -145,12 +145,12 @@ public abstract class Parser {
|
|||||||
/**
|
/**
|
||||||
* ASCII character type array.
|
* ASCII character type array.
|
||||||
*
|
*
|
||||||
* This array maps an ASCII (7 bit) character to the character type.<br />
|
* This array maps an ASCII (7 bit) character to the character type.<br>
|
||||||
* Possible character type values are:<br /> - ' ' for any kind of white
|
* Possible character type values are:<br> - ' ' for any kind of white
|
||||||
* space character;<br /> - 'a' for any lower case alphabetical character
|
* space character;<br> - 'a' for any lower case alphabetical character
|
||||||
* value;<br /> - 'A' for any upper case alphabetical character value;<br />
|
* value;<br> - 'A' for any upper case alphabetical character value;<br>
|
||||||
* - 'd' for any decimal digit character value;<br /> - 'z' for any
|
* - 'd' for any decimal digit character value;<br> - 'z' for any
|
||||||
* character less then ' ' except '\t', '\n', '\r';<br /> An ASCII (7 bit)
|
* character less than ' ' except '\t', '\n', '\r';<br> An ASCII (7 bit)
|
||||||
* character which does not fall in any category listed above is mapped to
|
* character which does not fall in any category listed above is mapped to
|
||||||
* it self.
|
* it self.
|
||||||
*/
|
*/
|
||||||
@ -158,11 +158,11 @@ public abstract class Parser {
|
|||||||
/**
|
/**
|
||||||
* NMTOKEN character type array.
|
* NMTOKEN character type array.
|
||||||
*
|
*
|
||||||
* This array maps an ASCII (7 bit) character to the character type.<br />
|
* This array maps an ASCII (7 bit) character to the character type.<br>
|
||||||
* Possible character type values are:<br /> - 0 for underscore ('_') or any
|
* Possible character type values are:<br> - 0 for underscore ('_') or any
|
||||||
* lower and upper case alphabetical character value;<br /> - 1 for colon
|
* lower and upper case alphabetical character value;<br> - 1 for colon
|
||||||
* (':') character;<br /> - 2 for dash ('-') and dot ('.') or any decimal
|
* (':') character;<br> - 2 for dash ('-') and dot ('.') or any decimal
|
||||||
* digit character value;<br /> - 3 for any kind of white space character<br
|
* digit character value;<br> - 3 for any kind of white space character<br
|
||||||
* /> An ASCII (7 bit) character which does not fall in any category listed
|
* /> An ASCII (7 bit) character which does not fall in any category listed
|
||||||
* above is mapped to 0xff.
|
* above is mapped to 0xff.
|
||||||
*/
|
*/
|
||||||
@ -1841,10 +1841,12 @@ public abstract class Parser {
|
|||||||
/**
|
/**
|
||||||
* Reads an attribute value.
|
* Reads an attribute value.
|
||||||
*
|
*
|
||||||
* The grammar which this method can read is:<br />
|
* The grammar this method can read is:
|
||||||
* <code>eqstr := S "=" qstr</code><br />
|
* <pre>{@code
|
||||||
* <code>qstr := S ("'" string "'") |
|
* eqstr := S "=" qstr
|
||||||
* ('"' string '"')</code><br /> This method resolves entities
|
* qstr := S ("'" string "'") | ('"' string '"')
|
||||||
|
* }</pre>
|
||||||
|
* This method resolves entities
|
||||||
* inside a string unless the parser parses DTD.
|
* inside a string unless the parser parses DTD.
|
||||||
*
|
*
|
||||||
* @param flag The '=' character forces the method to accept the '='
|
* @param flag The '=' character forces the method to accept the '='
|
||||||
@ -2633,7 +2635,7 @@ public abstract class Parser {
|
|||||||
* Reports characters and empties the parser's buffer. This method is called
|
* Reports characters and empties the parser's buffer. This method is called
|
||||||
* only if parser is going to return control to the main loop. This means
|
* only if parser is going to return control to the main loop. This means
|
||||||
* that this method may use parser buffer to report white space without
|
* that this method may use parser buffer to report white space without
|
||||||
* copeing characters to temporary buffer.
|
* copying characters to temporary buffer.
|
||||||
*/
|
*/
|
||||||
protected abstract void bflash()
|
protected abstract void bflash()
|
||||||
throws Exception;
|
throws Exception;
|
||||||
@ -2642,7 +2644,7 @@ public abstract class Parser {
|
|||||||
* Reports white space characters and empties the parser's buffer. This
|
* Reports white space characters and empties the parser's buffer. This
|
||||||
* method is called only if parser is going to return control to the main
|
* method is called only if parser is going to return control to the main
|
||||||
* loop. This means that this method may use parser buffer to report white
|
* loop. This means that this method may use parser buffer to report white
|
||||||
* space without copeing characters to temporary buffer.
|
* space without copying characters to temporary buffer.
|
||||||
*/
|
*/
|
||||||
protected abstract void bflash_ws()
|
protected abstract void bflash_ws()
|
||||||
throws Exception;
|
throws Exception;
|
||||||
@ -3290,16 +3292,20 @@ public abstract class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maps a character to it's type.
|
* Maps a character to its type.
|
||||||
*
|
*
|
||||||
* Possible character type values are:<br /> - ' ' for any kind of white
|
* Possible character type values are:
|
||||||
* space character;<br /> - 'a' for any lower case alphabetical character
|
* <ul>
|
||||||
* value;<br /> - 'A' for any upper case alphabetical character value;<br />
|
* <li>' ' - for any kind of whitespace character;</li>
|
||||||
* - 'd' for any decimal digit character value;<br /> - 'z' for any
|
* <li>'a' - for any lower case alphabetical character value;</li>
|
||||||
* character less then ' ' except '\t', '\n', '\r';<br /> - 'X' for any not
|
* <li>'A' - for any upper case alphabetical character value;</li>
|
||||||
* ASCII character;<br /> - 'Z' for EOS character.<br /> An ASCII (7 bit)
|
* <li>'d' - for any decimal digit character value;</li>
|
||||||
* character which does not fall in any category listed above is mapped to
|
* <li>'z' - for any character less than ' ' except '\t', '\n', '\r';</li>
|
||||||
* it self.
|
* <li>'X' - for any not ASCII character;</li>
|
||||||
|
* <li>'Z' - for EOS character.</li>
|
||||||
|
* </ul>
|
||||||
|
* An ASCII (7 bit) character which does not fall in any category
|
||||||
|
* listed above is mapped to itself.
|
||||||
*
|
*
|
||||||
* @param ch The character to map.
|
* @param ch The character to map.
|
||||||
* @return The type of character.
|
* @return The type of character.
|
||||||
|
@ -649,7 +649,7 @@ final class ParserSAX
|
|||||||
* Reports characters and empties the parser's buffer. This method is called
|
* Reports characters and empties the parser's buffer. This method is called
|
||||||
* only if parser is going to return control to the main loop. This means
|
* only if parser is going to return control to the main loop. This means
|
||||||
* that this method may use parser buffer to report white space without
|
* that this method may use parser buffer to report white space without
|
||||||
* copeing characters to temporary buffer.
|
* copying characters to temporary buffer.
|
||||||
*/
|
*/
|
||||||
protected void bflash() throws SAXException {
|
protected void bflash() throws SAXException {
|
||||||
if (mBuffIdx >= 0) {
|
if (mBuffIdx >= 0) {
|
||||||
@ -663,7 +663,7 @@ final class ParserSAX
|
|||||||
* Reports white space characters and empties the parser's buffer. This
|
* Reports white space characters and empties the parser's buffer. This
|
||||||
* method is called only if parser is going to return control to the main
|
* method is called only if parser is going to return control to the main
|
||||||
* loop. This means that this method may use parser buffer to report white
|
* loop. This means that this method may use parser buffer to report white
|
||||||
* space without copeing characters to temporary buffer.
|
* space without copying characters to temporary buffer.
|
||||||
*/
|
*/
|
||||||
protected void bflash_ws() throws SAXException {
|
protected void bflash_ws() throws SAXException {
|
||||||
if (mBuffIdx >= 0) {
|
if (mBuffIdx >= 0) {
|
||||||
|
@ -196,7 +196,7 @@ public
|
|||||||
/**
|
/**
|
||||||
* Gets the object associated with the specified key in the Cache.
|
* Gets the object associated with the specified key in the Cache.
|
||||||
* @param key the key in the hash table
|
* @param key the key in the hash table
|
||||||
* @returns the element for the key or null if the key
|
* @return the element for the key or null if the key
|
||||||
* is not defined in the hash table.
|
* is not defined in the hash table.
|
||||||
* @see Cache#put
|
* @see Cache#put
|
||||||
*/
|
*/
|
||||||
|
@ -120,7 +120,7 @@ public abstract class CharacterDecoder {
|
|||||||
/**
|
/**
|
||||||
* This method does an actual decode. It takes the decoded bytes and
|
* This method does an actual decode. It takes the decoded bytes and
|
||||||
* writes them to the OutputStream. The integer <i>l</i> tells the
|
* writes them to the OutputStream. The integer <i>l</i> tells the
|
||||||
* method how many bytes are required. This is always <= bytesPerAtom().
|
* method how many bytes are required. This is always {@literal <=} bytesPerAtom().
|
||||||
*/
|
*/
|
||||||
protected void decodeAtom(PushbackInputStream aStream, OutputStream bStream, int l) throws IOException {
|
protected void decodeAtom(PushbackInputStream aStream, OutputStream bStream, int l) throws IOException {
|
||||||
throw new CEStreamExhausted();
|
throw new CEStreamExhausted();
|
||||||
|
@ -68,7 +68,7 @@ import java.nio.ByteBuffer;
|
|||||||
* referenced in the See Also list below.
|
* referenced in the See Also list below.
|
||||||
*
|
*
|
||||||
* @author Chuck McManis
|
* @author Chuck McManis
|
||||||
* @see CharacterDecoder;
|
* @see CharacterDecoder
|
||||||
* @see UCEncoder
|
* @see UCEncoder
|
||||||
* @see UUEncoder
|
* @see UUEncoder
|
||||||
* @see BASE64Encoder
|
* @see BASE64Encoder
|
||||||
@ -107,7 +107,7 @@ public abstract class CharacterEncoder {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Encode the suffix that ends every output line. By default
|
* Encode the suffix that ends every output line. By default
|
||||||
* this method just prints a <newline> into the output stream.
|
* this method just prints a newline into the output stream.
|
||||||
*/
|
*/
|
||||||
protected void encodeLineSuffix(OutputStream aStream) throws IOException {
|
protected void encodeLineSuffix(OutputStream aStream) throws IOException {
|
||||||
pStream.println();
|
pStream.println();
|
||||||
|
@ -34,7 +34,7 @@ package sun.misc;
|
|||||||
* with the lock() and unlock() methods. However if there is a thread
|
* with the lock() and unlock() methods. However if there is a thread
|
||||||
* waiting for the state variable to become a particular value and you
|
* waiting for the state variable to become a particular value and you
|
||||||
* simply call Unlock(), that thread will not be able to acquire the
|
* simply call Unlock(), that thread will not be able to acquire the
|
||||||
* lock until the state variable equals its desired value. <p>
|
* lock until the state variable equals its desired value.
|
||||||
*
|
*
|
||||||
* @author Peter King
|
* @author Peter King
|
||||||
*/
|
*/
|
||||||
|
@ -45,26 +45,26 @@ import java.net.MalformedURLException;
|
|||||||
import sun.net.www.ParseUtil;
|
import sun.net.www.ParseUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* This class checks dependent extensions a particular jar file may have
|
* This class checks dependent extensions a particular jar file may have
|
||||||
* declared through its manifest attributes.
|
* declared through its manifest attributes.
|
||||||
* </p>
|
* <p>
|
||||||
* Jar file declared dependent extensions through the extension-list
|
* Jar file declared dependent extensions through the extension-list
|
||||||
* attribute. The extension-list contains a list of keys used to
|
* attribute. The extension-list contains a list of keys used to
|
||||||
* fetch the other attributes describing the required extension.
|
* fetch the other attributes describing the required extension.
|
||||||
* If key is the extension key declared in the extension-list
|
* If key is the extension key declared in the extension-list
|
||||||
* attribute, the following describing attribute can be found in
|
* attribute, the following describing attribute can be found in
|
||||||
* the manifest:
|
* the manifest:
|
||||||
* key-Extension-Name: (Specification package name)
|
* <ul>
|
||||||
* key-Specification-Version: (Specification-Version)
|
* <li>key-Extension-Name: (Specification package name)</li>
|
||||||
* key-Implementation-Version: (Implementation-Version)
|
* <li>key-Specification-Version: (Specification-Version)</li>
|
||||||
* key-Implementation-Vendor-Id: (Imlementation-Vendor-Id)
|
* <li>key-Implementation-Version: (Implementation-Version)</li>
|
||||||
* key-Implementation-Version: (Implementation version)
|
* <li>key-Implementation-Vendor-Id: (Imlementation-Vendor-Id)</li>
|
||||||
* key-Implementation-URL: (URL to download the requested extension)
|
* <li>key-Implementation-Version: (Implementation version)</li>
|
||||||
|
* <li>key-Implementation-URL: (URL to download the requested extension)</li>
|
||||||
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* This class also maintain versioning consistency of installed
|
* This class also maintain versioning consistency of installed
|
||||||
* extensions dependencies declared in jar file manifest.
|
* extensions dependencies declared in jar file manifest.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @deprecated this class will be removed in a future release.
|
* @deprecated this class will be removed in a future release.
|
||||||
* @author Jerome Dochez
|
* @author Jerome Dochez
|
||||||
@ -76,10 +76,9 @@ public class ExtensionDependency {
|
|||||||
private static Vector<ExtensionInstallationProvider> providers;
|
private static Vector<ExtensionInstallationProvider> providers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Register an ExtensionInstallationProvider. The provider is responsible
|
* Register an ExtensionInstallationProvider. The provider is responsible
|
||||||
* for handling the installation (upgrade) of any missing extensions.
|
* for handling the installation (upgrade) of any missing extensions.
|
||||||
* </p>
|
*
|
||||||
* @param eip ExtensionInstallationProvider implementation
|
* @param eip ExtensionInstallationProvider implementation
|
||||||
*/
|
*/
|
||||||
public synchronized static void addExtensionInstallationProvider
|
public synchronized static void addExtensionInstallationProvider
|
||||||
@ -92,9 +91,7 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Unregister a previously installed installation provider
|
* Unregister a previously installed installation provider
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
public synchronized static void removeExtensionInstallationProvider
|
public synchronized static void removeExtensionInstallationProvider
|
||||||
(ExtensionInstallationProvider eip)
|
(ExtensionInstallationProvider eip)
|
||||||
@ -103,10 +100,9 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Checks the dependencies of the jar file on installed extension.
|
* Checks the dependencies of the jar file on installed extension.
|
||||||
* </p>
|
*
|
||||||
* @param jarFile containing the attriutes declaring the dependencies
|
* @param jar containing the attributes declaring the dependencies
|
||||||
*/
|
*/
|
||||||
public static boolean checkExtensionsDependencies(JarFile jar)
|
public static boolean checkExtensionsDependencies(JarFile jar)
|
||||||
{
|
{
|
||||||
@ -182,9 +178,8 @@ public class ExtensionDependency {
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* Check that a particular dependency on an extension is satisfied.
|
* Check that a particular dependency on an extension is satisfied.
|
||||||
* </p>
|
*
|
||||||
* @param extensionName is the key used for the attributes in the manifest
|
* @param extensionName is the key used for the attributes in the manifest
|
||||||
* @param attr is the attributes of the manifest file
|
* @param attr is the attributes of the manifest file
|
||||||
*
|
*
|
||||||
@ -204,10 +199,9 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* Check if a particular extension is part of the currently installed
|
* Check if a particular extension is part of the currently installed
|
||||||
* extensions.
|
* extensions.
|
||||||
* </p>
|
*
|
||||||
* @param extensionName is the key for the attributes in the manifest
|
* @param extensionName is the key for the attributes in the manifest
|
||||||
* @param attr is the attributes of the manifest
|
* @param attr is the attributes of the manifest
|
||||||
*
|
*
|
||||||
@ -262,11 +256,9 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* Check if the requested extension described by the attributes
|
* Check if the requested extension described by the attributes
|
||||||
* in the manifest under the key extensionName is compatible with
|
* in the manifest under the key extensionName is compatible with
|
||||||
* the jar file.
|
* the jar file.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @param extensionName key in the attribute list
|
* @param extensionName key in the attribute list
|
||||||
* @param attr manifest file attributes
|
* @param attr manifest file attributes
|
||||||
@ -337,10 +329,8 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* An required extension is missing, if an ExtensionInstallationProvider is
|
* An required extension is missing, if an ExtensionInstallationProvider is
|
||||||
* registered, delegate the installation of that particular extension to it.
|
* registered, delegate the installation of that particular extension to it.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @param reqInfo Missing extension information
|
* @param reqInfo Missing extension information
|
||||||
* @param instInfo Older installed version information
|
* @param instInfo Older installed version information
|
||||||
@ -380,11 +370,9 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Checks if the extension, that is specified in the extension-list in
|
* Checks if the extension, that is specified in the extension-list in
|
||||||
* the applet jar manifest, is already installed (i.e. exists in the
|
* the applet jar manifest, is already installed (i.e. exists in the
|
||||||
* extension directory).
|
* extension directory).
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @param extensionName extension name in the extension-list
|
* @param extensionName extension name in the extension-list
|
||||||
*
|
*
|
||||||
@ -428,9 +416,7 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* @return the java.ext.dirs property as a list of directory
|
* @return the java.ext.dirs property as a list of directory
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
private static File[] getExtDirs() {
|
private static File[] getExtDirs() {
|
||||||
String s = java.security.AccessController.doPrivileged(
|
String s = java.security.AccessController.doPrivileged(
|
||||||
@ -456,9 +442,8 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* Scan the directories and return all files installed in those
|
* Scan the directories and return all files installed in those
|
||||||
* </p>
|
*
|
||||||
* @param dirs list of directories to scan
|
* @param dirs list of directories to scan
|
||||||
*
|
*
|
||||||
* @return the list of files installed in all the directories
|
* @return the list of files installed in all the directories
|
||||||
@ -483,9 +468,7 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* @return the list of installed extensions jar files
|
* @return the list of installed extensions jar files
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
private File[] getInstalledExtensions() throws IOException {
|
private File[] getInstalledExtensions() throws IOException {
|
||||||
return AccessController.doPrivileged(
|
return AccessController.doPrivileged(
|
||||||
@ -503,9 +486,7 @@ public class ExtensionDependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* Add the newly installed jar file to the extension class loader.
|
* Add the newly installed jar file to the extension class loader.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @param cl the current installed extension class loader
|
* @param cl the current installed extension class loader
|
||||||
*
|
*
|
||||||
|
@ -45,9 +45,7 @@ import java.lang.Character.*;
|
|||||||
public class ExtensionInfo {
|
public class ExtensionInfo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* public static values returned by the isCompatible method
|
* public static values returned by the isCompatible method
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
public static final int COMPATIBLE = 0;
|
public static final int COMPATIBLE = 0;
|
||||||
public static final int REQUIRE_SPECIFICATION_UPGRADE = 1;
|
public static final int REQUIRE_SPECIFICATION_UPGRADE = 1;
|
||||||
@ -56,10 +54,8 @@ public class ExtensionInfo {
|
|||||||
public static final int INCOMPATIBLE = 4;
|
public static final int INCOMPATIBLE = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* attributes fully describer an extension. The underlying described
|
* attributes fully describer an extension. The underlying described
|
||||||
* extension may be installed and requested.
|
* extension may be installed and requested.
|
||||||
* <p>
|
|
||||||
*/
|
*/
|
||||||
public String title;
|
public String title;
|
||||||
public String name;
|
public String name;
|
||||||
@ -76,15 +72,12 @@ public class ExtensionInfo {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Create a new uninitialized extension information object
|
* Create a new uninitialized extension information object
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
public ExtensionInfo() {
|
public ExtensionInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Create and initialize an extension information object.
|
* Create and initialize an extension information object.
|
||||||
* The initialization uses the attributes passed as being
|
* The initialization uses the attributes passed as being
|
||||||
* the content of a manifest file to load the extension
|
* the content of a manifest file to load the extension
|
||||||
@ -93,7 +86,7 @@ public class ExtensionInfo {
|
|||||||
* extension they may depend on, the extension key parameter
|
* extension they may depend on, the extension key parameter
|
||||||
* is prepanded to the attribute name to make the key used
|
* is prepanded to the attribute name to make the key used
|
||||||
* to retrieve the attribute from the manifest file
|
* to retrieve the attribute from the manifest file
|
||||||
* <p>
|
*
|
||||||
* @param extensionKey unique extension key in the manifest
|
* @param extensionKey unique extension key in the manifest
|
||||||
* @param attr Attributes of a manifest file
|
* @param attr Attributes of a manifest file
|
||||||
*/
|
*/
|
||||||
@ -149,13 +142,11 @@ public class ExtensionInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* @return true if the extension described by this extension information
|
* @return true if the extension described by this extension information
|
||||||
* is compatible with the extension described by the extension
|
* is compatible with the extension described by the extension
|
||||||
* information passed as a parameter
|
* information passed as a parameter
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @param the requested extension information to compare to
|
* @param ei the requested extension information to compare to
|
||||||
*/
|
*/
|
||||||
public int isCompatibleWith(ExtensionInfo ei) {
|
public int isCompatibleWith(ExtensionInfo ei) {
|
||||||
|
|
||||||
@ -204,10 +195,8 @@ public class ExtensionInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* helper method to print sensible information on the undelying described
|
* helper method to print sensible information on the undelying described
|
||||||
* extension
|
* extension
|
||||||
* </p>
|
|
||||||
*/
|
*/
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Extension : title(" + title + "), name(" + name + "), spec vendor(" +
|
return "Extension : title(" + title + "), name(" + name + "), spec vendor(" +
|
||||||
@ -217,15 +206,15 @@ public class ExtensionInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* helper method to compare two versions.
|
* helper method to compare two versions.
|
||||||
* version are in the x.y.z.t pattern.
|
* version are in the x.y.z.t pattern.
|
||||||
* </p>
|
*
|
||||||
* @param source version to compare to
|
* @param source version to compare to
|
||||||
* @param target version used to compare against
|
* @param target version used to compare against
|
||||||
* @return < 0 if source < version
|
* @return <pre>{@code
|
||||||
|
* < 0 if source < version
|
||||||
* > 0 if source > version
|
* > 0 if source > version
|
||||||
* = 0 if source = version
|
* = 0 if source = version}</pre>
|
||||||
*/
|
*/
|
||||||
private int compareExtensionVersion(String source, String target)
|
private int compareExtensionVersion(String source, String target)
|
||||||
throws NumberFormatException
|
throws NumberFormatException
|
||||||
@ -238,15 +227,15 @@ public class ExtensionInfo {
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <p>
|
|
||||||
* helper method to compare two versions.
|
* helper method to compare two versions.
|
||||||
* version are in the x.y.z.t pattern.
|
* version are in the x.y.z.t pattern.
|
||||||
* </p>
|
*
|
||||||
* @param source version to compare to
|
* @param source version to compare to
|
||||||
* @param target version used to compare against
|
* @param target version used to compare against
|
||||||
* @return < 0 if source < version
|
* @return <pre>{@code
|
||||||
|
* < 0 if source < version
|
||||||
* > 0 if source > version
|
* > 0 if source > version
|
||||||
* = 0 if source = version
|
* = 0 if source = version}</pre>
|
||||||
*/
|
*/
|
||||||
private int strictCompareExtensionVersion(String source, String target)
|
private int strictCompareExtensionVersion(String source, String target)
|
||||||
throws NumberFormatException
|
throws NumberFormatException
|
||||||
|
@ -384,8 +384,8 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
* Retrieves the normalization bias of the <code>FDBigIntger</code>. The
|
* Retrieves the normalization bias of the <code>FDBigIntger</code>. The
|
||||||
* normalization bias is a left shift such that after it the highest word
|
* normalization bias is a left shift such that after it the highest word
|
||||||
* of the value will have the 4 highest bits equal to zero:
|
* of the value will have the 4 highest bits equal to zero:
|
||||||
* <code>(highestWord & 0xf0000000) == 0</code>, but the next bit should be 1
|
* {@code (highestWord & 0xf0000000) == 0}, but the next bit should be 1
|
||||||
* <code>(highestWord & 0x08000000) != 0</code>.
|
* {@code (highestWord & 0x08000000) != 0}.
|
||||||
*
|
*
|
||||||
* @return The normalization bias.
|
* @return The normalization bias.
|
||||||
*/
|
*/
|
||||||
@ -546,9 +546,9 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
* We assume that S has been normalized, as above, and that
|
* We assume that S has been normalized, as above, and that
|
||||||
* "this" has been left-shifted accordingly.
|
* "this" has been left-shifted accordingly.
|
||||||
* Also assumed, of course, is that the result, q, can be expressed
|
* Also assumed, of course, is that the result, q, can be expressed
|
||||||
* as an integer, 0 <= q < 10.
|
* as an integer, {@code 0 <= q < 10}.
|
||||||
*
|
*
|
||||||
* @param The divisor of this <code>FDBigInteger</code>.
|
* @param S The divisor of this <code>FDBigInteger</code>.
|
||||||
* @return <code>q = (int)(this / S)</code>.
|
* @return <code>q = (int)(this / S)</code>.
|
||||||
*/
|
*/
|
||||||
/*@
|
/*@
|
||||||
@ -685,7 +685,7 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
*
|
*
|
||||||
* @param p5 The exponent of the power-of-five factor.
|
* @param p5 The exponent of the power-of-five factor.
|
||||||
* @param p2 The exponent of the power-of-two factor.
|
* @param p2 The exponent of the power-of-two factor.
|
||||||
* @return
|
* @return The multiplication result.
|
||||||
*/
|
*/
|
||||||
/*@
|
/*@
|
||||||
@ requires this.value() == 0 || p5 == 0 && p2 == 0;
|
@ requires this.value() == 0 || p5 == 0 && p2 == 0;
|
||||||
@ -931,11 +931,11 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
/**
|
/**
|
||||||
* Compares the parameter with this <code>FDBigInteger</code>. Returns an
|
* Compares the parameter with this <code>FDBigInteger</code>. Returns an
|
||||||
* integer accordingly as:
|
* integer accordingly as:
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* > 0: this > other
|
* > 0: this > other
|
||||||
* 0: this == other
|
* 0: this == other
|
||||||
* < 0: this < other
|
* < 0: this < other
|
||||||
* </pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* @param other The <code>FDBigInteger</code> to compare.
|
* @param other The <code>FDBigInteger</code> to compare.
|
||||||
* @return A negative value, zero, or a positive value according to the
|
* @return A negative value, zero, or a positive value according to the
|
||||||
@ -974,11 +974,11 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
* Compares this <code>FDBigInteger</code> with
|
* Compares this <code>FDBigInteger</code> with
|
||||||
* <code>5<sup>p5</sup> * 2<sup>p2</sup></code>.
|
* <code>5<sup>p5</sup> * 2<sup>p2</sup></code>.
|
||||||
* Returns an integer accordingly as:
|
* Returns an integer accordingly as:
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* > 0: this > other
|
* > 0: this > other
|
||||||
* 0: this == other
|
* 0: this == other
|
||||||
* < 0: this < other
|
* < 0: this < other
|
||||||
* </pre>
|
* }</pre>
|
||||||
* @param p5 The exponent of the power-of-five factor.
|
* @param p5 The exponent of the power-of-five factor.
|
||||||
* @param p2 The exponent of the power-of-two factor.
|
* @param p2 The exponent of the power-of-two factor.
|
||||||
* @return A negative value, zero, or a positive value according to the
|
* @return A negative value, zero, or a positive value according to the
|
||||||
@ -1011,11 +1011,11 @@ public /*@ spec_bigint_math @*/ class FDBigInteger {
|
|||||||
/**
|
/**
|
||||||
* Compares this <code>FDBigInteger</code> with <code>x + y</code>. Returns a
|
* Compares this <code>FDBigInteger</code> with <code>x + y</code>. Returns a
|
||||||
* value according to the comparison as:
|
* value according to the comparison as:
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* -1: this < x + y
|
* -1: this < x + y
|
||||||
* 0: this == x + y
|
* 0: this == x + y
|
||||||
* 1: this > x + y
|
* 1: this > x + y
|
||||||
* </pre>
|
* }</pre>
|
||||||
* @param x The first addend of the sum to compare.
|
* @param x The first addend of the sum to compare.
|
||||||
* @param y The second addend of the sum to compare.
|
* @param y The second addend of the sum to compare.
|
||||||
* @return -1, 0, or 1 according to the result of the comparison.
|
* @return -1, 0, or 1 according to the result of the comparison.
|
||||||
|
@ -154,7 +154,7 @@ public class FloatingDecimal{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates the sign of the value.
|
* Indicates the sign of the value.
|
||||||
* @return <code>value < 0.0</code>.
|
* @return {@code value < 0.0}.
|
||||||
*/
|
*/
|
||||||
public boolean isNegative();
|
public boolean isNegative();
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public class IOUtils {
|
|||||||
/**
|
/**
|
||||||
* Read up to <code>length</code> of bytes from <code>in</code>
|
* Read up to <code>length</code> of bytes from <code>in</code>
|
||||||
* until EOF is detected.
|
* until EOF is detected.
|
||||||
* @param in input stream, must not be null
|
* @param is input stream, must not be null
|
||||||
* @param length number of bytes to read, -1 or Integer.MAX_VALUE means
|
* @param length number of bytes to read, -1 or Integer.MAX_VALUE means
|
||||||
* read as much as possible
|
* read as much as possible
|
||||||
* @param readAll if true, an EOFException will be thrown if not enough
|
* @param readAll if true, an EOFException will be thrown if not enough
|
||||||
|
@ -29,10 +29,8 @@ import java.io.File;
|
|||||||
import java.io.FilenameFilter;
|
import java.io.FilenameFilter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* This class checks that only jar and zip files are included in the file list.
|
* This class checks that only jar and zip files are included in the file list.
|
||||||
* This class is used in extension installation support (ExtensionDependency).
|
* This class is used in extension installation support (ExtensionDependency).
|
||||||
* <p>
|
|
||||||
*
|
*
|
||||||
* @deprecated this class will be removed in a future release.
|
* @deprecated this class will be removed in a future release.
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
|
@ -91,13 +91,13 @@ public interface JavaLangAccess {
|
|||||||
* may be added to the delete on exit list by the application shutdown
|
* may be added to the delete on exit list by the application shutdown
|
||||||
* hooks.
|
* hooks.
|
||||||
*
|
*
|
||||||
* @params slot the slot in the shutdown hook array, whose element
|
* @param slot the slot in the shutdown hook array, whose element
|
||||||
* will be invoked in order during shutdown
|
* will be invoked in order during shutdown
|
||||||
* @params registerShutdownInProgress true to allow the hook
|
* @param registerShutdownInProgress true to allow the hook
|
||||||
* to be registered even if the shutdown is in progress.
|
* to be registered even if the shutdown is in progress.
|
||||||
* @params hook the hook to be registered
|
* @param hook the hook to be registered
|
||||||
*
|
*
|
||||||
* @throw IllegalStateException if shutdown is in progress and
|
* @throws IllegalStateException if shutdown is in progress and
|
||||||
* the slot is not valid to register.
|
* the slot is not valid to register.
|
||||||
*/
|
*/
|
||||||
void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
|
void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
|
||||||
|
@ -67,13 +67,13 @@ public final class Perf {
|
|||||||
* <code>AccessController.doPrivileged(PrivilegedAction)</code>.
|
* <code>AccessController.doPrivileged(PrivilegedAction)</code>.
|
||||||
* <p> Here is a suggested idiom for use of this class:
|
* <p> Here is a suggested idiom for use of this class:
|
||||||
*
|
*
|
||||||
* <blockquote><pre>
|
* <blockquote><pre>{@code
|
||||||
* class MyTrustedClass {
|
* class MyTrustedClass {
|
||||||
* private static final Perf perf =
|
* private static final Perf perf =
|
||||||
* AccessController.doPrivileged(new Perf.GetPerfAction<Perf>());
|
* AccessController.doPrivileged(new Perf.GetPerfAction<Perf>());
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
* </pre></blockquote>
|
* }</pre></blockquote>
|
||||||
* <p>
|
* <p>
|
||||||
* In the presence of a security manager, the <code>MyTrustedClass</code>
|
* In the presence of a security manager, the <code>MyTrustedClass</code>
|
||||||
* class in the above example will need to be granted the
|
* class in the above example will need to be granted the
|
||||||
@ -171,8 +171,7 @@ public final class Perf {
|
|||||||
* The attach mode specifies the access permissions requested for the
|
* The attach mode specifies the access permissions requested for the
|
||||||
* instrumentation buffer of the target virtual machine. The permitted
|
* instrumentation buffer of the target virtual machine. The permitted
|
||||||
* access permissions are:
|
* access permissions are:
|
||||||
* <p>
|
* <ul>
|
||||||
* <bl>
|
|
||||||
* <li>"r" - Read only access. This Java virtual machine has only
|
* <li>"r" - Read only access. This Java virtual machine has only
|
||||||
* read access to the instrumentation buffer for the target Java
|
* read access to the instrumentation buffer for the target Java
|
||||||
* virtual machine.
|
* virtual machine.
|
||||||
@ -180,7 +179,7 @@ public final class Perf {
|
|||||||
* write access to the instrumentation buffer for the target Java virtual
|
* write access to the instrumentation buffer for the target Java virtual
|
||||||
* machine. This mode is currently not supported and is reserved for
|
* machine. This mode is currently not supported and is reserved for
|
||||||
* future enhancements.
|
* future enhancements.
|
||||||
* </bl>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @param lvmid an integer that uniquely identifies the
|
* @param lvmid an integer that uniquely identifies the
|
||||||
* target local Java virtual machine.
|
* target local Java virtual machine.
|
||||||
|
@ -37,7 +37,7 @@ import java.security.AccessController;
|
|||||||
* The perf counters will be created in the jvmstat perf buffer
|
* The perf counters will be created in the jvmstat perf buffer
|
||||||
* that the HotSpot VM creates. The default size is 32K and thus
|
* that the HotSpot VM creates. The default size is 32K and thus
|
||||||
* the number of counters is bounded. You can alter the size
|
* the number of counters is bounded. You can alter the size
|
||||||
* with -XX:PerfDataMemorySize=<bytes> option. If there is
|
* with {@code -XX:PerfDataMemorySize=<bytes>} option. If there is
|
||||||
* insufficient memory in the jvmstat perf buffer, the C heap memory
|
* insufficient memory in the jvmstat perf buffer, the C heap memory
|
||||||
* will be used and thus the application will continue to run if
|
* will be used and thus the application will continue to run if
|
||||||
* the counters added exceeds the buffer size but the counters
|
* the counters added exceeds the buffer size but the counters
|
||||||
|
@ -51,10 +51,12 @@ import java.io.Writer;
|
|||||||
* <P>
|
* <P>
|
||||||
* To automatically track startup performance in an app or applet,
|
* To automatically track startup performance in an app or applet,
|
||||||
* use the command-line parameter sun.perflog as follows:<BR>
|
* use the command-line parameter sun.perflog as follows:<BR>
|
||||||
|
* <pre>{@code
|
||||||
* -Dsun.perflog[=file:<filename>]
|
* -Dsun.perflog[=file:<filename>]
|
||||||
|
* }</pre>
|
||||||
* <BR>
|
* <BR>
|
||||||
* where simply using the parameter with no value will enable output
|
* where simply using the parameter with no value will enable output
|
||||||
* to the console and a value of "file:<filename>" will cause
|
* to the console and a value of "{@code file:<filename>}" will cause
|
||||||
* that given filename to be created and used for all output.
|
* that given filename to be created and used for all output.
|
||||||
* <P>
|
* <P>
|
||||||
* By default, times are measured using System.currentTimeMillis(). To use
|
* By default, times are measured using System.currentTimeMillis(). To use
|
||||||
|
@ -154,7 +154,8 @@ public abstract class Resource {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the Resource data as a ByteBuffer, but only if the input stream
|
* Returns the Resource data as a ByteBuffer, but only if the input stream
|
||||||
* was implemented on top of a ByteBuffer. Return <tt>null</tt> otherwise.
|
* was implemented on top of a ByteBuffer. Return {@code null} otherwise.
|
||||||
|
* @return Resource data or null.
|
||||||
*/
|
*/
|
||||||
public ByteBuffer getByteBuffer() throws IOException {
|
public ByteBuffer getByteBuffer() throws IOException {
|
||||||
InputStream in = cachedInputStream();
|
InputStream in = cachedInputStream();
|
||||||
|
@ -50,7 +50,7 @@ import java.util.Hashtable;
|
|||||||
* Signal objects are created based on their names. For example:
|
* Signal objects are created based on their names. For example:
|
||||||
* <blockquote><pre>
|
* <blockquote><pre>
|
||||||
* new Signal("INT");
|
* new Signal("INT");
|
||||||
* </blockquote></pre>
|
* </pre></blockquote>
|
||||||
* constructs a signal object corresponding to <code>SIGINT</code>, which is
|
* constructs a signal object corresponding to <code>SIGINT</code>, which is
|
||||||
* typically produced when the user presses <code>Ctrl-C</code> at the command line.
|
* typically produced when the user presses <code>Ctrl-C</code> at the command line.
|
||||||
* The <code>Signal</code> constructor throws <code>IllegalArgumentException</code>
|
* The <code>Signal</code> constructor throws <code>IllegalArgumentException</code>
|
||||||
@ -64,7 +64,7 @@ import java.util.Hashtable;
|
|||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
* Signal.handle(new Signal("INT"), handler);
|
* Signal.handle(new Signal("INT"), handler);
|
||||||
* </blockquote></pre>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* @author Sheng Liang
|
* @author Sheng Liang
|
||||||
* @author Bill Shannon
|
* @author Bill Shannon
|
||||||
@ -149,7 +149,7 @@ public final class Signal {
|
|||||||
*
|
*
|
||||||
* @param sig a signal
|
* @param sig a signal
|
||||||
* @param handler the handler to be registered with the given signal.
|
* @param handler the handler to be registered with the given signal.
|
||||||
* @result the old handler
|
* @return the old handler
|
||||||
* @exception IllegalArgumentException the signal is in use by the VM
|
* @exception IllegalArgumentException the signal is in use by the VM
|
||||||
* @see sun.misc.Signal#raise(Signal sig)
|
* @see sun.misc.Signal#raise(Signal sig)
|
||||||
* @see sun.misc.SignalHandler
|
* @see sun.misc.SignalHandler
|
||||||
|
@ -641,9 +641,9 @@ public final class Unsafe {
|
|||||||
* <li>String: any object (not just a java.lang.String)
|
* <li>String: any object (not just a java.lang.String)
|
||||||
* <li>InterfaceMethodRef: (NYI) a method handle to invoke on that call site's arguments
|
* <li>InterfaceMethodRef: (NYI) a method handle to invoke on that call site's arguments
|
||||||
* </ul>
|
* </ul>
|
||||||
* @params hostClass context for linkage, access control, protection domain, and class loader
|
* @param hostClass context for linkage, access control, protection domain, and class loader
|
||||||
* @params data bytes of a class file
|
* @param data bytes of a class file
|
||||||
* @params cpPatches where non-null entries exist, they replace corresponding CP entries in data
|
* @param cpPatches where non-null entries exist, they replace corresponding CP entries in data
|
||||||
*/
|
*/
|
||||||
public native Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches);
|
public native Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches);
|
||||||
|
|
||||||
@ -808,8 +808,8 @@ public final class Unsafe {
|
|||||||
* The system imposes a maximum of 3 samples, representing
|
* The system imposes a maximum of 3 samples, representing
|
||||||
* averages over the last 1, 5, and 15 minutes, respectively.
|
* averages over the last 1, 5, and 15 minutes, respectively.
|
||||||
*
|
*
|
||||||
* @params loadavg an array of double of size nelems
|
* @param loadavg an array of double of size nelems
|
||||||
* @params nelems the number of samples to be retrieved and
|
* @param nelems the number of samples to be retrieved and
|
||||||
* must be 1 to 3.
|
* must be 1 to 3.
|
||||||
*
|
*
|
||||||
* @return the number of samples actually retrieved; or -1
|
* @return the number of samples actually retrieved; or -1
|
||||||
@ -1108,7 +1108,6 @@ public final class Unsafe {
|
|||||||
* <p>
|
* <p>
|
||||||
* 8-byte atomicity is only guaranteed on platforms on which
|
* 8-byte atomicity is only guaranteed on platforms on which
|
||||||
* support atomic accesses to longs.
|
* support atomic accesses to longs.
|
||||||
* <p>
|
|
||||||
*
|
*
|
||||||
* @param o Java heap object in which the value resides, if any, else
|
* @param o Java heap object in which the value resides, if any, else
|
||||||
* null
|
* null
|
||||||
|
@ -315,7 +315,7 @@ public class VM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add <tt>n</tt> to the objects pending for finalization count.
|
* Add {@code n} to the objects pending for finalization count.
|
||||||
*
|
*
|
||||||
* @param n an integer value to be added to the objects pending
|
* @param n an integer value to be added to the objects pending
|
||||||
* for finalization count
|
* for finalization count
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages extends java.util.ListResourceBundle {
|
public class Messages extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_de extends java.util.ListResourceBundle {
|
public class Messages_de extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_es extends java.util.ListResourceBundle {
|
public class Messages_es extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_fr extends java.util.ListResourceBundle {
|
public class Messages_fr extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_it extends java.util.ListResourceBundle {
|
public class Messages_it extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_ja extends java.util.ListResourceBundle {
|
public class Messages_ja extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_ko extends java.util.ListResourceBundle {
|
public class Messages_ko extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_pt_BR extends java.util.ListResourceBundle {
|
public class Messages_pt_BR extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_sv extends java.util.ListResourceBundle {
|
public class Messages_sv extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_zh_CN extends java.util.ListResourceBundle {
|
public class Messages_zh_CN extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.misc.resources;
|
package sun.misc.resources;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p> This class represents the <code>ResourceBundle</code>
|
* This class represents the {@code ResourceBundle}
|
||||||
* for sun.misc.
|
* for sun.misc.
|
||||||
*
|
*
|
||||||
* @author Michael Colburn
|
* @author Michael Colburn
|
||||||
@ -35,9 +35,9 @@ package sun.misc.resources;
|
|||||||
public class Messages_zh_TW extends java.util.ListResourceBundle {
|
public class Messages_zh_TW extends java.util.ListResourceBundle {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the contents of this <code>ResourceBundle</code>.
|
* Returns the contents of this {@code ResourceBundle}.
|
||||||
* <p>
|
*
|
||||||
* @return the contents of this <code>ResourceBundle</code>.
|
* @return the contents of this {@code ResourceBundle}.
|
||||||
*/
|
*/
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
@ -175,7 +175,7 @@ public class Surrogate {
|
|||||||
* @param in The source buffer, from which one more character
|
* @param in The source buffer, from which one more character
|
||||||
* will be consumed if c is a high surrogate
|
* will be consumed if c is a high surrogate
|
||||||
*
|
*
|
||||||
* @returns Either a parsed UCS-4 character, in which case the isPair()
|
* @return Either a parsed UCS-4 character, in which case the isPair()
|
||||||
* and increment() methods will return meaningful values, or
|
* and increment() methods will return meaningful values, or
|
||||||
* -1, in which case error() will return a descriptive result
|
* -1, in which case error() will return a descriptive result
|
||||||
* object
|
* object
|
||||||
@ -216,7 +216,7 @@ public class Surrogate {
|
|||||||
* @param ip The input index
|
* @param ip The input index
|
||||||
* @param il The input limit
|
* @param il The input limit
|
||||||
*
|
*
|
||||||
* @returns Either a parsed UCS-4 character, in which case the isPair()
|
* @return Either a parsed UCS-4 character, in which case the isPair()
|
||||||
* and increment() methods will return meaningful values, or
|
* and increment() methods will return meaningful values, or
|
||||||
* -1, in which case error() will return a descriptive result
|
* -1, in which case error() will return a descriptive result
|
||||||
* object
|
* object
|
||||||
@ -280,7 +280,7 @@ public class Surrogate {
|
|||||||
* @param dst The destination buffer, to which one or two UTF-16
|
* @param dst The destination buffer, to which one or two UTF-16
|
||||||
* characters will be written
|
* characters will be written
|
||||||
*
|
*
|
||||||
* @returns Either a positive count of the number of UTF-16 characters
|
* @return Either a positive count of the number of UTF-16 characters
|
||||||
* written to the destination buffer, or -1, in which case
|
* written to the destination buffer, or -1, in which case
|
||||||
* error() will return a descriptive result object
|
* error() will return a descriptive result object
|
||||||
*/
|
*/
|
||||||
@ -325,7 +325,7 @@ public class Surrogate {
|
|||||||
* @param dp The destination position
|
* @param dp The destination position
|
||||||
* @param dl The destination limit
|
* @param dl The destination limit
|
||||||
*
|
*
|
||||||
* @returns Either a positive count of the number of UTF-16 characters
|
* @return Either a positive count of the number of UTF-16 characters
|
||||||
* written to the destination buffer, or -1, in which case
|
* written to the destination buffer, or -1, in which case
|
||||||
* error() will return a descriptive result object
|
* error() will return a descriptive result object
|
||||||
*/
|
*/
|
||||||
|
@ -49,7 +49,7 @@ package sun.text;
|
|||||||
* Han ideographs have the same value. However, lookup is much faster than a
|
* Han ideographs have the same value. However, lookup is much faster than a
|
||||||
* hash table.
|
* hash table.
|
||||||
* A compact array of any primitive data type serves two purposes:
|
* A compact array of any primitive data type serves two purposes:
|
||||||
* <UL type = round>
|
* <UL type = circle>
|
||||||
* <LI>Fast access of the indexed values.
|
* <LI>Fast access of the indexed values.
|
||||||
* <LI>Smaller memory footprint.
|
* <LI>Smaller memory footprint.
|
||||||
* </UL>
|
* </UL>
|
||||||
|
@ -50,7 +50,7 @@ public final class ComposedCharIter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new <tt>ComposedCharIter</tt>. The iterator will return
|
* Construct a new {@code ComposedCharIter}. The iterator will return
|
||||||
* all Unicode characters with canonical decompositions, excluding Korean
|
* all Unicode characters with canonical decompositions, excluding Korean
|
||||||
* Hangul characters.
|
* Hangul characters.
|
||||||
*/
|
*/
|
||||||
@ -58,10 +58,10 @@ public final class ComposedCharIter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the next precomposed Unicode character.
|
* Returns the next precomposed Unicode character.
|
||||||
* Repeated calls to <tt>next</tt> return all of the precomposed characters defined
|
* Repeated calls to {@code next} return all of the precomposed characters defined
|
||||||
* by Unicode, in ascending order. After all precomposed characters have
|
* by Unicode, in ascending order. After all precomposed characters have
|
||||||
* been returned, {@link #hasNext} will return <tt>false</tt> and further calls
|
* been returned, {@link #hasNext} will return {@code false} and further calls
|
||||||
* to <tt>next</tt> will return {@link #DONE}.
|
* to {@code next} will return {@link #DONE}.
|
||||||
*/
|
*/
|
||||||
public int next() {
|
public int next() {
|
||||||
if (curChar == decompNum - 1) {
|
if (curChar == decompNum - 1) {
|
||||||
|
@ -81,14 +81,13 @@ import sun.text.normalizer.UTF16;
|
|||||||
*
|
*
|
||||||
* <h3>General remarks about the API:</h3>
|
* <h3>General remarks about the API:</h3>
|
||||||
*
|
*
|
||||||
* The "limit" of a sequence of characters is the position just after
|
* The "limit" of a sequence of characters is the position just after
|
||||||
* their last character, i.e., one more than that position.
|
* their last character, i.e., one more than that position.
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* Some of the API methods provide access to "runs". Such a
|
* Some of the API methods provide access to "runs". Such a
|
||||||
* "run" is defined as a sequence of characters that are at the same
|
* "run" is defined as a sequence of characters that are at the same
|
||||||
* embedding level after performing the Bidi algorithm.
|
* embedding level after performing the Bidi algorithm.
|
||||||
* <p>
|
|
||||||
*
|
*
|
||||||
* <h3>Basic concept: paragraph</h3>
|
* <h3>Basic concept: paragraph</h3>
|
||||||
* A piece of text can be divided into several paragraphs by characters
|
* A piece of text can be divided into several paragraphs by characters
|
||||||
@ -141,7 +140,8 @@ import sun.text.normalizer.UTF16;
|
|||||||
* these special values are designed that way. Also, the implementation
|
* these special values are designed that way. Also, the implementation
|
||||||
* assumes that MAX_EXPLICIT_LEVEL is odd.
|
* assumes that MAX_EXPLICIT_LEVEL is odd.
|
||||||
*
|
*
|
||||||
* <ul><b>See Also:</b>
|
* <p><b>See Also:</b>
|
||||||
|
* <ul>
|
||||||
* <li>{@link #LEVEL_DEFAULT_LTR}
|
* <li>{@link #LEVEL_DEFAULT_LTR}
|
||||||
* <li>{@link #LEVEL_DEFAULT_RTL}
|
* <li>{@link #LEVEL_DEFAULT_RTL}
|
||||||
* <li>{@link #LEVEL_OVERRIDE}
|
* <li>{@link #LEVEL_OVERRIDE}
|
||||||
@ -153,7 +153,8 @@ import sun.text.normalizer.UTF16;
|
|||||||
* Reordering mode values indicate which variant of the Bidi algorithm to
|
* Reordering mode values indicate which variant of the Bidi algorithm to
|
||||||
* use.
|
* use.
|
||||||
*
|
*
|
||||||
* <ul><b>See Also:</b>
|
* <p><b>See Also:</b>
|
||||||
|
* <ul>
|
||||||
* <li>{@link #setReorderingMode}
|
* <li>{@link #setReorderingMode}
|
||||||
* <li>{@link #REORDER_DEFAULT}
|
* <li>{@link #REORDER_DEFAULT}
|
||||||
* <li>{@link #REORDER_NUMBERS_SPECIAL}
|
* <li>{@link #REORDER_NUMBERS_SPECIAL}
|
||||||
@ -166,7 +167,8 @@ import sun.text.normalizer.UTF16;
|
|||||||
*
|
*
|
||||||
* <h3>Basic concept: Reordering Options</h3>
|
* <h3>Basic concept: Reordering Options</h3>
|
||||||
* Reordering options can be applied during Bidi text transformations.
|
* Reordering options can be applied during Bidi text transformations.
|
||||||
* <ul><b>See Also:</b>
|
* <p><b>See Also:</b>
|
||||||
|
* <ul>
|
||||||
* <li>{@link #setReorderingOptions}
|
* <li>{@link #setReorderingOptions}
|
||||||
* <li>{@link #OPTION_DEFAULT}
|
* <li>{@link #OPTION_DEFAULT}
|
||||||
* <li>{@link #OPTION_INSERT_MARKS}
|
* <li>{@link #OPTION_INSERT_MARKS}
|
||||||
@ -202,7 +204,7 @@ import sun.text.normalizer.UTF16;
|
|||||||
* and therefore its implementation omitted from this sample code.</li>
|
* and therefore its implementation omitted from this sample code.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
*
|
*
|
||||||
* package com.ibm.icu.dev.test.bidi;
|
* package com.ibm.icu.dev.test.bidi;
|
||||||
*
|
*
|
||||||
@ -451,7 +453,7 @@ import sun.text.normalizer.UTF16;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* </pre>
|
* }</pre>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class BidiBase {
|
public class BidiBase {
|
||||||
@ -2419,9 +2421,9 @@ public class BidiBase {
|
|||||||
* (same index) character if the level has the
|
* (same index) character if the level has the
|
||||||
* <code>LEVEL_OVERRIDE</code> bit set.<br><br>
|
* <code>LEVEL_OVERRIDE</code> bit set.<br><br>
|
||||||
* Except for that bit, it must be
|
* Except for that bit, it must be
|
||||||
* <code>paraLevel<=embeddingLevels[]<=MAX_EXPLICIT_LEVEL</code>,
|
* {@code paraLevel<=embeddingLevels[]<=MAX_EXPLICIT_LEVEL},
|
||||||
* with one exception: a level of zero may be specified for a
|
* with one exception: a level of zero may be specified for a
|
||||||
* paragraph separator even if <code>paraLevel>0</code> when multiple
|
* paragraph separator even if {@code paraLevel > 0} when multiple
|
||||||
* paragraphs are submitted in the same call to <code>setPara()</code>.<br><br>
|
* paragraphs are submitted in the same call to <code>setPara()</code>.<br><br>
|
||||||
* <strong>Caution: </strong>A reference to this array, not a copy
|
* <strong>Caution: </strong>A reference to this array, not a copy
|
||||||
* of the levels, will be stored in the <code>Bidi</code> object;
|
* of the levels, will be stored in the <code>Bidi</code> object;
|
||||||
@ -2680,7 +2682,7 @@ public class BidiBase {
|
|||||||
* For example, in pure LTR text with numbers the numbers would get
|
* For example, in pure LTR text with numbers the numbers would get
|
||||||
* a resolved level of 2 higher than the surrounding text according to
|
* a resolved level of 2 higher than the surrounding text according to
|
||||||
* the algorithm. This implementation may set all resolved levels to
|
* the algorithm. This implementation may set all resolved levels to
|
||||||
* the same value in such a case.<p>
|
* the same value in such a case.
|
||||||
*
|
*
|
||||||
* @param paragraph a paragraph of text with optional character and
|
* @param paragraph a paragraph of text with optional character and
|
||||||
* paragraph attribute information
|
* paragraph attribute information
|
||||||
@ -2817,7 +2819,7 @@ public class BidiBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the index of a paragraph, given a position within the text.<p>
|
* Get the index of a paragraph, given a position within the text.
|
||||||
*
|
*
|
||||||
* @param charIndex is the index of a character within the text, in the
|
* @param charIndex is the index of a character within the text, in the
|
||||||
* range <code>[0..getProcessedLength()-1]</code>.
|
* range <code>[0..getProcessedLength()-1]</code>.
|
||||||
|
@ -42,7 +42,7 @@ package sun.text.bidi;
|
|||||||
/**
|
/**
|
||||||
* A BidiRun represents a sequence of characters at the same embedding level.
|
* A BidiRun represents a sequence of characters at the same embedding level.
|
||||||
* The Bidi algorithm decomposes a piece of text into sequences of characters
|
* The Bidi algorithm decomposes a piece of text into sequences of characters
|
||||||
* at the same embedding level, each such sequence is called a <quote>run</quote>.
|
* at the same embedding level, each such sequence is called a "run".
|
||||||
*
|
*
|
||||||
* <p>A BidiRun represents such a run by storing its essential properties,
|
* <p>A BidiRun represents such a run by storing its essential properties,
|
||||||
* but does not duplicate the characters which form the run.
|
* but does not duplicate the characters which form the run.
|
||||||
|
@ -65,7 +65,7 @@ public final class ICUBinary
|
|||||||
/**
|
/**
|
||||||
* <p>ICU data header reader method.
|
* <p>ICU data header reader method.
|
||||||
* Takes a ICU generated big-endian input stream, parse the ICU standard
|
* Takes a ICU generated big-endian input stream, parse the ICU standard
|
||||||
* file header and authenticates them.</p>
|
* file header and authenticates them.
|
||||||
* <p>Header format:
|
* <p>Header format:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> Header size (char)
|
* <li> Header size (char)
|
||||||
@ -84,7 +84,7 @@ public final class ICUBinary
|
|||||||
* [0] major [1] minor [2] milli [3] micro
|
* [0] major [1] minor [2] milli [3] micro
|
||||||
* <li> Unicode version (4 bytes) this ICU is based on.
|
* <li> Unicode version (4 bytes) this ICU is based on.
|
||||||
* </ul>
|
* </ul>
|
||||||
* </p>
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Example of use:<br>
|
* Example of use:<br>
|
||||||
* <pre>
|
* <pre>
|
||||||
@ -98,7 +98,7 @@ public final class ICUBinary
|
|||||||
* System.out.println("This is not a ICU data file");
|
* System.out.println("This is not a ICU data file");
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
* </p>
|
*
|
||||||
* @param inputStream input stream that contains the ICU data header
|
* @param inputStream input stream that contains the ICU data header
|
||||||
* @param dataFormatIDExpected Data format expected. An array of 4 bytes
|
* @param dataFormatIDExpected Data format expected. An array of 4 bytes
|
||||||
* information about the data format.
|
* information about the data format.
|
||||||
|
@ -58,7 +58,7 @@ public class IntTrie extends Trie
|
|||||||
* trie.</p>
|
* trie.</p>
|
||||||
* @param inputStream file input stream to a ICU data file, containing
|
* @param inputStream file input stream to a ICU data file, containing
|
||||||
* the trie
|
* the trie
|
||||||
* @param dataManipulate object which provides methods to parse the char
|
* @param datamanipulate object which provides methods to parse the char
|
||||||
* data
|
* data
|
||||||
* @throws IOException thrown when data reading fails
|
* @throws IOException thrown when data reading fails
|
||||||
* @draft 2.1
|
* @draft 2.1
|
||||||
|
@ -55,16 +55,16 @@ import java.text.Normalizer;
|
|||||||
* In Unicode, this can be encoded as a single character (the
|
* In Unicode, this can be encoded as a single character (the
|
||||||
* "composed" form):
|
* "composed" form):
|
||||||
*
|
*
|
||||||
* <p>
|
* <pre>
|
||||||
* 00C1 LATIN CAPITAL LETTER A WITH ACUTE
|
* 00C1 LATIN CAPITAL LETTER A WITH ACUTE
|
||||||
* </p>
|
* </pre>
|
||||||
*
|
*
|
||||||
* or as two separate characters (the "decomposed" form):
|
* or as two separate characters (the "decomposed" form):
|
||||||
*
|
*
|
||||||
* <p>
|
* <pre>
|
||||||
* 0041 LATIN CAPITAL LETTER A
|
* 0041 LATIN CAPITAL LETTER A
|
||||||
* 0301 COMBINING ACUTE ACCENT
|
* 0301 COMBINING ACUTE ACCENT
|
||||||
* </p>
|
* </pre>
|
||||||
*
|
*
|
||||||
* To a user of your program, however, both of these sequences should be
|
* To a user of your program, however, both of these sequences should be
|
||||||
* treated as the same "user-level" character "A with acute accent". When you
|
* treated as the same "user-level" character "A with acute accent". When you
|
||||||
@ -76,17 +76,17 @@ import java.text.Normalizer;
|
|||||||
*
|
*
|
||||||
* Similarly, the string "ffi" can be encoded as three separate letters:
|
* Similarly, the string "ffi" can be encoded as three separate letters:
|
||||||
*
|
*
|
||||||
* <p>
|
* <pre>
|
||||||
* 0066 LATIN SMALL LETTER F
|
* 0066 LATIN SMALL LETTER F
|
||||||
* 0066 LATIN SMALL LETTER F
|
* 0066 LATIN SMALL LETTER F
|
||||||
* 0069 LATIN SMALL LETTER I
|
* 0069 LATIN SMALL LETTER I
|
||||||
* </p>
|
* </pre>
|
||||||
*
|
*
|
||||||
* or as the single character
|
* or as the single character
|
||||||
*
|
*
|
||||||
* <p>
|
* <pre>
|
||||||
* FB03 LATIN SMALL LIGATURE FFI
|
* FB03 LATIN SMALL LIGATURE FFI
|
||||||
* </p>
|
* </pre>
|
||||||
*
|
*
|
||||||
* The ffi ligature is not a distinct semantic character, and strictly speaking
|
* The ffi ligature is not a distinct semantic character, and strictly speaking
|
||||||
* it shouldn't be in Unicode at all, but it was included for compatibility
|
* it shouldn't be in Unicode at all, but it was included for compatibility
|
||||||
@ -555,12 +555,12 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new <tt>Normalizer</tt> object for iterating over the
|
* Creates a new {@code Normalizer} object for iterating over the
|
||||||
* normalized form of a given string.
|
* normalized form of a given string.
|
||||||
* <p>
|
* <p>
|
||||||
* The <tt>options</tt> parameter specifies which optional
|
* The {@code options} parameter specifies which optional
|
||||||
* <tt>Normalizer</tt> features are to be enabled for this object.
|
* {@code Normalizer} features are to be enabled for this object.
|
||||||
* <p>
|
*
|
||||||
* @param str The string to be normalized. The normalization
|
* @param str The string to be normalized. The normalization
|
||||||
* will start at the beginning of the string.
|
* will start at the beginning of the string.
|
||||||
*
|
*
|
||||||
@ -579,9 +579,9 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new <tt>Normalizer</tt> object for iterating over the
|
* Creates a new {@code Normalizer} object for iterating over the
|
||||||
* normalized form of the given text.
|
* normalized form of the given text.
|
||||||
* <p>
|
*
|
||||||
* @param iter The input text to be normalized. The normalization
|
* @param iter The input text to be normalized. The normalization
|
||||||
* will start at the beginning of the string.
|
* will start at the beginning of the string.
|
||||||
*
|
*
|
||||||
@ -592,9 +592,9 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new <tt>Normalizer</tt> object for iterating over the
|
* Creates a new {@code Normalizer} object for iterating over the
|
||||||
* normalized form of the given text.
|
* normalized form of the given text.
|
||||||
* <p>
|
*
|
||||||
* @param iter The input text to be normalized. The normalization
|
* @param iter The input text to be normalized. The normalization
|
||||||
* will start at the beginning of the string.
|
* will start at the beginning of the string.
|
||||||
*
|
*
|
||||||
@ -615,13 +615,13 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clones this <tt>Normalizer</tt> object. All properties of this
|
* Clones this {@code Normalizer} object. All properties of this
|
||||||
* object are duplicated in the new object, including the cloning of any
|
* object are duplicated in the new object, including the cloning of any
|
||||||
* {@link CharacterIterator} that was passed in to the constructor
|
* {@link CharacterIterator} that was passed in to the constructor
|
||||||
* or to {@link #setText(CharacterIterator) setText}.
|
* or to {@link #setText(CharacterIterator) setText}.
|
||||||
* However, the text storage underlying
|
* However, the text storage underlying
|
||||||
* the <tt>CharacterIterator</tt> is not duplicated unless the
|
* the {@code CharacterIterator} is not duplicated unless the
|
||||||
* iterator's <tt>clone</tt> method does so.
|
* iterator's {@code clone} method does so.
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
public Object clone() {
|
public Object clone() {
|
||||||
@ -791,7 +791,7 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the current character in the normalized text->
|
* Return the current character in the normalized text.
|
||||||
* @return The codepoint as an int
|
* @return The codepoint as an int
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
@ -872,10 +872,10 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
* while {@link #next} and {@link #previous} iterate through characters
|
* while {@link #next} and {@link #previous} iterate through characters
|
||||||
* in the normalized <em>output</em>. This means that there is not
|
* in the normalized <em>output</em>. This means that there is not
|
||||||
* necessarily a one-to-one correspondence between characters returned
|
* necessarily a one-to-one correspondence between characters returned
|
||||||
* by <tt>next</tt> and <tt>previous</tt> and the indices passed to and
|
* by {@code next} and {@code previous} and the indices passed to and
|
||||||
* returned from <tt>setIndex</tt> and {@link #getIndex}.
|
* returned from {@code setIndex} and {@link #getIndex}.
|
||||||
* <p>
|
*
|
||||||
* @param index the desired index in the input text->
|
* @param index the desired index in the input text.
|
||||||
*
|
*
|
||||||
* @return the first normalized character that is the result of iterating
|
* @return the first normalized character that is the result of iterating
|
||||||
* forward starting at the given index.
|
* forward starting at the given index.
|
||||||
@ -894,8 +894,8 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the index of the start of the input text. This is the begin
|
* Retrieve the index of the start of the input text. This is the begin
|
||||||
* index of the <tt>CharacterIterator</tt> or the start (i.e. 0) of the
|
* index of the {@code CharacterIterator} or the start (i.e. 0) of the
|
||||||
* <tt>String</tt> over which this <tt>Normalizer</tt> is iterating
|
* {@code String} over which this {@code Normalizer} is iterating
|
||||||
* @deprecated ICU 2.2. Use startIndex() instead.
|
* @deprecated ICU 2.2. Use startIndex() instead.
|
||||||
* @return The codepoint as an int
|
* @return The codepoint as an int
|
||||||
* @see #startIndex
|
* @see #startIndex
|
||||||
@ -907,8 +907,8 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the index of the end of the input text. This is the end index
|
* Retrieve the index of the end of the input text. This is the end index
|
||||||
* of the <tt>CharacterIterator</tt> or the length of the <tt>String</tt>
|
* of the {@code CharacterIterator} or the length of the {@code String}
|
||||||
* over which this <tt>Normalizer</tt> is iterating
|
* over which this {@code Normalizer} is iterating
|
||||||
* @deprecated ICU 2.2. Use endIndex() instead.
|
* @deprecated ICU 2.2. Use endIndex() instead.
|
||||||
* @return The codepoint as an int
|
* @return The codepoint as an int
|
||||||
* @see #endIndex
|
* @see #endIndex
|
||||||
@ -927,9 +927,9 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
* <b>Note:</b> This method sets the position in the <em>input</em>, while
|
* <b>Note:</b> This method sets the position in the <em>input</em>, while
|
||||||
* {@link #next} and {@link #previous} iterate through characters in the
|
* {@link #next} and {@link #previous} iterate through characters in the
|
||||||
* <em>output</em>. This means that there is not necessarily a one-to-one
|
* <em>output</em>. This means that there is not necessarily a one-to-one
|
||||||
* correspondence between characters returned by <tt>next</tt> and
|
* correspondence between characters returned by {@code next} and
|
||||||
* <tt>previous</tt> and the indices passed to and returned from
|
* {@code previous} and the indices passed to and returned from
|
||||||
* <tt>setIndex</tt> and {@link #getIndex}.
|
* {@code setIndex} and {@link #getIndex}.
|
||||||
* @return The current iteration position
|
* @return The current iteration position
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
@ -942,9 +942,9 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the index of the end of the input text-> This is the end index
|
* Retrieve the index of the end of the input text. This is the end index
|
||||||
* of the <tt>CharacterIterator</tt> or the length of the <tt>String</tt>
|
* of the {@code CharacterIterator} or the length of the {@code String}
|
||||||
* over which this <tt>Normalizer</tt> is iterating
|
* over which this {@code Normalizer} is iterating
|
||||||
* @return The current iteration position
|
* @return The current iteration position
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
@ -963,9 +963,9 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
* return previously buffers characters in the old normalization mode
|
* return previously buffers characters in the old normalization mode
|
||||||
* until the iteration is able to re-sync at the next base character.
|
* until the iteration is able to re-sync at the next base character.
|
||||||
* It is safest to call {@link #setText setText()}, {@link #first},
|
* It is safest to call {@link #setText setText()}, {@link #first},
|
||||||
* {@link #last}, etc. after calling <tt>setMode</tt>.
|
* {@link #last}, etc. after calling {@code setMode}.
|
||||||
* <p>
|
*
|
||||||
* @param newMode the new mode for this <tt>Normalizer</tt>.
|
* @param newMode the new mode for this {@code Normalizer}.
|
||||||
* The supported modes are:
|
* The supported modes are:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>{@link #COMPOSE} - Unicode canonical decompositiion
|
* <li>{@link #COMPOSE} - Unicode canonical decompositiion
|
||||||
@ -985,7 +985,7 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
mode = newMode;
|
mode = newMode;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Return the basic operation performed by this <tt>Normalizer</tt>
|
* Return the basic operation performed by this {@code Normalizer}
|
||||||
*
|
*
|
||||||
* @see #setMode
|
* @see #setMode
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
@ -995,8 +995,8 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the input text over which this <tt>Normalizer</tt> will iterate.
|
* Set the input text over which this {@code Normalizer} will iterate.
|
||||||
* The iteration position is set to the beginning of the input text->
|
* The iteration position is set to the beginning of the input text.
|
||||||
* @param newText The new string to be normalized.
|
* @param newText The new string to be normalized.
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
@ -1011,8 +1011,8 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the input text over which this <tt>Normalizer</tt> will iterate.
|
* Set the input text over which this {@code Normalizer} will iterate.
|
||||||
* The iteration position is set to the beginning of the input text->
|
* The iteration position is set to the beginning of the input text.
|
||||||
* @param newText The new string to be normalized.
|
* @param newText The new string to be normalized.
|
||||||
* @stable ICU 2.8
|
* @stable ICU 2.8
|
||||||
*/
|
*/
|
||||||
@ -1571,7 +1571,7 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
//
|
//
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new <tt>Normalizer</tt> object for iterating over the
|
* Creates a new {@code Normalizer} object for iterating over the
|
||||||
* normalized form of a given string.
|
* normalized form of a given string.
|
||||||
*
|
*
|
||||||
* @param str The string to be normalized. The normalization
|
* @param str The string to be normalized. The normalization
|
||||||
@ -1646,7 +1646,6 @@ public final class NormalizerBase implements Cloneable {
|
|||||||
* perform further tests to arrive at a true/false result.
|
* perform further tests to arrive at a true/false result.
|
||||||
* @param str the input string to be checked to see if it is normalized
|
* @param str the input string to be checked to see if it is normalized
|
||||||
* @param form the normalization form
|
* @param form the normalization form
|
||||||
* @param options the optional features to be enabled.
|
|
||||||
*/
|
*/
|
||||||
public static boolean isNormalized(String str, Normalizer.Form form) {
|
public static boolean isNormalized(String str, Normalizer.Form form) {
|
||||||
return isNormalized(str, form, UNICODE_LATEST);
|
return isNormalized(str, form, UNICODE_LATEST);
|
||||||
|
@ -38,12 +38,13 @@
|
|||||||
package sun.text.normalizer;
|
package sun.text.normalizer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Interface for enabling iteration over sets of <int index, int value>,
|
* <p>Interface for enabling iteration over sets of
|
||||||
|
* {@code <int index, int value>},
|
||||||
* where index is the sorted integer index in ascending order and value, its
|
* where index is the sorted integer index in ascending order and value, its
|
||||||
* associated integer value.</p>
|
* associated integer value.
|
||||||
* <p>The result for each iteration is the consecutive range of
|
* <p>The result for each iteration is the consecutive range of
|
||||||
* <int index, int value> with the same value. Result is represented by
|
* {@code <int index, int value>} with the same value. Result is represented by
|
||||||
* <start, limit, value> where</p>
|
* {@code <start, limit, value>} where
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> start is the starting integer of the result range
|
* <li> start is the starting integer of the result range
|
||||||
* <li> limit is 1 after the maximum integer that follows start, such that
|
* <li> limit is 1 after the maximum integer that follows start, such that
|
||||||
@ -56,10 +57,10 @@ package sun.text.normalizer;
|
|||||||
* Hence value(start) = value(start + 1) = .... = value(start + n) = .... =
|
* Hence value(start) = value(start + 1) = .... = value(start + n) = .... =
|
||||||
* value(limit - 1). However value(start -1) != value(start) and
|
* value(limit - 1). However value(start -1) != value(start) and
|
||||||
* value(limit) != value(start).
|
* value(limit) != value(start).
|
||||||
* </p>
|
*
|
||||||
* <p>Most implementations will be created by factory methods, such as the
|
* <p>Most implementations will be created by factory methods, such as the
|
||||||
* character type iterator in UCharacter.getTypeIterator. See example below.
|
* character type iterator in UCharacter.getTypeIterator. See example below.
|
||||||
* </p>
|
*
|
||||||
* Example of use:<br>
|
* Example of use:<br>
|
||||||
* <pre>
|
* <pre>
|
||||||
* RangeValueIterator iterator = UCharacter.getTypeIterator();
|
* RangeValueIterator iterator = UCharacter.getTypeIterator();
|
||||||
|
@ -71,10 +71,9 @@ package sun.text.normalizer;
|
|||||||
* <li>If there is no previous character (i.e. start == 0), use the
|
* <li>If there is no previous character (i.e. start == 0), use the
|
||||||
* following character</li>
|
* following character</li>
|
||||||
* <li>If there is no following character (i.e. the replaceable was
|
* <li>If there is no following character (i.e. the replaceable was
|
||||||
* empty), use default metadata<br>
|
* empty), use default metadata</li>
|
||||||
* <li>If the code point U+FFFF is seen, it should be interpreted as
|
* <li>If the code point U+FFFF is seen, it should be interpreted as
|
||||||
* a special marker having no metadata<li>
|
* a special marker having no metadata</li>
|
||||||
* </li>
|
|
||||||
* </ul>
|
* </ul>
|
||||||
* If this is not the behavior, the subclass should document any differences.
|
* If this is not the behavior, the subclass should document any differences.
|
||||||
*
|
*
|
||||||
@ -111,10 +110,10 @@ public interface Replaceable {
|
|||||||
* starting at index <code>dstStart</code> and ending at index
|
* starting at index <code>dstStart</code> and ending at index
|
||||||
* <code>dstStart + (srcLimit-srcStart) - 1</code>.
|
* <code>dstStart + (srcLimit-srcStart) - 1</code>.
|
||||||
*
|
*
|
||||||
* @param srcStart the beginning index to copy, inclusive; <code>0
|
* @param srcStart the beginning index to copy, inclusive;
|
||||||
* <= start <= limit</code>.
|
* {@code 0 <= start <= limit}.
|
||||||
* @param srcLimit the ending index to copy, exclusive;
|
* @param srcLimit the ending index to copy, exclusive;
|
||||||
* <code>start <= limit <= length()</code>.
|
* {@code start <= limit <= length()}.
|
||||||
* @param dst the destination array.
|
* @param dst the destination array.
|
||||||
* @param dstStart the start offset in the destination array.
|
* @param dstStart the start offset in the destination array.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
|
@ -109,10 +109,10 @@ public class ReplaceableString implements Replaceable {
|
|||||||
* starting at index <code>dstStart</code> and ending at index
|
* starting at index <code>dstStart</code> and ending at index
|
||||||
* <code>dstStart + (srcLimit-srcStart) - 1</code>.
|
* <code>dstStart + (srcLimit-srcStart) - 1</code>.
|
||||||
*
|
*
|
||||||
* @param srcStart the beginning index to copy, inclusive; <code>0
|
* @param srcStart the beginning index to copy, inclusive;
|
||||||
* <= start <= limit</code>.
|
* {@code 0 <= start <= limit}.
|
||||||
* @param srcLimit the ending index to copy, exclusive;
|
* @param srcLimit the ending index to copy, exclusive;
|
||||||
* <code>start <= limit <= length()</code>.
|
* {@code start <= limit <= length()}.
|
||||||
* @param dst the destination array.
|
* @param dst the destination array.
|
||||||
* @param dstStart the start offset in the destination array.
|
* @param dstStart the start offset in the destination array.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
|
@ -150,14 +150,12 @@ public class ReplaceableUCharacterIterator extends UCharacterIterator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Sets the currentIndex to the specified currentIndex in the text and returns that
|
* Sets the currentIndex to the specified currentIndex in the text and returns that
|
||||||
* single UTF16 character at currentIndex.
|
* single UTF16 character at currentIndex.
|
||||||
* This assumes the text is stored as 16-bit code units.</p>
|
* This assumes the text is stored as 16-bit code units.
|
||||||
* @param currentIndex the currentIndex within the text.
|
* @param currentIndex the currentIndex within the text.
|
||||||
* @exception IllegalArgumentException is thrown if an invalid currentIndex is
|
* @exception IllegalArgumentException is thrown if an invalid currentIndex is
|
||||||
* supplied. i.e. currentIndex is out of bounds.
|
* supplied. i.e. currentIndex is out of bounds.
|
||||||
* @return the character at the specified currentIndex or DONE if the specified
|
|
||||||
* currentIndex is equal to the end of the text.
|
|
||||||
*/
|
*/
|
||||||
public void setIndex(int currentIndex) {
|
public void setIndex(int currentIndex) {
|
||||||
if (currentIndex < 0 || currentIndex > replaceable.length()) {
|
if (currentIndex < 0 || currentIndex > replaceable.length()) {
|
||||||
|
@ -101,22 +101,25 @@ public class RuleCharacterIterator {
|
|||||||
public static final int DONE = -1;
|
public static final int DONE = -1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitmask option to enable parsing of variable names. If (options &
|
* Bitmask option to enable parsing of variable names.
|
||||||
* PARSE_VARIABLES) != 0, then an embedded variable will be expanded to
|
* If {@code (options & PARSE_VARIABLES) != 0},
|
||||||
|
* then an embedded variable will be expanded to
|
||||||
* its value. Variables are parsed using the SymbolTable API.
|
* its value. Variables are parsed using the SymbolTable API.
|
||||||
*/
|
*/
|
||||||
public static final int PARSE_VARIABLES = 1;
|
public static final int PARSE_VARIABLES = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitmask option to enable parsing of escape sequences. If (options &
|
* Bitmask option to enable parsing of escape sequences.
|
||||||
* PARSE_ESCAPES) != 0, then an embedded escape sequence will be expanded
|
* If {@code (options & PARSE_ESCAPES) != 0},
|
||||||
|
* then an embedded escape sequence will be expanded
|
||||||
* to its value. Escapes are parsed using Utility.unescapeAt().
|
* to its value. Escapes are parsed using Utility.unescapeAt().
|
||||||
*/
|
*/
|
||||||
public static final int PARSE_ESCAPES = 2;
|
public static final int PARSE_ESCAPES = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitmask option to enable skipping of whitespace. If (options &
|
* Bitmask option to enable skipping of whitespace.
|
||||||
* SKIP_WHITESPACE) != 0, then whitespace characters will be silently
|
* If {@code (options & SKIP_WHITESPACE) != 0},
|
||||||
|
* then whitespace characters will be silently
|
||||||
* skipped, as if they were not present in the input. Whitespace
|
* skipped, as if they were not present in the input. Whitespace
|
||||||
* characters are defined by UCharacterProperty.isRuleWhiteSpace().
|
* characters are defined by UCharacterProperty.isRuleWhiteSpace().
|
||||||
*/
|
*/
|
||||||
|
@ -78,7 +78,7 @@ public interface SymbolTable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup the characters associated with this string and return it.
|
* Lookup the characters associated with this string and return it.
|
||||||
* Return <tt>null</tt> if no such name exists. The resultant
|
* Return {@code null} if no such name exists. The resultant
|
||||||
* array may have length zero.
|
* array may have length zero.
|
||||||
* @param s the symbolic name to lookup
|
* @param s the symbolic name to lookup
|
||||||
* @return a char array containing the name's value, or null if
|
* @return a char array containing the name's value, or null if
|
||||||
@ -91,7 +91,7 @@ public interface SymbolTable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup the UnicodeMatcher associated with the given character, and
|
* Lookup the UnicodeMatcher associated with the given character, and
|
||||||
* return it. Return <tt>null</tt> if not found.
|
* return it. Return {@code null} if not found.
|
||||||
* @param ch a 32-bit code point from 0 to 0x10FFFF inclusive.
|
* @param ch a 32-bit code point from 0 to 0x10FFFF inclusive.
|
||||||
* @return the UnicodeMatcher object represented by the given
|
* @return the UnicodeMatcher object represented by the given
|
||||||
* character, or null if there is no mapping for ch.
|
* character, or null if there is no mapping for ch.
|
||||||
|
@ -160,8 +160,10 @@ public abstract class Trie
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Lead surrogate code points' index displacement in the index array.
|
* Lead surrogate code points' index displacement in the index array.
|
||||||
|
* <pre>{@code
|
||||||
* 0x10000-0xd800=0x2800
|
* 0x10000-0xd800=0x2800
|
||||||
* 0x2800 >> INDEX_STAGE_1_SHIFT_
|
* 0x2800 >> INDEX_STAGE_1_SHIFT_
|
||||||
|
* }</pre>
|
||||||
*/
|
*/
|
||||||
protected static final int LEAD_INDEX_OFFSET_ = 0x2800 >> 5;
|
protected static final int LEAD_INDEX_OFFSET_ = 0x2800 >> 5;
|
||||||
/**
|
/**
|
||||||
@ -191,7 +193,7 @@ public abstract class Trie
|
|||||||
/**
|
/**
|
||||||
* Number of index (stage 1) entries per lead surrogate.
|
* Number of index (stage 1) entries per lead surrogate.
|
||||||
* Same as number of index entries for 1024 trail surrogates,
|
* Same as number of index entries for 1024 trail surrogates,
|
||||||
* ==0x400>>INDEX_STAGE_1_SHIFT_
|
* {@code ==0x400>>INDEX_STAGE_1_SHIFT_}
|
||||||
*/
|
*/
|
||||||
protected static final int SURROGATE_BLOCK_COUNT=(1<<SURROGATE_BLOCK_BITS);
|
protected static final int SURROGATE_BLOCK_COUNT=(1<<SURROGATE_BLOCK_BITS);
|
||||||
/** Length of the BMP portion of the index (stage 1) array. */
|
/** Length of the BMP portion of the index (stage 1) array. */
|
||||||
@ -297,7 +299,7 @@ public abstract class Trie
|
|||||||
/**
|
/**
|
||||||
* Internal trie getter from a code point.
|
* Internal trie getter from a code point.
|
||||||
* Could be faster(?) but longer with
|
* Could be faster(?) but longer with
|
||||||
* if((c32)<=0xd7ff) { (result)=_TRIE_GET_RAW(trie, data, 0, c32); }
|
* {@code if((c32)<=0xd7ff) { (result)=_TRIE_GET_RAW(trie, data, 0, c32); }}
|
||||||
* Gets the offset to data which the codepoint points to
|
* Gets the offset to data which the codepoint points to
|
||||||
* @param ch codepoint
|
* @param ch codepoint
|
||||||
* @return offset to data
|
* @return offset to data
|
||||||
|
@ -37,17 +37,17 @@
|
|||||||
package sun.text.normalizer;
|
package sun.text.normalizer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Class enabling iteration of the values in a Trie.</p>
|
* Class enabling iteration of the values in a Trie.
|
||||||
* <p>Result of each iteration contains the interval of codepoints that have
|
* <p>Result of each iteration contains the interval of codepoints that have
|
||||||
* the same value type and the value type itself.</p>
|
* the same value type and the value type itself.
|
||||||
* <p>The comparison of each codepoint value is done via extract(), which the
|
* <p>The comparison of each codepoint value is done via extract(), which the
|
||||||
* default implementation is to return the value as it is.</p>
|
* default implementation is to return the value as it is.
|
||||||
* <p>Method extract() can be overwritten to perform manipulations on
|
* <p>Method extract() can be overwritten to perform manipulations on
|
||||||
* codepoint values in order to perform specialized comparison.</p>
|
* codepoint values in order to perform specialized comparison.
|
||||||
* <p>TrieIterator is designed to be a generic iterator for the CharTrie
|
* <p>TrieIterator is designed to be a generic iterator for the CharTrie
|
||||||
* and the IntTrie, hence to accommodate both types of data, the return
|
* and the IntTrie, hence to accommodate both types of data, the return
|
||||||
* result will be in terms of int (32 bit) values.</p>
|
* result will be in terms of int (32 bit) values.
|
||||||
* <p>See com.ibm.icu.text.UCharacterTypeIterator for examples of use.</p>
|
* <p>See com.ibm.icu.text.UCharacterTypeIterator for examples of use.
|
||||||
* <p>Notes for porting utrie_enum from icu4c to icu4j:<br>
|
* <p>Notes for porting utrie_enum from icu4c to icu4j:<br>
|
||||||
* Internally, icu4c's utrie_enum performs all iterations in its body. In Java
|
* Internally, icu4c's utrie_enum performs all iterations in its body. In Java
|
||||||
* sense, the caller will have to pass a object with a callback function
|
* sense, the caller will have to pass a object with a callback function
|
||||||
@ -63,17 +63,16 @@ package sun.text.normalizer;
|
|||||||
* the method extract(int) (equivalent to UTrieEnumValue). Independent of icu4j,
|
* the method extract(int) (equivalent to UTrieEnumValue). Independent of icu4j,
|
||||||
* the caller will have to code his own iteration and flesh out the task
|
* the caller will have to code his own iteration and flesh out the task
|
||||||
* (equivalent to UTrieEnumRange) to be performed in the iteration loop.
|
* (equivalent to UTrieEnumRange) to be performed in the iteration loop.
|
||||||
* </p>
|
*
|
||||||
* <p>There are basically 3 usage scenarios for porting:</p>
|
* <p>There are basically 3 usage scenarios for porting:
|
||||||
* <p>1) UTrieEnumValue is the only implemented callback then just implement a
|
* <p>1) UTrieEnumValue is the only implemented callback then just implement a
|
||||||
* subclass of TrieIterator and override the extract(int) method. The
|
* subclass of TrieIterator and override the extract(int) method. The
|
||||||
* extract(int) method is analogus to UTrieEnumValue callback.
|
* extract(int) method is analogus to UTrieEnumValue callback.
|
||||||
* </p>
|
*
|
||||||
* <p>2) UTrieEnumValue and UTrieEnumRange both are implemented then implement
|
* <p>2) UTrieEnumValue and UTrieEnumRange both are implemented then implement
|
||||||
* a subclass of TrieIterator, override the extract method and iterate, e.g
|
* a subclass of TrieIterator, override the extract method and iterate, e.g.<br>
|
||||||
* </p>
|
* {@code utrie_enum(&normTrie, _enumPropertyStartsValue, _enumPropertyStartsRange,
|
||||||
* <p>utrie_enum(&normTrie, _enumPropertyStartsValue, _enumPropertyStartsRange,
|
* set);}<br>
|
||||||
* set);<br>
|
|
||||||
* In Java:<br>
|
* In Java:<br>
|
||||||
* <pre>
|
* <pre>
|
||||||
* class TrieIteratorImpl extends TrieIterator{
|
* class TrieIteratorImpl extends TrieIterator{
|
||||||
@ -90,17 +89,17 @@ package sun.text.normalizer;
|
|||||||
* // port the implementation of _enumPropertyStartsRange
|
* // port the implementation of _enumPropertyStartsRange
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
* </p>
|
*
|
||||||
* <p>3) UTrieEnumRange is the only implemented callback then just implement
|
* <p>3) UTrieEnumRange is the only implemented callback then just implement
|
||||||
* the while loop, when utrie_enum is called
|
* the while loop, when utrie_enum is called
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* // utrie_enum(&fcdTrie, NULL, _enumPropertyStartsRange, set);
|
* // utrie_enum(&fcdTrie, NULL, _enumPropertyStartsRange, set);
|
||||||
* TrieIterator fcdIter = new TrieIterator(fcdTrieImpl.fcdTrie);
|
* TrieIterator fcdIter = new TrieIterator(fcdTrieImpl.fcdTrie);
|
||||||
* while(fcdIter.next(result)){
|
* while(fcdIter.next(result)){
|
||||||
* set.add(result.start);
|
* set.add(result.start);
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* }</pre>
|
||||||
* </p>
|
*
|
||||||
* @author synwee
|
* @author synwee
|
||||||
* @see com.ibm.icu.impl.Trie
|
* @see com.ibm.icu.impl.Trie
|
||||||
* @see com.ibm.icu.lang.UCharacterTypeIterator
|
* @see com.ibm.icu.lang.UCharacterTypeIterator
|
||||||
|
@ -128,7 +128,7 @@ import java.util.MissingResourceException;
|
|||||||
* Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions
|
* Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions
|
||||||
* (http://www.unicode.org/reports/tr18/#Compatibility_Properties).
|
* (http://www.unicode.org/reports/tr18/#Compatibility_Properties).
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <pre>{@code
|
||||||
* API access for C/POSIX character classes is as follows:
|
* API access for C/POSIX character classes is as follows:
|
||||||
* - alpha: isUAlphabetic(c) or hasBinaryProperty(c, UProperty.ALPHABETIC)
|
* - alpha: isUAlphabetic(c) or hasBinaryProperty(c, UProperty.ALPHABETIC)
|
||||||
* - lower: isULowercase(c) or hasBinaryProperty(c, UProperty.LOWERCASE)
|
* - lower: isULowercase(c) or hasBinaryProperty(c, UProperty.LOWERCASE)
|
||||||
@ -142,7 +142,7 @@ import java.util.MissingResourceException;
|
|||||||
* - cntrl: getType(c)==CONTROL
|
* - cntrl: getType(c)==CONTROL
|
||||||
* - graph: hasBinaryProperty(c, UProperty.POSIX_GRAPH)
|
* - graph: hasBinaryProperty(c, UProperty.POSIX_GRAPH)
|
||||||
* - print: hasBinaryProperty(c, UProperty.POSIX_PRINT)
|
* - print: hasBinaryProperty(c, UProperty.POSIX_PRINT)
|
||||||
* </p>
|
* }</pre>
|
||||||
* <p>
|
* <p>
|
||||||
* The C/POSIX character classes are also available in UnicodeSet patterns,
|
* The C/POSIX character classes are also available in UnicodeSet patterns,
|
||||||
* using patterns like [:graph:] or \p{graph}.
|
* using patterns like [:graph:] or \p{graph}.
|
||||||
|
@ -200,8 +200,7 @@ public abstract class UCharacterIterator
|
|||||||
* iterator obtained by calling <code>getLength()</code>.
|
* iterator obtained by calling <code>getLength()</code>.
|
||||||
* <b>Usage:</b>
|
* <b>Usage:</b>
|
||||||
*
|
*
|
||||||
* <code>
|
* <pre>{@code
|
||||||
* <pre>
|
|
||||||
* UChacterIterator iter = new UCharacterIterator.getInstance(text);
|
* UChacterIterator iter = new UCharacterIterator.getInstance(text);
|
||||||
* char[] buf = new char[iter.getLength()];
|
* char[] buf = new char[iter.getLength()];
|
||||||
* iter.getText(buf);
|
* iter.getText(buf);
|
||||||
@ -217,15 +216,14 @@ public abstract class UCharacterIterator
|
|||||||
* buf = new char[iter.getLength()];
|
* buf = new char[iter.getLength()];
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* }</pre>
|
||||||
* </code>
|
|
||||||
*
|
*
|
||||||
* @param fillIn an array of chars to fill with the underlying UTF-16 code
|
* @param fillIn an array of chars to fill with the underlying UTF-16 code
|
||||||
* units.
|
* units.
|
||||||
* @param offset the position within the array to start putting the data.
|
* @param offset the position within the array to start putting the data.
|
||||||
* @return the number of code units added to fillIn, as a convenience
|
* @return the number of code units added to fillIn, as a convenience
|
||||||
* @exception IndexOutOfBounds exception if there is not enough
|
* @exception IndexOutOfBounds exception if there is not enough
|
||||||
* room after offset in the array, or if offset < 0.
|
* room after offset in the array, or if offset {@literal <} 0.
|
||||||
* @stable ICU 2.4
|
* @stable ICU 2.4
|
||||||
*/
|
*/
|
||||||
public abstract int getText(char[] fillIn, int offset);
|
public abstract int getText(char[] fillIn, int offset);
|
||||||
|
@ -38,26 +38,26 @@ package sun.text.normalizer;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Standalone utility class providing UTF16 character conversions and
|
* <p>Standalone utility class providing UTF16 character conversions and
|
||||||
* indexing conversions.</p>
|
* indexing conversions.
|
||||||
* <p>Code that uses strings alone rarely need modification.
|
* <p>Code that uses strings alone rarely need modification.
|
||||||
* By design, UTF-16 does not allow overlap, so searching for strings is a safe
|
* By design, UTF-16 does not allow overlap, so searching for strings is a safe
|
||||||
* operation. Similarly, concatenation is always safe. Substringing is safe if
|
* operation. Similarly, concatenation is always safe. Substringing is safe if
|
||||||
* the start and end are both on UTF-32 boundaries. In normal code, the values
|
* the start and end are both on UTF-32 boundaries. In normal code, the values
|
||||||
* for start and end are on those boundaries, since they arose from operations
|
* for start and end are on those boundaries, since they arose from operations
|
||||||
* like searching. If not, the nearest UTF-32 boundaries can be determined
|
* like searching. If not, the nearest UTF-32 boundaries can be determined
|
||||||
* using <code>bounds()</code>.</p>
|
* using <code>bounds()</code>.
|
||||||
* <strong>Examples:</strong>
|
* <strong>Examples:</strong>
|
||||||
* <p>The following examples illustrate use of some of these methods.
|
* <p>The following examples illustrate use of some of these methods.
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* // iteration forwards: Original
|
* // iteration forwards: Original
|
||||||
* for (int i = 0; i < s.length(); ++i) {
|
* for (int i = 0; i < s.length(); ++i) {
|
||||||
* char ch = s.charAt(i);
|
* char ch = s.charAt(i);
|
||||||
* doSomethingWith(ch);
|
* doSomethingWith(ch);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* // iteration forwards: Changes for UTF-32
|
* // iteration forwards: Changes for UTF-32
|
||||||
* int ch;
|
* int ch;
|
||||||
* for (int i = 0; i < s.length(); i+=UTF16.getCharCount(ch)) {
|
* for (int i = 0; i < s.length(); i+=UTF16.getCharCount(ch)) {
|
||||||
* ch = UTF16.charAt(s,i);
|
* ch = UTF16.charAt(s,i);
|
||||||
* doSomethingWith(ch);
|
* doSomethingWith(ch);
|
||||||
* }
|
* }
|
||||||
@ -74,7 +74,7 @@ package sun.text.normalizer;
|
|||||||
* ch = UTF16.charAt(s,i);
|
* ch = UTF16.charAt(s,i);
|
||||||
* doSomethingWith(ch);
|
* doSomethingWith(ch);
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* }</pre>
|
||||||
* <strong>Notes:</strong>
|
* <strong>Notes:</strong>
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>
|
* <li>
|
||||||
@ -515,12 +515,12 @@ public final class UTF16
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Converts argument code point and returns a String object representing
|
* <p>Converts argument code point and returns a String object representing
|
||||||
* the code point's value in UTF16 format.</p>
|
* the code point's value in UTF16 format.
|
||||||
* <p>This method does not check for the validity of the codepoint, the
|
* <p>This method does not check for the validity of the codepoint, the
|
||||||
* results are not guaranteed if a invalid codepoint is passed as
|
* results are not guaranteed if a invalid codepoint is passed as
|
||||||
* argument.</p>
|
* argument.
|
||||||
* <p>The result is a string whose length is 1 for non-supplementary code
|
* <p>The result is a string whose length is 1 for non-supplementary code
|
||||||
* points, 2 otherwise.</p>
|
* points, 2 otherwise.
|
||||||
* @param ch code point
|
* @param ch code point
|
||||||
* @return string representation of the code point
|
* @return string representation of the code point
|
||||||
*/
|
*/
|
||||||
|
@ -45,7 +45,8 @@ package sun.text.normalizer;
|
|||||||
public interface UnicodeMatcher {
|
public interface UnicodeMatcher {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character at index i, where i < contextStart || i >= contextLimit,
|
* The character at index {@code i}, where
|
||||||
|
* {@code i < contextStart || i >= contextLimit},
|
||||||
* is ETHER. This allows explicit matching by rules and UnicodeSets
|
* is ETHER. This allows explicit matching by rules and UnicodeSets
|
||||||
* of text outside the context. In traditional terms, this allows anchoring
|
* of text outside the context. In traditional terms, this allows anchoring
|
||||||
* at the start and/or end.
|
* at the start and/or end.
|
||||||
|
@ -107,8 +107,8 @@ import java.util.TreeSet;
|
|||||||
* </tr>
|
* </tr>
|
||||||
* <tr>
|
* <tr>
|
||||||
* <td nowrap valign="top" align="left"><code>[a{ab}{ac}]</code></td>
|
* <td nowrap valign="top" align="left"><code>[a{ab}{ac}]</code></td>
|
||||||
* <td valign="top">The character 'a' and the multicharacter strings "ab" and
|
* <td valign="top">The character 'a' and the multicharacter strings "ab" and
|
||||||
* "ac"</td>
|
* "ac"</td>
|
||||||
* </tr>
|
* </tr>
|
||||||
* <tr>
|
* <tr>
|
||||||
* <td nowrap valign="top" align="left"><code>[\p{Lu}]</code></td>
|
* <td nowrap valign="top" align="left"><code>[\p{Lu}]</code></td>
|
||||||
@ -148,10 +148,10 @@ import java.util.TreeSet;
|
|||||||
* literal. Thus "[a\\-b]", "[-ab]", and "[ab-]" all indicate the same
|
* literal. Thus "[a\\-b]", "[-ab]", and "[ab-]" all indicate the same
|
||||||
* set of three characters, 'a', 'b', and '-'.
|
* set of three characters, 'a', 'b', and '-'.
|
||||||
*
|
*
|
||||||
* <p>Sets may be intersected using the '&' operator or the asymmetric
|
* <p>Sets may be intersected using the {@literal '&'} operator or the asymmetric
|
||||||
* set difference may be taken using the '-' operator, for example,
|
* set difference may be taken using the '-' operator, for example,
|
||||||
* "[[:L:]&[\\u0000-\\u0FFF]]" indicates the set of all Unicode letters
|
* "{@code [[:L:]&[\\u0000-\\u0FFF]]}" indicates the set of all Unicode letters
|
||||||
* with values less than 4096. Operators ('&' and '|') have equal
|
* with values less than 4096. Operators ({@literal '&'} and '|') have equal
|
||||||
* precedence and bind left-to-right. Thus
|
* precedence and bind left-to-right. Thus
|
||||||
* "[[:L:]-[a-z]-[\\u0100-\\u01FF]]" is equivalent to
|
* "[[:L:]-[a-z]-[\\u0100-\\u01FF]]" is equivalent to
|
||||||
* "[[[:L:]-[a-z]]-[\\u0100-\\u01FF]]". This only really matters for
|
* "[[[:L:]-[a-z]]-[\\u0100-\\u01FF]]". This only really matters for
|
||||||
@ -166,7 +166,7 @@ import java.util.TreeSet;
|
|||||||
* that is, U+0000 through 'a'-1 and 'z'+1 through U+10FFFF
|
* that is, U+0000 through 'a'-1 and 'z'+1 through U+10FFFF
|
||||||
* <tr valign=top><td nowrap><code>[[<em>pat1</em>][<em>pat2</em>]]</code>
|
* <tr valign=top><td nowrap><code>[[<em>pat1</em>][<em>pat2</em>]]</code>
|
||||||
* <td>The union of sets specified by <em>pat1</em> and <em>pat2</em>
|
* <td>The union of sets specified by <em>pat1</em> and <em>pat2</em>
|
||||||
* <tr valign=top><td nowrap><code>[[<em>pat1</em>]&[<em>pat2</em>]]</code>
|
* <tr valign=top><td nowrap><code>[[<em>pat1</em>]&[<em>pat2</em>]]</code>
|
||||||
* <td>The intersection of sets specified by <em>pat1</em> and <em>pat2</em>
|
* <td>The intersection of sets specified by <em>pat1</em> and <em>pat2</em>
|
||||||
* <tr valign=top><td nowrap><code>[[<em>pat1</em>]-[<em>pat2</em>]]</code>
|
* <tr valign=top><td nowrap><code>[[<em>pat1</em>]-[<em>pat2</em>]]</code>
|
||||||
* <td>The asymmetric difference of sets specified by <em>pat1</em> and
|
* <td>The asymmetric difference of sets specified by <em>pat1</em> and
|
||||||
@ -227,7 +227,7 @@ import java.util.TreeSet;
|
|||||||
* </tr>
|
* </tr>
|
||||||
* <tr>
|
* <tr>
|
||||||
* <td nowrap valign="top" align="right"><code>property := </code></td>
|
* <td nowrap valign="top" align="right"><code>property := </code></td>
|
||||||
* <td valign="top"><em>a Unicode property set pattern</td>
|
* <td valign="top"><em>a Unicode property set pattern</em></td>
|
||||||
* </tr>
|
* </tr>
|
||||||
* </table>
|
* </table>
|
||||||
* <br>
|
* <br>
|
||||||
@ -337,8 +337,8 @@ public class UnicodeSet implements UnicodeMatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a set containing the given range. If <code>end >
|
* Constructs a set containing the given range.
|
||||||
* start</code> then an empty set is created.
|
* If {@code end > start} then an empty set is created.
|
||||||
*
|
*
|
||||||
* @param start first character, inclusive, of range
|
* @param start first character, inclusive, of range
|
||||||
* @param end last character, inclusive, of range
|
* @param end last character, inclusive, of range
|
||||||
@ -651,7 +651,7 @@ public class UnicodeSet implements UnicodeMatcher {
|
|||||||
* Adds the specified multicharacter to this set if it is not already
|
* Adds the specified multicharacter to this set if it is not already
|
||||||
* present. If this set already contains the multicharacter,
|
* present. If this set already contains the multicharacter,
|
||||||
* the call leaves this set unchanged.
|
* the call leaves this set unchanged.
|
||||||
* Thus "ch" => {"ch"}
|
* Thus {@code "ch" => {"ch"}}
|
||||||
* <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
|
* <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
|
||||||
* @param s the source string
|
* @param s the source string
|
||||||
* @return this object, for chaining
|
* @return this object, for chaining
|
||||||
@ -691,7 +691,7 @@ public class UnicodeSet implements UnicodeMatcher {
|
|||||||
/**
|
/**
|
||||||
* Complements the specified range in this set. Any character in
|
* Complements the specified range in this set. Any character in
|
||||||
* the range will be removed if it is in this set, or will be
|
* the range will be removed if it is in this set, or will be
|
||||||
* added if it is not in this set. If <code>end > start</code>
|
* added if it is not in this set. If {@code end > start}
|
||||||
* then an empty range is complemented, leaving the set unchanged.
|
* then an empty range is complemented, leaving the set unchanged.
|
||||||
*
|
*
|
||||||
* @param start first character, inclusive, of range to be removed
|
* @param start first character, inclusive, of range to be removed
|
||||||
@ -1698,8 +1698,8 @@ public class UnicodeSet implements UnicodeMatcher {
|
|||||||
* Modifies this set to contain those code points which have the
|
* Modifies this set to contain those code points which have the
|
||||||
* given value for the given property. Prior contents of this
|
* given value for the given property. Prior contents of this
|
||||||
* set are lost.
|
* set are lost.
|
||||||
* @param propertyAlias
|
* @param propertyAlias the property alias
|
||||||
* @param valueAlias
|
* @param valueAlias the value alias
|
||||||
* @param symbols if not null, then symbols are first called to see if a property
|
* @param symbols if not null, then symbols are first called to see if a property
|
||||||
* is available. If true, then everything else is skipped.
|
* is available. If true, then everything else is skipped.
|
||||||
* @return this set
|
* @return this set
|
||||||
|
@ -73,35 +73,35 @@ import java.util.Iterator;
|
|||||||
public class UnicodeSetIterator {
|
public class UnicodeSetIterator {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Value of <tt>codepoint</tt> if the iterator points to a string.
|
* Value of {@code codepoint} if the iterator points to a string.
|
||||||
* If <tt>codepoint == IS_STRING</tt>, then examine
|
* If {@code codepoint == IS_STRING}, then examine
|
||||||
* <tt>string</tt> for the current iteration result.
|
* {@code string} for the current iteration result.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
*/
|
*/
|
||||||
public static int IS_STRING = -1;
|
public static int IS_STRING = -1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current code point, or the special value <tt>IS_STRING</tt>, if
|
* Current code point, or the special value {@code IS_STRING}, if
|
||||||
* the iterator points to a string.
|
* the iterator points to a string.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
*/
|
*/
|
||||||
public int codepoint;
|
public int codepoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When iterating over ranges using <tt>nextRange()</tt>,
|
* When iterating over ranges using {@code nextRange()},
|
||||||
* <tt>codepointEnd</tt> contains the inclusive end of the
|
* {@code codepointEnd} contains the inclusive end of the
|
||||||
* iteration range, if <tt>codepoint != IS_STRING</tt>. If
|
* iteration range, if {@code codepoint != IS_STRING}. If
|
||||||
* iterating over code points using <tt>next()</tt>, or if
|
* iterating over code points using {@code next()}, or if
|
||||||
* <tt>codepoint == IS_STRING</tt>, then the value of
|
* {@code codepoint == IS_STRING}, then the value of
|
||||||
* <tt>codepointEnd</tt> is undefined.
|
* {@code codepointEnd} is undefined.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
*/
|
*/
|
||||||
public int codepointEnd;
|
public int codepointEnd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points
|
* If {@code codepoint == IS_STRING}, then {@code string} points
|
||||||
* to the current string. If <tt>codepoint != IS_STRING</tt>, the
|
* to the current string. If {@code codepoint != IS_STRING}, the
|
||||||
* value of <tt>string</tt> is undefined.
|
* value of {@code string} is undefined.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
*/
|
*/
|
||||||
public String string;
|
public String string;
|
||||||
@ -118,17 +118,17 @@ public class UnicodeSetIterator {
|
|||||||
/**
|
/**
|
||||||
* Returns the next element in the set, either a code point range
|
* Returns the next element in the set, either a code point range
|
||||||
* or a string. If there are no more elements in the set, return
|
* or a string. If there are no more elements in the set, return
|
||||||
* false. If <tt>codepoint == IS_STRING</tt>, the value is a
|
* false. If {@code codepoint == IS_STRING}, the value is a
|
||||||
* string in the <tt>string</tt> field. Otherwise the value is a
|
* string in the {@code string} field. Otherwise the value is a
|
||||||
* range of one or more code points from <tt>codepoint</tt> to
|
* range of one or more code points from {@code codepoint} to
|
||||||
* <tt>codepointeEnd</tt> inclusive.
|
* {@code codepointeEnd} inclusive.
|
||||||
*
|
*
|
||||||
* <p>The order of iteration is all code points ranges in sorted
|
* <p>The order of iteration is all code points ranges in sorted
|
||||||
* order, followed by all strings sorted order. Ranges are
|
* order, followed by all strings sorted order. Ranges are
|
||||||
* disjoint and non-contiguous. <tt>string</tt> is undefined
|
* disjoint and non-contiguous. {@code string} is undefined
|
||||||
* unless <tt>codepoint == IS_STRING</tt>. Do not mix calls to
|
* unless {@code codepoint == IS_STRING}. Do not mix calls to
|
||||||
* <tt>next()</tt> and <tt>nextRange()</tt> without calling
|
* {@code next()} and {@code nextRange()} without calling
|
||||||
* <tt>reset()</tt> between them. The results of doing so are
|
* {@code reset()} between them. The results of doing so are
|
||||||
* undefined.
|
* undefined.
|
||||||
*
|
*
|
||||||
* @return true if there was another element in the set and this
|
* @return true if there was another element in the set and this
|
||||||
@ -162,8 +162,8 @@ public class UnicodeSetIterator {
|
|||||||
/**
|
/**
|
||||||
* Sets this iterator to visit the elements of the given set and
|
* Sets this iterator to visit the elements of the given set and
|
||||||
* resets it to the start of that set. The iterator is valid only
|
* resets it to the start of that set. The iterator is valid only
|
||||||
* so long as <tt>set</tt> is valid.
|
* so long as {@code set} is valid.
|
||||||
* @param set the set to iterate over.
|
* @param uset the set to iterate over.
|
||||||
* @stable ICU 2.0
|
* @stable ICU 2.0
|
||||||
*/
|
*/
|
||||||
public void reset(UnicodeSet uset) {
|
public void reset(UnicodeSet uset) {
|
||||||
|
@ -227,7 +227,7 @@ public final class Utility {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a integer to size width hex uppercase digits.
|
* Convert a integer to size width hex uppercase digits.
|
||||||
* E.g., hex('a', 4, str) => "0041".
|
* E.g., {@code hex('a', 4, str) => "0041"}.
|
||||||
* Append the output to the given StringBuffer.
|
* Append the output to the given StringBuffer.
|
||||||
* If width is too small to fit, nothing will be appended to output.
|
* If width is too small to fit, nothing will be appended to output.
|
||||||
*/
|
*/
|
||||||
@ -237,7 +237,7 @@ public final class Utility {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a integer to size width (minimum) hex uppercase digits.
|
* Convert a integer to size width (minimum) hex uppercase digits.
|
||||||
* E.g., hex('a', 4, str) => "0041". If the integer requires more
|
* E.g., {@code hex('a', 4, str) => "0041"}. If the integer requires more
|
||||||
* than width digits, more will be used.
|
* than width digits, more will be used.
|
||||||
*/
|
*/
|
||||||
public static String hex(int ch, int width) {
|
public static String hex(int ch, int width) {
|
||||||
@ -334,8 +334,8 @@ public final class Utility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Escape unprintable characters using <backslash>uxxxx notation
|
* Escape unprintable characters using {@code <backslash>uxxxx} notation
|
||||||
* for U+0000 to U+FFFF and <backslash>Uxxxxxxxx for U+10000 and
|
* for U+0000 to U+FFFF and {@code <backslash>Uxxxxxxxx} for U+10000 and
|
||||||
* above. If the character is printable ASCII, then do nothing
|
* above. If the character is printable ASCII, then do nothing
|
||||||
* and return FALSE. Otherwise, append the escaped notation and
|
* and return FALSE. Otherwise, append the escaped notation and
|
||||||
* return TRUE.
|
* return TRUE.
|
||||||
|
@ -53,7 +53,7 @@ public final class VersionInfo
|
|||||||
* @param version version String in the format of "major.minor.milli.micro"
|
* @param version version String in the format of "major.minor.milli.micro"
|
||||||
* or "major.minor.milli" or "major.minor" or "major",
|
* or "major.minor.milli" or "major.minor" or "major",
|
||||||
* where major, minor, milli, micro are non-negative numbers
|
* where major, minor, milli, micro are non-negative numbers
|
||||||
* <= 255. If the trailing version numbers are
|
* {@literal <=} 255. If the trailing version numbers are
|
||||||
* not specified they are taken as 0s. E.g. Version "3.1" is
|
* not specified they are taken as 0s. E.g. Version "3.1" is
|
||||||
* equivalent to "3.1.0.0".
|
* equivalent to "3.1.0.0".
|
||||||
* @return an instance of VersionInfo with the argument version.
|
* @return an instance of VersionInfo with the argument version.
|
||||||
@ -98,12 +98,12 @@ public final class VersionInfo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an instance of VersionInfo with the argument version.
|
* Returns an instance of VersionInfo with the argument version.
|
||||||
* @param major major version, non-negative number <= 255.
|
* @param major major version, non-negative number {@literal <=} 255.
|
||||||
* @param minor minor version, non-negative number <= 255.
|
* @param minor minor version, non-negative number {@literal <=} 255.
|
||||||
* @param milli milli version, non-negative number <= 255.
|
* @param milli milli version, non-negative number {@literal <=} 255.
|
||||||
* @param micro micro version, non-negative number <= 255.
|
* @param micro micro version, non-negative number {@literal <=} 255.
|
||||||
* @exception throws an IllegalArgumentException when either arguments are
|
* @exception throws an IllegalArgumentException when either arguments are
|
||||||
* negative or > 255
|
* negative or {@literal >} 255
|
||||||
* @stable ICU 2.6
|
* @stable ICU 2.6
|
||||||
*/
|
*/
|
||||||
public static VersionInfo getInstance(int major, int minor, int milli,
|
public static VersionInfo getInstance(int major, int minor, int milli,
|
||||||
|
@ -79,18 +79,20 @@ import sun.reflect.misc.ReflectUtil;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>A converter between Java types and the limited set of classes
|
* <p>A converter between Java types and the limited set of classes
|
||||||
* defined by Open MBeans.</p>
|
* defined by Open MBeans.
|
||||||
*
|
*
|
||||||
* <p>A Java type is an instance of java.lang.reflect.Type. For our
|
* <p>A Java type is an instance of java.lang.reflect.Type. For our
|
||||||
* purposes, it is either a Class, such as String.class or int.class;
|
* purposes, it is either a Class, such as String.class or int.class;
|
||||||
* or a ParameterizedType, such as List<String> or Map<Integer,
|
* or a ParameterizedType, such as {@code List<String>} or
|
||||||
* String[]>. On J2SE 1.4 and earlier, it can only be a Class.</p>
|
* {@code Map<Integer, String[]>}.
|
||||||
|
* On J2SE 1.4 and earlier, it can only be a Class.
|
||||||
*
|
*
|
||||||
* <p>Each Type is associated with an DefaultMXBeanMappingFactory. The
|
* <p>Each Type is associated with an DefaultMXBeanMappingFactory. The
|
||||||
* DefaultMXBeanMappingFactory defines an OpenType corresponding to the Type, plus a
|
* DefaultMXBeanMappingFactory defines an
|
||||||
* Java class corresponding to the OpenType. For example:</p>
|
* OpenType corresponding to the Type, plus a
|
||||||
|
* Java class corresponding to the OpenType. For example:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* Type Open class OpenType
|
* Type Open class OpenType
|
||||||
* ---- ---------- --------
|
* ---- ---------- --------
|
||||||
* Integer Integer SimpleType.INTEGER
|
* Integer Integer SimpleType.INTEGER
|
||||||
@ -107,14 +109,14 @@ import sun.reflect.misc.ReflectUtil;
|
|||||||
* ArrayType(1,
|
* ArrayType(1,
|
||||||
* SimpleType.STRING)}),
|
* SimpleType.STRING)}),
|
||||||
* indexNames={"key"})
|
* indexNames={"key"})
|
||||||
* </pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* <p>Apart from simple types, arrays, and collections, Java types are
|
* <p>Apart from simple types, arrays, and collections, Java types are
|
||||||
* converted through introspection into CompositeType. The Java type
|
* converted through introspection into CompositeType. The Java type
|
||||||
* must have at least one getter (method such as "int getSize()" or
|
* must have at least one getter (method such as "int getSize()" or
|
||||||
* "boolean isBig()"), and we must be able to deduce how to
|
* "boolean isBig()"), and we must be able to deduce how to
|
||||||
* reconstruct an instance of the Java class from the values of the
|
* reconstruct an instance of the Java class from the values of the
|
||||||
* getters using one of various heuristics.</p>
|
* getters using one of various heuristics.
|
||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
@ -148,8 +150,8 @@ public class DefaultMXBeanMappingFactory extends MXBeanMappingFactory {
|
|||||||
throws OpenDataException;
|
throws OpenDataException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>True if and only if this MXBeanMapping's toOpenValue and
|
* True if and only if this MXBeanMapping's toOpenValue and
|
||||||
* fromOpenValue methods are the identity function.</p>
|
* fromOpenValue methods are the identity function.
|
||||||
*/
|
*/
|
||||||
boolean isIdentity() {
|
boolean isIdentity() {
|
||||||
return false;
|
return false;
|
||||||
|
@ -57,8 +57,8 @@ public abstract class ServerCommunicatorAdmin {
|
|||||||
* <code>rspOutgoing</code> to inform that a response is sent out
|
* <code>rspOutgoing</code> to inform that a response is sent out
|
||||||
* for the received request.
|
* for the received request.
|
||||||
* @return the value of the termination flag:
|
* @return the value of the termination flag:
|
||||||
* <ul><code>true</code> if the connection is already being terminated,
|
* true if the connection is already being terminated,
|
||||||
* <br><code>false</code> otherwise.</ul>
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean reqIncoming() {
|
public boolean reqIncoming() {
|
||||||
if (logger.traceOn()) {
|
if (logger.traceOn()) {
|
||||||
@ -80,8 +80,8 @@ public abstract class ServerCommunicatorAdmin {
|
|||||||
/**
|
/**
|
||||||
* Tells that a response is sent out for a received request.
|
* Tells that a response is sent out for a received request.
|
||||||
* @return the value of the termination flag:
|
* @return the value of the termination flag:
|
||||||
* <ul><code>true</code> if the connection is already being terminated,
|
* true if the connection is already being terminated,
|
||||||
* <br><code>false</code> otherwise.</ul>
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean rspOutgoing() {
|
public boolean rspOutgoing() {
|
||||||
if (logger.traceOn()) {
|
if (logger.traceOn()) {
|
||||||
|
@ -55,17 +55,17 @@ import javax.management.remote.JMXConnectorServer;
|
|||||||
public class EnvHelp {
|
public class EnvHelp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies a default class loader
|
* Name of the attribute that specifies a default class loader
|
||||||
* object.
|
* object.
|
||||||
* The value associated with this attribute is a ClassLoader object</p>
|
* The value associated with this attribute is a ClassLoader object.
|
||||||
*/
|
*/
|
||||||
private static final String DEFAULT_CLASS_LOADER =
|
private static final String DEFAULT_CLASS_LOADER =
|
||||||
JMXConnectorFactory.DEFAULT_CLASS_LOADER;
|
JMXConnectorFactory.DEFAULT_CLASS_LOADER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies a default class loader
|
* Name of the attribute that specifies a default class loader
|
||||||
* ObjectName.
|
* ObjectName.
|
||||||
* The value associated with this attribute is an ObjectName object</p>
|
* The value associated with this attribute is an ObjectName object.
|
||||||
*/
|
*/
|
||||||
private static final String DEFAULT_CLASS_LOADER_NAME =
|
private static final String DEFAULT_CLASS_LOADER_NAME =
|
||||||
JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME;
|
JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME;
|
||||||
@ -74,7 +74,6 @@ public class EnvHelp {
|
|||||||
* Get the Connector Server default class loader.
|
* Get the Connector Server default class loader.
|
||||||
* <p>
|
* <p>
|
||||||
* Returns:
|
* Returns:
|
||||||
* <p>
|
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>
|
* <li>
|
||||||
* The ClassLoader object found in <var>env</var> for
|
* The ClassLoader object found in <var>env</var> for
|
||||||
@ -114,6 +113,7 @@ public class EnvHelp {
|
|||||||
* <code>jmx.remote.default.class.loader.name</code> is specified
|
* <code>jmx.remote.default.class.loader.name</code> is specified
|
||||||
* but <var>mbs</var> is null.
|
* but <var>mbs</var> is null.
|
||||||
* </li>
|
* </li>
|
||||||
|
* </ul>
|
||||||
* @exception InstanceNotFoundException if
|
* @exception InstanceNotFoundException if
|
||||||
* <code>jmx.remote.default.class.loader.name</code> is specified
|
* <code>jmx.remote.default.class.loader.name</code> is specified
|
||||||
* and the ClassLoader MBean is not found in <var>mbs</var>.
|
* and the ClassLoader MBean is not found in <var>mbs</var>.
|
||||||
@ -172,7 +172,6 @@ public class EnvHelp {
|
|||||||
* Get the Connector Client default class loader.
|
* Get the Connector Client default class loader.
|
||||||
* <p>
|
* <p>
|
||||||
* Returns:
|
* Returns:
|
||||||
* <p>
|
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>
|
* <li>
|
||||||
* The ClassLoader object found in <var>env</var> for
|
* The ClassLoader object found in <var>env</var> for
|
||||||
@ -232,7 +231,7 @@ public class EnvHelp {
|
|||||||
/**
|
/**
|
||||||
* Returns the cause field of a {@code Throwable} object.
|
* Returns the cause field of a {@code Throwable} object.
|
||||||
* The cause field can be got only if <var>t</var> has an
|
* The cause field can be got only if <var>t</var> has an
|
||||||
* {@link Throwable#getCause()} method (JDK Version >= 1.4)
|
* {@link Throwable#getCause()} method (JDK Version {@literal >=} 1.4)
|
||||||
* @param t {@code Throwable} on which the cause must be set.
|
* @param t {@code Throwable} on which the cause must be set.
|
||||||
* @return the cause if getCause() succeeded and the got value is not
|
* @return the cause if getCause() succeeded and the got value is not
|
||||||
* null, otherwise return the <var>t</var>.
|
* null, otherwise return the <var>t</var>.
|
||||||
@ -254,7 +253,7 @@ public class EnvHelp {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies the size of a notification
|
* Name of the attribute that specifies the size of a notification
|
||||||
* buffer for a connector server. The default value is 1000.
|
* buffer for a connector server. The default value is 1000.
|
||||||
*/
|
*/
|
||||||
public static final String BUFFER_SIZE_PROPERTY =
|
public static final String BUFFER_SIZE_PROPERTY =
|
||||||
@ -316,10 +315,10 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies the maximum number of
|
* Name of the attribute that specifies the maximum number of
|
||||||
* notifications that a client will fetch from its server.. The
|
* notifications that a client will fetch from its server. The
|
||||||
* value associated with this attribute should be an
|
* value associated with this attribute should be an
|
||||||
* <code>Integer</code> object. The default value is 1000.</p>
|
* {@code Integer} object. The default value is 1000.
|
||||||
*/
|
*/
|
||||||
public static final String MAX_FETCH_NOTIFS =
|
public static final String MAX_FETCH_NOTIFS =
|
||||||
"jmx.remote.x.notification.fetch.max";
|
"jmx.remote.x.notification.fetch.max";
|
||||||
@ -334,10 +333,10 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies the timeout for a
|
* Name of the attribute that specifies the timeout for a
|
||||||
* client to fetch notifications from its server. The value
|
* client to fetch notifications from its server. The value
|
||||||
* associated with this attribute should be a <code>Long</code>
|
* associated with this attribute should be a <code>Long</code>
|
||||||
* object. The default value is 60000 milliseconds.</p>
|
* object. The default value is 60000 milliseconds.
|
||||||
*/
|
*/
|
||||||
public static final String FETCH_TIMEOUT =
|
public static final String FETCH_TIMEOUT =
|
||||||
"jmx.remote.x.notification.fetch.timeout";
|
"jmx.remote.x.notification.fetch.timeout";
|
||||||
@ -351,11 +350,12 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies an object that will check
|
* Name of the attribute that specifies an object that will check
|
||||||
* accesses to add/removeNotificationListener and also attempts to
|
* accesses to add/removeNotificationListener and also attempts to
|
||||||
* receive notifications. The value associated with this attribute
|
* receive notifications. The value associated with this attribute
|
||||||
* should be a <code>NotificationAccessController</code> object.
|
* should be a <code>NotificationAccessController</code> object.
|
||||||
* The default value is null.</p>
|
* The default value is null.
|
||||||
|
* <p>
|
||||||
* This field is not public because of its com.sun dependency.
|
* This field is not public because of its com.sun dependency.
|
||||||
*/
|
*/
|
||||||
public static final String NOTIF_ACCESS_CONTROLLER =
|
public static final String NOTIF_ACCESS_CONTROLLER =
|
||||||
@ -630,9 +630,9 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies the timeout to keep a
|
* Name of the attribute that specifies the timeout to keep a
|
||||||
* server side connection after answering last client request.
|
* server side connection after answering last client request.
|
||||||
* The default value is 120000 milliseconds.</p>
|
* The default value is 120000 milliseconds.
|
||||||
*/
|
*/
|
||||||
public static final String SERVER_CONNECTION_TIMEOUT =
|
public static final String SERVER_CONNECTION_TIMEOUT =
|
||||||
"jmx.remote.x.server.connection.timeout";
|
"jmx.remote.x.server.connection.timeout";
|
||||||
@ -646,9 +646,9 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies the period in
|
* Name of the attribute that specifies the period in
|
||||||
* millisecond for a client to check its connection. The default
|
* millisecond for a client to check its connection. The default
|
||||||
* value is 60000 milliseconds.</p>
|
* value is 60000 milliseconds.
|
||||||
*/
|
*/
|
||||||
public static final String CLIENT_CONNECTION_CHECK_PERIOD =
|
public static final String CLIENT_CONNECTION_CHECK_PERIOD =
|
||||||
"jmx.remote.x.client.connection.check.period";
|
"jmx.remote.x.client.connection.check.period";
|
||||||
@ -741,13 +741,13 @@ public class EnvHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Name of the attribute that specifies whether a connector server
|
* Name of the attribute that specifies whether a connector server
|
||||||
* should not prevent the VM from exiting
|
* should not prevent the VM from exiting
|
||||||
*/
|
*/
|
||||||
public static final String JMX_SERVER_DAEMON = "jmx.remote.x.daemon";
|
public static final String JMX_SERVER_DAEMON = "jmx.remote.x.daemon";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if {@value SERVER_DAEMON} is specified in the {@code env}
|
* Returns true if {@value JMX_SERVER_DAEMON} is specified in the {@code env}
|
||||||
* as a key and its value is a String and it is equal to true ignoring case.
|
* as a key and its value is a String and it is equal to true ignoring case.
|
||||||
*
|
*
|
||||||
* @param env
|
* @param env
|
||||||
|
@ -64,7 +64,7 @@ public interface HotspotRuntimeMBean {
|
|||||||
* Returns a list of internal counters maintained in the Java
|
* Returns a list of internal counters maintained in the Java
|
||||||
* virtual machine for the runtime system.
|
* virtual machine for the runtime system.
|
||||||
*
|
*
|
||||||
* @return a <tt>List</tt> of internal counters maintained in the VM
|
* @return a {@code List} of internal counters maintained in the VM
|
||||||
* for the runtime system.
|
* for the runtime system.
|
||||||
*/
|
*/
|
||||||
public java.util.List<Counter> getInternalRuntimeCounters();
|
public java.util.List<Counter> getInternalRuntimeCounters();
|
||||||
|
@ -40,12 +40,11 @@ public interface HotspotThreadMBean {
|
|||||||
public int getInternalThreadCount();
|
public int getInternalThreadCount();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <tt>Map</tt> of the name of all VM internal threads
|
* Returns a {@code Map} of the name of all VM internal threads
|
||||||
* to the thread CPU time in nanoseconds. The returned value is
|
* to the thread CPU time in nanoseconds. The returned value is
|
||||||
* of nanoseconds precision but not necessarily nanoseconds accuracy.
|
* of nanoseconds precision but not necessarily nanoseconds accuracy.
|
||||||
* <p>
|
|
||||||
*
|
*
|
||||||
* @return a <tt>Map</tt> object of the name of all VM internal threads
|
* @return a {@code Map} object of the name of all VM internal threads
|
||||||
* to the thread CPU time in nanoseconds.
|
* to the thread CPU time in nanoseconds.
|
||||||
*
|
*
|
||||||
* @throws java.lang.UnsupportedOperationException if the Java virtual
|
* @throws java.lang.UnsupportedOperationException if the Java virtual
|
||||||
|
@ -45,13 +45,15 @@ import static javax.management.openmbean.SimpleType.*;
|
|||||||
* A mapped mxbean type maps a Java type to an open type.
|
* A mapped mxbean type maps a Java type to an open type.
|
||||||
* Only the following Java types are mappable
|
* Only the following Java types are mappable
|
||||||
* (currently required by the platform MXBeans):
|
* (currently required by the platform MXBeans):
|
||||||
* 1. Primitive types
|
* <ol>
|
||||||
* 2. Wrapper classes such java.lang.Integer, etc
|
* <li>Primitive types</li>
|
||||||
* 3. Classes with only getter methods and with a static "from" method
|
* <li>Wrapper classes such java.lang.Integer, etc</li>
|
||||||
* that takes a CompositeData argument.
|
* <li>Classes with only getter methods and with a static "from" method
|
||||||
* 4. E[] where E is a type of 1-4 (can be multi-dimensional array)
|
* that takes a CompositeData argument.</li>
|
||||||
* 5. List<E> where E is a type of 1-3
|
* <li>{@code E[]} where {@code E} is a type of 1-4 (can be multi-dimensional array)</li>
|
||||||
* 6. Map<K, V> where K and V are a type of 1-4
|
* <li>{@code List<E>} where E is a type of 1-3</li>
|
||||||
|
* <li>{@code Map<K, V>} where {@code K} and {@code V} are a type of 1-4</li>
|
||||||
|
* </ol>
|
||||||
*
|
*
|
||||||
* OpenDataException will be thrown if a Java type is not supported.
|
* OpenDataException will be thrown if a Java type is not supported.
|
||||||
*/
|
*/
|
||||||
|
@ -34,12 +34,12 @@ import java.util.HashMap;
|
|||||||
* An abstract sensor.
|
* An abstract sensor.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* A <tt>AbstractSensor</tt> object consists of two attributes:
|
* A {@code AbstractSensor} object consists of two attributes:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><tt>on</tt> is a boolean flag indicating if a sensor is
|
* <li>{@code on} is a boolean flag indicating if a sensor is
|
||||||
* triggered. This flag will be set or cleared by the
|
* triggered. This flag will be set or cleared by the
|
||||||
* component that owns the sensor.</li>
|
* component that owns the sensor.</li>
|
||||||
* <li><tt>count</tt> is the total number of times that a sensor
|
* <li>{@code count} is the total number of times that a sensor
|
||||||
* has been triggered.</li>
|
* has been triggered.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
@ -54,7 +54,7 @@ public abstract class Sensor {
|
|||||||
private boolean on;
|
private boolean on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <tt>Sensor</tt> object.
|
* Constructs a {@code Sensor} object.
|
||||||
*
|
*
|
||||||
* @param name The name of this sensor.
|
* @param name The name of this sensor.
|
||||||
*/
|
*/
|
||||||
@ -88,8 +88,8 @@ public abstract class Sensor {
|
|||||||
/**
|
/**
|
||||||
* Tests if this sensor is currently on.
|
* Tests if this sensor is currently on.
|
||||||
*
|
*
|
||||||
* @return <tt>true</tt> if the sensor is currently on;
|
* @return {@code true} if the sensor is currently on;
|
||||||
* <tt>false</tt> otherwise.
|
* {@code false} otherwise.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public boolean isOn() {
|
public boolean isOn() {
|
||||||
@ -112,7 +112,7 @@ public abstract class Sensor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers this sensor. This method sets this sensor on
|
* Triggers this sensor. This method sets this sensor on
|
||||||
* and increments the count with the input <tt>increment</tt>.
|
* and increments the count with the input {@code increment}.
|
||||||
*/
|
*/
|
||||||
public void trigger(int increment) {
|
public void trigger(int increment) {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
@ -126,7 +126,7 @@ public abstract class Sensor {
|
|||||||
/**
|
/**
|
||||||
* Triggers this sensor piggybacking a memory usage object.
|
* Triggers this sensor piggybacking a memory usage object.
|
||||||
* This method sets this sensor on
|
* This method sets this sensor on
|
||||||
* and increments the count with the input <tt>increment</tt>.
|
* and increments the count with the input {@code increment}.
|
||||||
*/
|
*/
|
||||||
public void trigger(int increment, MemoryUsage usage) {
|
public void trigger(int increment, MemoryUsage usage) {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
@ -150,7 +150,7 @@ public abstract class Sensor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears this sensor
|
* Clears this sensor
|
||||||
* and increments the count with the input <tt>increment</tt>.
|
* and increments the count with the input {@code increment}.
|
||||||
*/
|
*/
|
||||||
public void clear(int increment) {
|
public void clear(int increment) {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
|
@ -63,7 +63,7 @@ public interface Counter extends java.io.Serializable {
|
|||||||
public Object getValue();
|
public Object getValue();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns <tt>true</tt> if this counter is an internal counter.
|
* Returns {@code true} if this counter is an internal counter.
|
||||||
*/
|
*/
|
||||||
public boolean isInternal();
|
public boolean isInternal();
|
||||||
|
|
||||||
|
@ -27,14 +27,14 @@ package sun.management.counter.perf;
|
|||||||
|
|
||||||
public class InstrumentationException extends RuntimeException {
|
public class InstrumentationException extends RuntimeException {
|
||||||
/**
|
/**
|
||||||
* Constructs a <tt>InstrumentationException</tt> with no
|
* Constructs a {@code InstrumentationException} with no
|
||||||
* detail message.
|
* detail message.
|
||||||
*/
|
*/
|
||||||
public InstrumentationException() {
|
public InstrumentationException() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <tt>InstrumentationException</tt> with a specified
|
* Constructs a {@code InstrumentationException} with a specified
|
||||||
* detail message.
|
* detail message.
|
||||||
*
|
*
|
||||||
* @param message the detail message
|
* @param message the detail message
|
||||||
|
@ -37,19 +37,18 @@ import sun.management.VMManagement;
|
|||||||
import sun.misc.ManagedLocalsThread;
|
import sun.misc.ManagedLocalsThread;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JdpController is responsible to create and manage a broadcast loop
|
* JdpController is responsible to create and manage a broadcast loop.
|
||||||
*
|
*
|
||||||
* <p> Other part of code has no access to broadcast loop and have to use
|
* <p> Other part of code has no access to broadcast loop and have to use
|
||||||
* provided static methods
|
* provided static methods
|
||||||
* {@link #startDiscoveryService(InetAddress,int,String,String) startDiscoveryService}
|
* {@link #startDiscoveryService(InetAddress,int,String,String) startDiscoveryService}
|
||||||
* and {@link #stopDiscoveryService() stopDiscoveryService}</p>
|
* and {@link #stopDiscoveryService() stopDiscoveryService}
|
||||||
* <p>{@link #startDiscoveryService(InetAddress,int,String,String) startDiscoveryService} could be called multiple
|
* <p>{@link #startDiscoveryService(InetAddress,int,String,String) startDiscoveryService} could be called multiple
|
||||||
* times as it stops the running service if it is necessary. Call to {@link #stopDiscoveryService() stopDiscoveryService}
|
* times as it stops the running service if it is necessary.
|
||||||
* ignored if service isn't run</p>
|
* Call to {@link #stopDiscoveryService() stopDiscoveryService}
|
||||||
|
* ignored if service isn't run.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* <p> System properties below could be used to control broadcast loop behavior.
|
* <p> System properties below could be used to control broadcast loop behavior.
|
||||||
* Property below have to be set explicitly in command line. It's not possible to
|
* Property below have to be set explicitly in command line. It's not possible to
|
||||||
* set it in management.config file. Careless changes of these properties could
|
* set it in management.config file. Careless changes of these properties could
|
||||||
@ -59,9 +58,9 @@ import sun.misc.ManagedLocalsThread;
|
|||||||
* <li>com.sun.management.jdp.pause - set broadcast interval in seconds</li>
|
* <li>com.sun.management.jdp.pause - set broadcast interval in seconds</li>
|
||||||
* <li>com.sun.management.jdp.source_addr - an address of interface to use for broadcast</li>
|
* <li>com.sun.management.jdp.source_addr - an address of interface to use for broadcast</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
</p>
|
*
|
||||||
* <p>null parameters values are filtered out on {@link JdpPacketWriter} level and
|
* <p>null parameters values are filtered out on {@link JdpPacketWriter} level and
|
||||||
* corresponding keys are not placed to packet.</p>
|
* corresponding keys are not placed to packet.
|
||||||
*/
|
*/
|
||||||
public final class JdpController {
|
public final class JdpController {
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ package com.sun.jndi.ldap;
|
|||||||
import javax.naming.ldap.*;
|
import javax.naming.ldap.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class provides a basic implementation of the <tt>Control</tt>
|
* This class provides a basic implementation of the {@code Control}
|
||||||
* interface. It represents an LDAPv3 Control as defined in RFC-2251.
|
* interface. It represents an LDAPv3 Control as defined in RFC-2251.
|
||||||
*
|
*
|
||||||
* @author Vincent Ryan
|
* @author Vincent Ryan
|
||||||
|
@ -295,7 +295,7 @@ public final class BerDecoder extends Ber {
|
|||||||
* the relative parsed position is not returned.
|
* the relative parsed position is not returned.
|
||||||
* @return A non-null array containing the octet string.
|
* @return A non-null array containing the octet string.
|
||||||
* @throws DecodeException If the next byte in the BER buffer is not
|
* @throws DecodeException If the next byte in the BER buffer is not
|
||||||
* <tt>tag</tt>, or if length specified in the BER buffer exceeds the
|
* {@code tag}, or if length specified in the BER buffer exceeds the
|
||||||
* number of bytes left in the buffer.
|
* number of bytes left in the buffer.
|
||||||
*/
|
*/
|
||||||
public byte[] parseOctetString(int tag, int rlen[]) throws DecodeException {
|
public byte[] parseOctetString(int tag, int rlen[]) throws DecodeException {
|
||||||
|
@ -73,16 +73,16 @@ final class EventQueue implements Runnable {
|
|||||||
// package private;
|
// package private;
|
||||||
/**
|
/**
|
||||||
* Enqueue an event.
|
* Enqueue an event.
|
||||||
* @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
|
* @param event Either a {@code NamingExceptionEvent} or a subclass
|
||||||
* of <tt>NamingEvent</tt> or
|
* of {@code NamingEvent} or
|
||||||
* <tt>UnsolicitedNotificationEvent</tt>.
|
* {@code UnsolicitedNotificationEvent}.
|
||||||
* If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
|
* If it is a subclass of {@code NamingEvent}, all listeners must implement
|
||||||
* the corresponding subinterface of <tt>NamingListener</tt>.
|
* the corresponding subinterface of {@code NamingListener}.
|
||||||
* For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
|
* For example, for a {@code ObjectAddedEvent}, all listeners <em>must</em>
|
||||||
* implement the <tt>ObjectAddedListener</tt> interface.
|
* implement the {@code ObjectAddedListener} interface.
|
||||||
* <em>The current implementation does not check this before dispatching
|
* <em>The current implementation does not check this before dispatching
|
||||||
* the event.</em>
|
* the event.</em>
|
||||||
* If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
|
* If the event is a {@code NamingExceptionEvent}, then all listeners
|
||||||
* are notified.
|
* are notified.
|
||||||
* @param vector List of NamingListeners that will be notified of event.
|
* @param vector List of NamingListeners that will be notified of event.
|
||||||
*/
|
*/
|
||||||
|
@ -55,14 +55,14 @@ import javax.naming.ldap.UnsolicitedNotification;
|
|||||||
*<li>The filter (default is "(objectclass=*)").
|
*<li>The filter (default is "(objectclass=*)").
|
||||||
*<li>The search controls (default is null SearchControls).
|
*<li>The search controls (default is null SearchControls).
|
||||||
*<li>The events that the listener is interested in. This is determined by
|
*<li>The events that the listener is interested in. This is determined by
|
||||||
* finding out which <tt>NamingListener</tt> interface the listener supports.
|
* finding out which {@code NamingListener} interface the listener supports.
|
||||||
*</ul>
|
*</ul>
|
||||||
*<p>
|
*<p>
|
||||||
*A notifier (<tt>NamingEventNotifier</tt>) is a worker thread that is responsible
|
*A notifier ({@code NamingEventNotifier}) is a worker thread that is responsible
|
||||||
*for gathering information for generating events requested by its listeners.
|
*for gathering information for generating events requested by its listeners.
|
||||||
*Each notifier maintains its own list of listeners; these listeners have
|
*Each notifier maintains its own list of listeners; these listeners have
|
||||||
*all made the same registration request (at different times) and implements
|
*all made the same registration request (at different times) and implements
|
||||||
*the same <tt>NamingListener</tt> interfaces.
|
*the same {@code NamingListener} interfaces.
|
||||||
*<p>
|
*<p>
|
||||||
*For unsolicited listeners, this class maintains a vector, unsolicited.
|
*For unsolicited listeners, this class maintains a vector, unsolicited.
|
||||||
*When an unsolicited listener is registered, this class adds itself
|
*When an unsolicited listener is registered, this class adds itself
|
||||||
@ -93,7 +93,7 @@ import javax.naming.ldap.UnsolicitedNotification;
|
|||||||
*The notifiers are responsible for gather information for generating events
|
*The notifiers are responsible for gather information for generating events
|
||||||
*requested by their respective listeners. When a notifier gets sufficient
|
*requested by their respective listeners. When a notifier gets sufficient
|
||||||
*information to generate an event, it creates invokes the
|
*information to generate an event, it creates invokes the
|
||||||
*appropriate <tt>fireXXXEvent</tt> on this class with the information and list of
|
*appropriate {@code fireXXXEvent} on this class with the information and list of
|
||||||
*listeners. This causes an event and the list of listeners to be added
|
*listeners. This causes an event and the list of listeners to be added
|
||||||
*to the <em>event queue</em>.
|
*to the <em>event queue</em>.
|
||||||
*This class maintains an event queue and a dispatching thread that dequeues
|
*This class maintains an event queue and a dispatching thread that dequeues
|
||||||
@ -138,7 +138,7 @@ final class EventSupport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds <tt>l</tt> to list of listeners interested in <tt>nm</tt>.
|
* Adds {@code l} to list of listeners interested in {@code nm}.
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* Make the add/removeNamingListeners synchronized to:
|
* Make the add/removeNamingListeners synchronized to:
|
||||||
@ -173,7 +173,7 @@ final class EventSupport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds <tt>l</tt> to list of listeners interested in <tt>nm</tt>
|
* Adds {@code l} to list of listeners interested in {@code nm}
|
||||||
* and filter.
|
* and filter.
|
||||||
*/
|
*/
|
||||||
synchronized void addNamingListener(String nm, String filter,
|
synchronized void addNamingListener(String nm, String filter,
|
||||||
@ -201,7 +201,7 @@ final class EventSupport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes <tt>l</tt> from all notifiers in this context.
|
* Removes {@code l} from all notifiers in this context.
|
||||||
*/
|
*/
|
||||||
synchronized void removeNamingListener(NamingListener l) {
|
synchronized void removeNamingListener(NamingListener l) {
|
||||||
if (debug) System.err.println("EventSupport removing listener");
|
if (debug) System.err.println("EventSupport removing listener");
|
||||||
|
@ -336,7 +336,7 @@ public final class LdapName implements Name {
|
|||||||
* characters:
|
* characters:
|
||||||
*<ul>
|
*<ul>
|
||||||
*<li>leading and trailing whitespace
|
*<li>leading and trailing whitespace
|
||||||
*<li><pre>, = + < > # ; " \</pre>
|
*<li><pre>{@literal , = + < > # ; " \}</pre>
|
||||||
*</ul>
|
*</ul>
|
||||||
* If the value is a byte array, it is converted to hex
|
* If the value is a byte array, it is converted to hex
|
||||||
* notation (such as "#CEB1DF80").
|
* notation (such as "#CEB1DF80").
|
||||||
|
@ -35,7 +35,7 @@ import java.util.Vector;
|
|||||||
* This exception is raised when a referral to an alternative context
|
* This exception is raised when a referral to an alternative context
|
||||||
* is encountered.
|
* is encountered.
|
||||||
* <p>
|
* <p>
|
||||||
* An <tt>LdapReferralException</tt> object contains one or more referrals.
|
* An {@code LdapReferralException} object contains one or more referrals.
|
||||||
* Each referral is an alternative location for the same target entry.
|
* Each referral is an alternative location for the same target entry.
|
||||||
* For example, a referral may be an LDAP URL.
|
* For example, a referral may be an LDAP URL.
|
||||||
* The referrals are attempted in sequence until one is successful or
|
* The referrals are attempted in sequence until one is successful or
|
||||||
@ -46,20 +46,20 @@ import java.util.Vector;
|
|||||||
* of an authentication error, a referral may be retried with different
|
* of an authentication error, a referral may be retried with different
|
||||||
* environment properties.
|
* environment properties.
|
||||||
* <p>
|
* <p>
|
||||||
* An <tt>LdapReferralException</tt> object may also contain a reference
|
* An {@code LdapReferralException} object may also contain a reference
|
||||||
* to a chain of unprocessed <tt>LdapReferralException</tt> objects.
|
* to a chain of unprocessed {@code LdapReferralException} objects.
|
||||||
* Once the current set of referrals have been exhausted and unprocessed
|
* Once the current set of referrals have been exhausted and unprocessed
|
||||||
* <tt>LdapReferralException</tt> objects remain, then the
|
* {@code LdapReferralException} objects remain, then the
|
||||||
* <tt>LdapReferralException</tt> object referenced by the current
|
* {@code LdapReferralException} object referenced by the current
|
||||||
* object is thrown and the cycle continues.
|
* object is thrown and the cycle continues.
|
||||||
* <p>
|
* <p>
|
||||||
* If new <tt>LdapReferralException</tt> objects are generated while
|
* If new {@code LdapReferralException} objects are generated while
|
||||||
* following an existing referral then these new objects are appended
|
* following an existing referral then these new objects are appended
|
||||||
* to the end of the chain of unprocessed <tt>LdapReferralException</tt>
|
* to the end of the chain of unprocessed {@code LdapReferralException}
|
||||||
* objects.
|
* objects.
|
||||||
* <p>
|
* <p>
|
||||||
* If an exception was recorded while processing a chain of
|
* If an exception was recorded while processing a chain of
|
||||||
* <tt>LdapReferralException</tt> objects then it is throw once
|
* {@code LdapReferralException} objects then it is throw once
|
||||||
* processing has completed.
|
* processing has completed.
|
||||||
*
|
*
|
||||||
* @author Vincent Ryan
|
* @author Vincent Ryan
|
||||||
|
@ -65,7 +65,7 @@ final class UnsolicitedResponseImpl implements UnsolicitedNotification {
|
|||||||
* Retrieves the object identifier of the response.
|
* Retrieves the object identifier of the response.
|
||||||
*
|
*
|
||||||
* @return A possibly null object identifier string representing the LDAP
|
* @return A possibly null object identifier string representing the LDAP
|
||||||
* <tt>ExtendedResponse.responseName</tt> component.
|
* {@code ExtendedResponse.responseName} component.
|
||||||
*/
|
*/
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return oid;
|
return oid;
|
||||||
@ -79,7 +79,7 @@ final class UnsolicitedResponseImpl implements UnsolicitedNotification {
|
|||||||
* the response value. It does not include the response OID.
|
* the response value. It does not include the response OID.
|
||||||
*
|
*
|
||||||
* @return A possibly null byte array representing the ASN.1 BER encoded
|
* @return A possibly null byte array representing the ASN.1 BER encoded
|
||||||
* contents of the LDAP <tt>ExtendedResponse.response</tt>
|
* contents of the LDAP {@code ExtendedResponse.response}
|
||||||
* component.
|
* component.
|
||||||
*/
|
*/
|
||||||
public byte[] getEncodedValue() {
|
public byte[] getEncodedValue() {
|
||||||
|
@ -55,7 +55,7 @@ import com.sun.jndi.ldap.Connection;
|
|||||||
* <p>
|
* <p>
|
||||||
* The Start TLS extended request and response are used to establish
|
* The Start TLS extended request and response are used to establish
|
||||||
* a TLS connection over the existing LDAP connection associated with
|
* a TLS connection over the existing LDAP connection associated with
|
||||||
* the JNDI context on which <tt>extendedOperation()</tt> is invoked.
|
* the JNDI context on which {@code extendedOperation()} is invoked.
|
||||||
*
|
*
|
||||||
* @see StartTlsRequest
|
* @see StartTlsRequest
|
||||||
* @author Vincent Ryan
|
* @author Vincent Ryan
|
||||||
@ -124,7 +124,7 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
/**
|
/**
|
||||||
* Overrides the default list of cipher suites enabled for use on the
|
* Overrides the default list of cipher suites enabled for use on the
|
||||||
* TLS connection. The cipher suites must have already been listed by
|
* TLS connection. The cipher suites must have already been listed by
|
||||||
* <tt>SSLSocketFactory.getSupportedCipherSuites()</tt> as being supported.
|
* {@code SSLSocketFactory.getSupportedCipherSuites()} as being supported.
|
||||||
* Even if a suite has been enabled, it still might not be used because
|
* Even if a suite has been enabled, it still might not be used because
|
||||||
* the peer does not support it, or because the requisite certificates
|
* the peer does not support it, or because the requisite certificates
|
||||||
* (and private keys) are not available.
|
* (and private keys) are not available.
|
||||||
@ -140,12 +140,12 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overrides the default hostname verifier used by <tt>negotiate()</tt>
|
* Overrides the default hostname verifier used by {@code negotiate()}
|
||||||
* after the TLS handshake has completed. If
|
* after the TLS handshake has completed. If
|
||||||
* <tt>setHostnameVerifier()</tt> has not been called before
|
* {@code setHostnameVerifier()} has not been called before
|
||||||
* <tt>negotiate()</tt> is invoked, <tt>negotiate()</tt>
|
* {@code negotiate()} is invoked, {@code negotiate()}
|
||||||
* will perform a simple case ignore match. If called after
|
* will perform a simple case ignore match. If called after
|
||||||
* <tt>negotiate()</tt>, this method does not do anything.
|
* {@code negotiate()}, this method does not do anything.
|
||||||
*
|
*
|
||||||
* @param verifier The non-null hostname verifier callback.
|
* @param verifier The non-null hostname verifier callback.
|
||||||
* @see #negotiate
|
* @see #negotiate
|
||||||
@ -157,10 +157,10 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
/**
|
/**
|
||||||
* Negotiates a TLS session using the default SSL socket factory.
|
* Negotiates a TLS session using the default SSL socket factory.
|
||||||
* <p>
|
* <p>
|
||||||
* This method is equivalent to <tt>negotiate(null)</tt>.
|
* This method is equivalent to {@code negotiate(null)}.
|
||||||
*
|
*
|
||||||
* @return The negotiated SSL session
|
* @return The negotiated SSL session
|
||||||
* @throw IOException If an IO error was encountered while establishing
|
* @throws IOException If an IO error was encountered while establishing
|
||||||
* the TLS session.
|
* the TLS session.
|
||||||
* @see #setEnabledCipherSuites
|
* @see #setEnabledCipherSuites
|
||||||
* @see #setHostnameVerifier
|
* @see #setHostnameVerifier
|
||||||
@ -177,7 +177,7 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
* attaches it to the existing connection. Performs the TLS handshake
|
* attaches it to the existing connection. Performs the TLS handshake
|
||||||
* and returns the negotiated session information.
|
* and returns the negotiated session information.
|
||||||
* <p>
|
* <p>
|
||||||
* If cipher suites have been set via <tt>setEnabledCipherSuites</tt>
|
* If cipher suites have been set via {@code setEnabledCipherSuites}
|
||||||
* then they are enabled before the TLS handshake begins.
|
* then they are enabled before the TLS handshake begins.
|
||||||
* <p>
|
* <p>
|
||||||
* Hostname verification is performed after the TLS handshake completes.
|
* Hostname verification is performed after the TLS handshake completes.
|
||||||
@ -186,7 +186,7 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
* hostname is extracted from the subjectAltName in the server's
|
* hostname is extracted from the subjectAltName in the server's
|
||||||
* certificate (if present). Otherwise the value of the common name
|
* certificate (if present). Otherwise the value of the common name
|
||||||
* attribute of the subject name is used. If a callback has
|
* attribute of the subject name is used. If a callback has
|
||||||
* been set via <tt>setHostnameVerifier</tt> then that verifier is used if
|
* been set via {@code setHostnameVerifier} then that verifier is used if
|
||||||
* the default check fails.
|
* the default check fails.
|
||||||
* <p>
|
* <p>
|
||||||
* If an error occurs then the SSL socket is closed and an IOException
|
* If an error occurs then the SSL socket is closed and an IOException
|
||||||
@ -195,7 +195,7 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
* @param factory The possibly null SSL socket factory to use.
|
* @param factory The possibly null SSL socket factory to use.
|
||||||
* If null, the default SSL socket factory is used.
|
* If null, the default SSL socket factory is used.
|
||||||
* @return The negotiated SSL session
|
* @return The negotiated SSL session
|
||||||
* @throw IOException If an IO error was encountered while establishing
|
* @throws IOException If an IO error was encountered while establishing
|
||||||
* the TLS session.
|
* the TLS session.
|
||||||
* @see #setEnabledCipherSuites
|
* @see #setEnabledCipherSuites
|
||||||
* @see #setHostnameVerifier
|
* @see #setHostnameVerifier
|
||||||
@ -252,7 +252,7 @@ final public class StartTlsResponseImpl extends StartTlsResponse {
|
|||||||
* Closes the TLS connection gracefully and reverts back to the underlying
|
* Closes the TLS connection gracefully and reverts back to the underlying
|
||||||
* connection.
|
* connection.
|
||||||
*
|
*
|
||||||
* @throw IOException If an IO error was encountered while closing the
|
* @throws IOException If an IO error was encountered while closing the
|
||||||
* TLS connection
|
* TLS connection
|
||||||
*/
|
*/
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
@ -77,7 +77,7 @@ final public class LdapSasl {
|
|||||||
* layer, set inStream and outStream to be filter streams that use
|
* layer, set inStream and outStream to be filter streams that use
|
||||||
* the security layer. These will be used for subsequent communication
|
* the security layer. These will be used for subsequent communication
|
||||||
* with the server.
|
* with the server.
|
||||||
*<p>
|
*
|
||||||
* @param conn The non-null connection to use for sending an LDAP BIND
|
* @param conn The non-null connection to use for sending an LDAP BIND
|
||||||
* @param server Non-null string name of host to connect to
|
* @param server Non-null string name of host to connect to
|
||||||
* @param dn Non-null DN to bind as; also used as authentication ID
|
* @param dn Non-null DN to bind as; also used as authentication ID
|
||||||
|
@ -329,7 +329,7 @@ public class Continuation extends ResolveResult {
|
|||||||
*<p>
|
*<p>
|
||||||
* After this method is called, isContinuing() returns true.
|
* After this method is called, isContinuing() returns true.
|
||||||
*
|
*
|
||||||
* @param resObj The possibly null resolved object.
|
* @param obj The possibly null resolved object.
|
||||||
* @param relResName The non-null resolved name relative to currCtx.
|
* @param relResName The non-null resolved name relative to currCtx.
|
||||||
* @param currCtx The non-null context from which relResName is to be resolved.
|
* @param currCtx The non-null context from which relResName is to be resolved.
|
||||||
*/
|
*/
|
||||||
@ -349,7 +349,7 @@ public class Continuation extends ResolveResult {
|
|||||||
*<p>
|
*<p>
|
||||||
* After this method is called, isContinuing() returns true.
|
* After this method is called, isContinuing() returns true.
|
||||||
*
|
*
|
||||||
* @param resObj The possibly null resolved object.
|
* @param obj The possibly null resolved object.
|
||||||
* @param relResName The non-null resolved name relative to currCtx.
|
* @param relResName The non-null resolved name relative to currCtx.
|
||||||
* @param currCtx The non-null context from which relResName is to be resolved.
|
* @param currCtx The non-null context from which relResName is to be resolved.
|
||||||
* @param remain The non-null remaining name.
|
* @param remain The non-null remaining name.
|
||||||
@ -366,7 +366,7 @@ public class Continuation extends ResolveResult {
|
|||||||
/**
|
/**
|
||||||
* String overload.
|
* String overload.
|
||||||
*
|
*
|
||||||
* @param resObj The possibly null resolved object.
|
* @param obj The possibly null resolved object.
|
||||||
* @param relResName The non-null resolved name relative to currCtx.
|
* @param relResName The non-null resolved name relative to currCtx.
|
||||||
* @param currCtx The non-null context from which relResName is to be resolved.
|
* @param currCtx The non-null context from which relResName is to be resolved.
|
||||||
* @param remain The non-null remaining name.
|
* @param remain The non-null remaining name.
|
||||||
|
@ -452,14 +452,14 @@ public abstract class PartialCompositeContext implements Context, Resolver {
|
|||||||
* nonempty component, and if 'prefix' ends with an empty component or
|
* nonempty component, and if 'prefix' ends with an empty component or
|
||||||
* 'name' starts with one, then one empty component is dropped.
|
* 'name' starts with one, then one empty component is dropped.
|
||||||
* For example:
|
* For example:
|
||||||
* <pre>
|
* <pre>{@code
|
||||||
* elideEmpty=false elideEmpty=true
|
* elideEmpty=false elideEmpty=true
|
||||||
* {"a"} + {"b"} => {"a", "b"} {"a", "b"}
|
* {"a"} + {"b"} => {"a", "b"} {"a", "b"}
|
||||||
* {"a"} + {""} => {"a", ""} {"a", ""}
|
* {"a"} + {""} => {"a", ""} {"a", ""}
|
||||||
* {"a"} + {"", "b"} => {"a", "", "b"} {"a", "b"}
|
* {"a"} + {"", "b"} => {"a", "", "b"} {"a", "b"}
|
||||||
* {"a", ""} + {"b", ""} => {"a", "", "b", ""} {"a", "b", ""}
|
* {"a", ""} + {"b", ""} => {"a", "", "b", ""} {"a", "b", ""}
|
||||||
* {"a", ""} + {"", "b"} => {"a", "", "", "b"} {"a", "", "b"}
|
* {"a", ""} + {"", "b"} => {"a", "", "", "b"} {"a", "", "b"}
|
||||||
* </pre>
|
* }</pre>
|
||||||
*/
|
*/
|
||||||
public Name composeName(Name name, Name prefix) throws NamingException {
|
public Name composeName(Name name, Name prefix) throws NamingException {
|
||||||
Name res = (Name)prefix.clone();
|
Name res = (Name)prefix.clone();
|
||||||
|
@ -32,8 +32,8 @@ import java.util.*;
|
|||||||
/**
|
/**
|
||||||
* A sample service provider that implements a hierarchical directory in memory.
|
* A sample service provider that implements a hierarchical directory in memory.
|
||||||
* Every operation begins by doing a lookup on the name passed to it and then
|
* Every operation begins by doing a lookup on the name passed to it and then
|
||||||
* calls a corresponding "do<OperationName>" on the result of the lookup. The
|
* calls a corresponding "{@code do<OperationName>}" on the result of the lookup. The
|
||||||
* "do<OperationName>" does the work without any further resolution (it assumes
|
* "{@code do<OperationName>}" does the work without any further resolution (it assumes
|
||||||
* that it is the target context).
|
* that it is the target context).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -548,8 +548,8 @@ public class SearchFilter implements AttrFilter {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the first occurrence of <tt>ch</tt> in <tt>val</tt> starting
|
* Finds the first occurrence of {@code ch} in {@code val} starting
|
||||||
* from position <tt>start</tt>. It doesn't count if <tt>ch</tt>
|
* from position {@code start}. It doesn't count if {@code ch}
|
||||||
* has been escaped by a backslash (\)
|
* has been escaped by a backslash (\)
|
||||||
*/
|
*/
|
||||||
public static int findUnescaped(char ch, String val, int start) {
|
public static int findUnescaped(char ch, String val, int start) {
|
||||||
@ -568,8 +568,8 @@ public class SearchFilter implements AttrFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats the expression <tt>expr</tt> using arguments from the array
|
* Formats the expression {@code expr} using arguments from the array
|
||||||
* <tt>args</tt>.
|
* {@code args}.
|
||||||
*
|
*
|
||||||
* <code>{i}</code> specifies the <code>i</code>'th element from
|
* <code>{i}</code> specifies the <code>i</code>'th element from
|
||||||
* the array <code>args</code> is to be substituted for the
|
* the array <code>args</code> is to be substituted for the
|
||||||
|
@ -107,12 +107,14 @@ abstract public class GenericURLContext implements Context {
|
|||||||
* the subclass must override getURLSuffix() to get the correct behavior.
|
* the subclass must override getURLSuffix() to get the correct behavior.
|
||||||
* Remember, the behavior must match getRootURLContext().
|
* Remember, the behavior must match getRootURLContext().
|
||||||
*
|
*
|
||||||
|
* <pre>{@code
|
||||||
* URL Suffix
|
* URL Suffix
|
||||||
* foo://host:port <empty string>
|
* foo://host:port <empty string>
|
||||||
* foo://host:port/rest/of/name rest/of/name
|
* foo://host:port/rest/of/name rest/of/name
|
||||||
* foo:///rest/of/name rest/of/name
|
* foo:///rest/of/name rest/of/name
|
||||||
* foo:/rest/of/name rest/of/name
|
* foo:/rest/of/name rest/of/name
|
||||||
* foo:rest/of/name rest/of/name
|
* foo:rest/of/name rest/of/name
|
||||||
|
* }</pre>
|
||||||
*/
|
*/
|
||||||
protected Name getURLSuffix(String prefix, String url) throws NamingException {
|
protected Name getURLSuffix(String prefix, String url) throws NamingException {
|
||||||
String suffix = url.substring(prefix.length());
|
String suffix = url.substring(prefix.length());
|
||||||
|
@ -47,7 +47,7 @@ import java.net.MalformedURLException;
|
|||||||
* still run on pre-1.4 platforms not containing that class.
|
* still run on pre-1.4 platforms not containing that class.
|
||||||
*
|
*
|
||||||
* <p> The format of an absolute URI (see the RFCs mentioned above) is:
|
* <p> The format of an absolute URI (see the RFCs mentioned above) is:
|
||||||
* <p><blockquote><pre>
|
* <blockquote><pre>{@code
|
||||||
* absoluteURI = scheme ":" ( hier_part | opaque_part )
|
* absoluteURI = scheme ":" ( hier_part | opaque_part )
|
||||||
*
|
*
|
||||||
* scheme = alpha *( alpha | digit | "+" | "-" | "." )
|
* scheme = alpha *( alpha | digit | "+" | "-" | "." )
|
||||||
@ -94,12 +94,12 @@ import java.net.MalformedURLException;
|
|||||||
* mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
|
* mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
|
||||||
* escaped = "%" hex hex
|
* escaped = "%" hex hex
|
||||||
* unwise = "{" | "}" | "|" | "\" | "^" | "`"
|
* unwise = "{" | "}" | "|" | "\" | "^" | "`"
|
||||||
* </pre></blockquote>
|
* }</pre></blockquote>
|
||||||
*
|
*
|
||||||
* <p> Currently URIs containing <tt>userinfo</tt> or <tt>reg_name</tt>
|
* <p> Currently URIs containing {@code userinfo} or {@code reg_name}
|
||||||
* are not supported.
|
* are not supported.
|
||||||
* The <tt>opaque_part</tt> of a non-hierarchical URI is treated as if
|
* The {@code opaque_part} of a non-hierarchical URI is treated as if
|
||||||
* if were a <tt>path</tt> without a leading slash.
|
* if were a {@code path} without a leading slash.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ import java.util.*;
|
|||||||
/**
|
/**
|
||||||
* The ExecOptionPermission class represents permission for rmid to use
|
* The ExecOptionPermission class represents permission for rmid to use
|
||||||
* a specific command-line option when launching an activation group.
|
* a specific command-line option when launching an activation group.
|
||||||
* <P>
|
|
||||||
*
|
*
|
||||||
* @author Ann Wollrath
|
* @author Ann Wollrath
|
||||||
*
|
*
|
||||||
@ -68,9 +67,9 @@ public final class ExecOptionPermission extends Permission
|
|||||||
* Checks if the specified permission is "implied" by
|
* Checks if the specified permission is "implied" by
|
||||||
* this object.
|
* this object.
|
||||||
* <P>
|
* <P>
|
||||||
* More specifically, this method returns true if:<p>
|
* More specifically, this method returns true if:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> <i>p</i>'s class is the same as this object's class, and<p>
|
* <li> <i>p</i>'s class is the same as this object's class, and
|
||||||
* <li> <i>p</i>'s name equals or (in the case of wildcards)
|
* <li> <i>p</i>'s name equals or (in the case of wildcards)
|
||||||
* is implied by this object's
|
* is implied by this object's
|
||||||
* name. For example, "a.b.*" implies "a.b.c", and
|
* name. For example, "a.b.*" implies "a.b.c", and
|
||||||
@ -111,7 +110,7 @@ public final class ExecOptionPermission extends Permission
|
|||||||
* Checks two ExecOptionPermission objects for equality.
|
* Checks two ExecOptionPermission objects for equality.
|
||||||
* Checks that <i>obj</i>'s class is the same as this object's class
|
* Checks that <i>obj</i>'s class is the same as this object's class
|
||||||
* and has the same name as this object.
|
* and has the same name as this object.
|
||||||
* <P>
|
*
|
||||||
* @param obj the object we are testing for equality with this object.
|
* @param obj the object we are testing for equality with this object.
|
||||||
* @return true if <i>obj</i> is an ExecOptionPermission, and has the same
|
* @return true if <i>obj</i> is an ExecOptionPermission, and has the same
|
||||||
* name as this ExecOptionPermission object, false otherwise.
|
* name as this ExecOptionPermission object, false otherwise.
|
||||||
@ -154,7 +153,7 @@ public final class ExecOptionPermission extends Permission
|
|||||||
* Returns a new PermissionCollection object for storing
|
* Returns a new PermissionCollection object for storing
|
||||||
* ExecOptionPermission objects.
|
* ExecOptionPermission objects.
|
||||||
* <p>
|
* <p>
|
||||||
* A ExecOptionPermissionCollection stores a collection of
|
* An ExecOptionPermissionCollection stores a collection of
|
||||||
* ExecOptionPermission permissions.
|
* ExecOptionPermission permissions.
|
||||||
*
|
*
|
||||||
* <p>ExecOptionPermission objects must be stored in a manner that allows
|
* <p>ExecOptionPermission objects must be stored in a manner that allows
|
||||||
|
@ -40,14 +40,13 @@ import java.util.*;
|
|||||||
* all the files and directories contained in that directory. A pathname
|
* all the files and directories contained in that directory. A pathname
|
||||||
* that ends with "/-" indicates (recursively) all files
|
* that ends with "/-" indicates (recursively) all files
|
||||||
* and subdirectories contained in that directory. A pathname consisting of
|
* and subdirectories contained in that directory. A pathname consisting of
|
||||||
* the special token "<<ALL FILES>>" matches <bold>any</bold> file.
|
* the special token "{@code <<ALL FILES>>}" matches <b>any</b> file.
|
||||||
* <P>
|
* <P>
|
||||||
* Note: A pathname consisting of a single "*" indicates all the files
|
* Note: A pathname consisting of a single "*" indicates all the files
|
||||||
* in the current directory, while a pathname consisting of a single "-"
|
* in the current directory, while a pathname consisting of a single "-"
|
||||||
* indicates all the files in the current directory and
|
* indicates all the files in the current directory and
|
||||||
* (recursively) all files and subdirectories contained in the current
|
* (recursively) all files and subdirectories contained in the current
|
||||||
* directory.
|
* directory.
|
||||||
* <P>
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author Ann Wollrath
|
* @author Ann Wollrath
|
||||||
@ -72,7 +71,7 @@ public final class ExecPermission extends Permission
|
|||||||
* a directory and all the files contained in that directory. A pathname
|
* a directory and all the files contained in that directory. A pathname
|
||||||
* that ends with "/-" indicates a directory and (recursively) all files
|
* that ends with "/-" indicates a directory and (recursively) all files
|
||||||
* and subdirectories contained in that directory. The special pathname
|
* and subdirectories contained in that directory. The special pathname
|
||||||
* "<<ALL FILES>>" matches all files.
|
* "{@code <<ALL FILES>>}" matches all files.
|
||||||
*
|
*
|
||||||
* <p>A pathname consisting of a single "*" indicates all the files
|
* <p>A pathname consisting of a single "*" indicates all the files
|
||||||
* in the current directory, while a pathname consisting of a single "-"
|
* in the current directory, while a pathname consisting of a single "-"
|
||||||
@ -96,7 +95,7 @@ public final class ExecPermission extends Permission
|
|||||||
* a directory and all the files contained in that directory. A pathname
|
* a directory and all the files contained in that directory. A pathname
|
||||||
* that ends with "/-" indicates a directory and (recursively) all files
|
* that ends with "/-" indicates a directory and (recursively) all files
|
||||||
* and subdirectories contained in that directory. The special pathname
|
* and subdirectories contained in that directory. The special pathname
|
||||||
* "<<ALL FILES>>" matches all files.
|
* "{@code <<ALL FILES>>}" matches all files.
|
||||||
*
|
*
|
||||||
* <p>A pathname consisting of a single "*" indicates all the files
|
* <p>A pathname consisting of a single "*" indicates all the files
|
||||||
* in the current directory, while a pathname consisting of a single "-"
|
* in the current directory, while a pathname consisting of a single "-"
|
||||||
@ -114,9 +113,9 @@ public final class ExecPermission extends Permission
|
|||||||
/**
|
/**
|
||||||
* Checks if this ExecPermission object "implies" the specified permission.
|
* Checks if this ExecPermission object "implies" the specified permission.
|
||||||
* <P>
|
* <P>
|
||||||
* More specifically, this method returns true if:<p>
|
* More specifically, this method returns true if:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> <i>p</i> is an instanceof ExecPermission,<p> and
|
* <li> <i>p</i> is an instanceof ExecPermission, and
|
||||||
* <li> <i>p</i>'s pathname is implied by this object's
|
* <li> <i>p</i>'s pathname is implied by this object's
|
||||||
* pathname. For example, "/tmp/*" implies "/tmp/foo", since
|
* pathname. For example, "/tmp/*" implies "/tmp/foo", since
|
||||||
* "/tmp/*" encompasses the "/tmp" directory and all files in that
|
* "/tmp/*" encompasses the "/tmp" directory and all files in that
|
||||||
@ -140,7 +139,7 @@ public final class ExecPermission extends Permission
|
|||||||
* Checks two ExecPermission objects for equality.
|
* Checks two ExecPermission objects for equality.
|
||||||
* Checks that <i>obj</i>'s class is the same as this object's class
|
* Checks that <i>obj</i>'s class is the same as this object's class
|
||||||
* and has the same name as this object.
|
* and has the same name as this object.
|
||||||
* <P>
|
*
|
||||||
* @param obj the object we are testing for equality with this object.
|
* @param obj the object we are testing for equality with this object.
|
||||||
* @return true if <i>obj</i> is an ExecPermission, and has the same
|
* @return true if <i>obj</i> is an ExecPermission, and has the same
|
||||||
* pathname as this ExecPermission object, false otherwise.
|
* pathname as this ExecPermission object, false otherwise.
|
||||||
|
@ -35,7 +35,7 @@ class LogInputStream extends InputStream {
|
|||||||
/**
|
/**
|
||||||
* Creates a log input file with the specified system dependent
|
* Creates a log input file with the specified system dependent
|
||||||
* file descriptor.
|
* file descriptor.
|
||||||
* @param fd the system dependent file descriptor
|
* @param in the system dependent file descriptor
|
||||||
* @param length the total number of bytes allowed to be read
|
* @param length the total number of bytes allowed to be read
|
||||||
* @exception IOException If an I/O error has occurred.
|
* @exception IOException If an I/O error has occurred.
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +35,7 @@ class LogOutputStream extends OutputStream {
|
|||||||
/**
|
/**
|
||||||
* Creates an output file with the specified system dependent
|
* Creates an output file with the specified system dependent
|
||||||
* file descriptor.
|
* file descriptor.
|
||||||
* @param fd the system dependent file descriptor
|
* @param raf the system dependent file descriptor.
|
||||||
* @exception IOException If an I/O error has occurred.
|
* @exception IOException If an I/O error has occurred.
|
||||||
*/
|
*/
|
||||||
public LogOutputStream(RandomAccessFile raf) throws IOException {
|
public LogOutputStream(RandomAccessFile raf) throws IOException {
|
||||||
|
@ -124,7 +124,7 @@ public class ReliableLog {
|
|||||||
* stable storage directory.
|
* stable storage directory.
|
||||||
*
|
*
|
||||||
* @param dirPath path to the stable storage directory
|
* @param dirPath path to the stable storage directory
|
||||||
* @param logCl the closure object containing callbacks for logging and
|
* @param handler the closure object containing callbacks for logging and
|
||||||
* recovery
|
* recovery
|
||||||
* @param pad ignored
|
* @param pad ignored
|
||||||
* @exception IOException If a directory creation error has
|
* @exception IOException If a directory creation error has
|
||||||
@ -170,7 +170,7 @@ public class ReliableLog {
|
|||||||
* stable storage directory.
|
* stable storage directory.
|
||||||
*
|
*
|
||||||
* @param dirPath path to the stable storage directory
|
* @param dirPath path to the stable storage directory
|
||||||
* @param logCl the closure object containing callbacks for logging and
|
* @param handler the closure object containing callbacks for logging and
|
||||||
* recovery
|
* recovery
|
||||||
* @exception IOException If a directory creation error has
|
* @exception IOException If a directory creation error has
|
||||||
* occurred or if initialSnapshot callback raises an exception
|
* occurred or if initialSnapshot callback raises an exception
|
||||||
|
@ -155,7 +155,7 @@ public class RegistryImpl extends java.rmi.server.RemoteServer
|
|||||||
/**
|
/**
|
||||||
* Returns the remote object for specified name in the registry.
|
* Returns the remote object for specified name in the registry.
|
||||||
* @exception RemoteException If remote operation failed.
|
* @exception RemoteException If remote operation failed.
|
||||||
* @exception NotBound If name is not currently bound.
|
* @exception NotBoundException If name is not currently bound.
|
||||||
*/
|
*/
|
||||||
public Remote lookup(String name)
|
public Remote lookup(String name)
|
||||||
throws RemoteException, NotBoundException
|
throws RemoteException, NotBoundException
|
||||||
@ -188,7 +188,7 @@ public class RegistryImpl extends java.rmi.server.RemoteServer
|
|||||||
/**
|
/**
|
||||||
* Unbind the name.
|
* Unbind the name.
|
||||||
* @exception RemoteException If remote operation failed.
|
* @exception RemoteException If remote operation failed.
|
||||||
* @exception NotBound If name is not currently bound.
|
* @exception NotBoundException If name is not currently bound.
|
||||||
*/
|
*/
|
||||||
public void unbind(String name)
|
public void unbind(String name)
|
||||||
throws RemoteException, NotBoundException, AccessException
|
throws RemoteException, NotBoundException, AccessException
|
||||||
|
@ -96,7 +96,7 @@ public abstract class Log {
|
|||||||
* care to interpret a range of values between BRIEF, VERBOSE and
|
* care to interpret a range of values between BRIEF, VERBOSE and
|
||||||
* SILENT.
|
* SILENT.
|
||||||
*
|
*
|
||||||
* An override < 0 is interpreted to mean that the logging
|
* An override {@literal <} 0 is interpreted to mean that the logging
|
||||||
* configuration should not be overridden. The level passed to the
|
* configuration should not be overridden. The level passed to the
|
||||||
* factories createLog method will be null in this case.
|
* factories createLog method will be null in this case.
|
||||||
*
|
*
|
||||||
|
@ -345,7 +345,7 @@ public class ActivationGroupImpl extends ActivationGroup {
|
|||||||
* request.
|
* request.
|
||||||
*
|
*
|
||||||
* @param id the object's activation identifier
|
* @param id the object's activation identifier
|
||||||
* @returns true if the operation succeeds (the operation will
|
* @return true if the operation succeeds (the operation will
|
||||||
* succeed if the object in currently known to be active and is
|
* succeed if the object in currently known to be active and is
|
||||||
* either already unexported or is currently exported and has no
|
* either already unexported or is currently exported and has no
|
||||||
* pending/executing calls); false is returned if the object has
|
* pending/executing calls); false is returned if the object has
|
||||||
@ -430,7 +430,7 @@ public class ActivationGroupImpl extends ActivationGroup {
|
|||||||
* hasn't already done so.
|
* hasn't already done so.
|
||||||
*
|
*
|
||||||
* @param id the object's identifier
|
* @param id the object's identifier
|
||||||
* @param obj the remote object implementation
|
* @param impl the remote object implementation
|
||||||
* @exception UnknownObjectException if object is not registered
|
* @exception UnknownObjectException if object is not registered
|
||||||
* @exception RemoteException if call informing monitor fails
|
* @exception RemoteException if call informing monitor fails
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,7 @@ import java.rmi.activation.ActivationGroup;
|
|||||||
* The activator spawns (as a child process) an activation group as needed
|
* The activator spawns (as a child process) an activation group as needed
|
||||||
* and directs activation requests to the appropriate activation
|
* and directs activation requests to the appropriate activation
|
||||||
* group. After spawning the VM, the activator passes some
|
* group. After spawning the VM, the activator passes some
|
||||||
* information to the bootstrap code via its stdin: <p>
|
* information to the bootstrap code via its stdin:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> the activation group's id,
|
* <li> the activation group's id,
|
||||||
* <li> the activation group's descriptor (an instance of the class
|
* <li> the activation group's descriptor (an instance of the class
|
||||||
|
@ -42,7 +42,7 @@ public interface Channel {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Free the connection generated by this channel.
|
* Free the connection generated by this channel.
|
||||||
* @param c The connection
|
* @param conn The connection.
|
||||||
* @param reuse If true, the connection is in a state in which it
|
* @param reuse If true, the connection is in a state in which it
|
||||||
* can be reused for another method call.
|
* can be reused for another method call.
|
||||||
*/
|
*/
|
||||||
|
@ -56,7 +56,7 @@ public class LiveRef implements Cloneable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a "well-known" live reference to a remote object
|
* Construct a "well-known" live reference to a remote object
|
||||||
* @param isLocalServer If true, indicates this ref specifies a local
|
* @param isLocal If true, indicates this ref specifies a local
|
||||||
* server in this address space; if false, the ref is for a remote
|
* server in this address space; if false, the ref is for a remote
|
||||||
* object (hence a surrogate or proxy) in another address space.
|
* object (hence a surrogate or proxy) in another address space.
|
||||||
*/
|
*/
|
||||||
|
@ -81,7 +81,7 @@ interface CGICommandHandler {
|
|||||||
/**
|
/**
|
||||||
* The CGIHandler class contains methods for executing as a CGI program.
|
* The CGIHandler class contains methods for executing as a CGI program.
|
||||||
* The main function interprets the query string as a command of the form
|
* The main function interprets the query string as a command of the form
|
||||||
* "<command>=<parameters>".
|
* "{@code <command>=<parameters>}".
|
||||||
*
|
*
|
||||||
* This class depends on the CGI 1.0 environment variables being set as
|
* This class depends on the CGI 1.0 environment variables being set as
|
||||||
* properties of the same name in this Java VM.
|
* properties of the same name in this Java VM.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user