@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/java/io/File/index.d.ts +0 -120
- package/types/java/io/File/index.js +0 -2
- package/types/java/lang/Boolean/index.d.ts +0 -123
- package/types/java/lang/Boolean/index.js +1 -8
- package/types/java/lang/Class/index.d.ts +2 -93
- package/types/java/lang/Class/index.js +0 -1
- package/types/java/lang/ClassLoader/index.d.ts +0 -91
- package/types/java/lang/ClassLoader/index.js +0 -5
- package/types/java/lang/Double/index.d.ts +0 -541
- package/types/java/lang/Double/index.js +2 -13
- package/types/java/lang/Enum/index.d.ts +0 -23
- package/types/java/lang/Enum/index.js +0 -1
- package/types/java/lang/Float/index.d.ts +0 -494
- package/types/java/lang/Float/index.js +2 -13
- package/types/java/lang/Integer/index.d.ts +0 -780
- package/types/java/lang/Integer/index.js +2 -29
- package/types/java/lang/Long/index.d.ts +0 -788
- package/types/java/lang/Long/index.js +2 -28
- package/types/java/lang/Package/index.d.ts +0 -28
- package/types/java/lang/Package/index.js +0 -2
- package/types/java/lang/String/index.d.ts +0 -193
- package/types/java/lang/String/index.js +0 -4
- package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
- package/types/java/math/BigDecimal/index.d.ts +1 -40
- package/types/java/math/BigDecimal/index.js +0 -1
- package/types/java/math/BigInteger/index.d.ts +0 -25
- package/types/java/math/BigInteger/index.js +0 -2
- package/types/java/net/InetAddress/index.d.ts +0 -134
- package/types/java/net/InetAddress/index.js +1 -6
- package/types/java/net/NetworkInterface/index.d.ts +0 -50
- package/types/java/net/NetworkInterface/index.js +0 -4
- package/types/java/net/URI/index.d.ts +0 -22
- package/types/java/net/URI/index.js +0 -1
- package/types/java/net/URL/index.d.ts +0 -23
- package/types/java/net/URL/index.js +1 -2
- package/types/java/net/URLConnection/index.d.ts +0 -125
- package/types/java/net/URLConnection/index.js +1 -10
- package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
- package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
- package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
- package/types/java/nio/channels/FileChannel/index.js +0 -1
- package/types/java/nio/charset/Charset/index.d.ts +1 -58
- package/types/java/nio/charset/Charset/index.js +0 -4
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
- package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
- package/types/java/text/DateFormat/index.d.ts +0 -130
- package/types/java/text/DateFormat/index.js +0 -5
- package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
- package/types/java/text/DateFormatSymbols/index.js +0 -2
- package/types/java/text/NumberFormat/index.d.ts +0 -123
- package/types/java/text/NumberFormat/index.js +0 -6
- package/types/java/time/Clock/index.d.ts +1 -162
- package/types/java/time/Clock/index.js +0 -8
- package/types/java/time/Duration/index.d.ts +3 -193
- package/types/java/time/Duration/index.js +0 -10
- package/types/java/time/Instant/index.d.ts +0 -101
- package/types/java/time/Instant/index.js +0 -5
- package/types/java/time/LocalDate/index.d.ts +4 -134
- package/types/java/time/LocalDate/index.js +0 -6
- package/types/java/time/LocalDateTime/index.d.ts +7 -285
- package/types/java/time/LocalDateTime/index.js +0 -6
- package/types/java/time/LocalTime/index.d.ts +2 -146
- package/types/java/time/LocalTime/index.js +0 -6
- package/types/java/time/OffsetDateTime/index.d.ts +7 -177
- package/types/java/time/OffsetDateTime/index.js +0 -6
- package/types/java/time/OffsetTime/index.d.ts +3 -141
- package/types/java/time/OffsetTime/index.js +0 -5
- package/types/java/time/Period/index.d.ts +1 -135
- package/types/java/time/Period/index.js +0 -8
- package/types/java/time/ZoneId/index.d.ts +1 -121
- package/types/java/time/ZoneId/index.js +0 -5
- package/types/java/time/ZoneOffset/index.d.ts +1 -104
- package/types/java/time/ZoneOffset/index.js +0 -6
- package/types/java/time/ZonedDateTime/index.d.ts +6 -284
- package/types/java/time/ZonedDateTime/index.js +0 -7
- package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
- package/types/java/time/format/DateTimeFormatter/index.js +0 -6
- package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
- package/types/java/time/format/DecimalStyle/index.js +0 -3
- package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
- package/types/java/time/temporal/ValueRange/index.js +0 -1
- package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
- package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
- package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
- package/types/java/time/zone/ZoneRules/index.js +0 -1
- package/types/java/util/Calendar/index.d.ts +2 -67
- package/types/java/util/Calendar/index.js +0 -3
- package/types/java/util/Comparator/index.d.ts +16 -16
- package/types/java/util/Currency/index.d.ts +0 -38
- package/types/java/util/Currency/index.js +0 -2
- package/types/java/util/Date/index.d.ts +0 -160
- package/types/java/util/Date/index.js +0 -3
- package/types/java/util/Locale/index.d.ts +0 -344
- package/types/java/util/Locale/index.js +1 -11
- package/types/java/util/Optional/index.d.ts +0 -27
- package/types/java/util/Optional/index.js +0 -3
- package/types/java/util/OptionalDouble/index.d.ts +0 -15
- package/types/java/util/OptionalDouble/index.js +0 -2
- package/types/java/util/OptionalInt/index.d.ts +0 -15
- package/types/java/util/OptionalInt/index.js +0 -2
- package/types/java/util/OptionalLong/index.d.ts +0 -15
- package/types/java/util/OptionalLong/index.js +0 -2
- package/types/java/util/TimeZone/index.d.ts +0 -65
- package/types/java/util/TimeZone/index.js +0 -4
- package/types/javax/jcr/PropertyType/index.d.ts +2 -18
- package/types/javax/jcr/PropertyType/index.js +1 -4
- package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
- package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
- package/types/java/net/ContentHandler/index.d.ts +0 -70
- package/types/java/net/ContentHandler/index.js +0 -10
- package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
- package/types/java/net/ContentHandlerFactory/index.js +0 -10
- package/types/java/net/FileNameMap/index.d.ts +0 -16
- package/types/java/net/FileNameMap/index.js +0 -10
- package/types/java/net/URLStreamHandler/index.d.ts +0 -199
- package/types/java/net/URLStreamHandler/index.js +0 -19
- package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
- package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
- package/types/java/time/format/FormatStyle/index.d.ts +0 -14
- package/types/java/time/format/FormatStyle/index.js +0 -13
- package/types/java/util/Locale.Category/index.d.ts +0 -12
- package/types/java/util/Locale.Category/index.js +0 -11
- package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
- package/types/java/util/Locale.FilteringMode/index.js +0 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { String } from "../../../java/lang/String";
|
|
2
1
|
import type { Object } from "../../../java/lang/Object";
|
|
3
2
|
|
|
3
|
+
import type { String } from "../../../java/lang/String";
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* The property types supported by the JCR standard.
|
|
6
7
|
* <p>
|
|
@@ -12,23 +13,6 @@ import type { Object } from "../../../java/lang/Object";
|
|
|
12
13
|
|
|
13
14
|
*/
|
|
14
15
|
export type PropertyType = Object & {
|
|
15
|
-
/**
|
|
16
|
-
* Returns the name of the specified <code>type</code>, as used in
|
|
17
|
-
* serialization.
|
|
18
|
-
* @param type the property type
|
|
19
|
-
* @return the name of the specified <code>type</code>
|
|
20
|
-
* @throws IllegalArgumentException if <code>type</code> is not a valid
 property type.
|
|
21
|
-
*/
|
|
22
|
-
nameFromValue(type: number): string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns the numeric constant value of the type with the specified name.
|
|
26
|
-
* @param name the name of the property type.
|
|
27
|
-
* @return the numeric constant value.
|
|
28
|
-
* @throws IllegalArgumentException if <code>name</code> is not a valid
 property type name.
|
|
29
|
-
*/
|
|
30
|
-
valueFromName(name: String | string): number;
|
|
31
|
-
|
|
32
16
|
/**
|
|
33
17
|
* The <code>STRING</code> property type is used to store strings. It has
|
|
34
18
|
* the same characteristics as the Java <code>String</code> class.
|
|
@@ -4,8 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
nameFromValue: function nameFromValue() {},
|
|
9
|
-
valueFromName: function valueFromName() {}
|
|
10
|
-
};
|
|
7
|
+
var _default = {};
|
|
11
8
|
exports["default"] = _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { String } from "../../../../java/lang/String";
|
|
2
1
|
import type { Object } from "../../../../java/lang/Object";
|
|
3
2
|
|
|
3
|
+
import type { String } from "../../../../java/lang/String";
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* The possible actions specified by the <code>onParentVersion</code> attribute
|
|
6
7
|
* in a property definition within a node type definition.
|
|
@@ -19,24 +20,6 @@ import type { Object } from "../../../../java/lang/Object";
|
|
|
19
20
|
|
|
20
21
|
*/
|
|
21
22
|
export type OnParentVersionAction = Object & {
|
|
22
|
-
/**
|
|
23
|
-
* Returns the name of the specified <code>action</code>, as used in
|
|
24
|
-
* serialization.
|
|
25
|
-
* @param action the on-version action
|
|
26
|
-
* @return the name of the specified <code>action</code>
|
|
27
|
-
* @throws IllegalArgumentException if <code>action</code> is not a valid
 on-version action.
|
|
28
|
-
*/
|
|
29
|
-
nameFromValue(action: number): string;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Returns the numeric constant value of the on-version action with the
|
|
33
|
-
* specified name.
|
|
34
|
-
* @param name the name of the on-version action
|
|
35
|
-
* @return the numeric constant value
|
|
36
|
-
* @throws IllegalArgumentException if <code>name</code> is not a valid
 on-version action name.
|
|
37
|
-
*/
|
|
38
|
-
valueFromName(name: String | string): number;
|
|
39
|
-
|
|
40
23
|
/**
|
|
41
24
|
* The action constants.
|
|
42
25
|
|
|
@@ -4,8 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
nameFromValue: function nameFromValue() {},
|
|
9
|
-
valueFromName: function valueFromName() {}
|
|
10
|
-
};
|
|
7
|
+
var _default = {};
|
|
11
8
|
exports["default"] = _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { URLConnection } from "../URLConnection";
|
|
2
|
-
import type { Object } from "../../lang/Object";
|
|
3
|
-
import type { Class } from "../../lang/Class";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The abstract class {@code ContentHandler} is the superclass
|
|
7
|
-
* of all classes that read an {@code Object} from a
|
|
8
|
-
* {@code URLConnection}.
|
|
9
|
-
* <p>
|
|
10
|
-
* An application does not generally call the
|
|
11
|
-
* {@code getContent} method in this class directly. Instead, an
|
|
12
|
-
* application calls the {@code getContent} method in class
|
|
13
|
-
* {@code URL} or in {@code URLConnection}.
|
|
14
|
-
* The application's content handler factory (an instance of a class that
|
|
15
|
-
* implements the interface {@code ContentHandlerFactory} set
|
|
16
|
-
* up by a call to {@code setContentHandler}) is
|
|
17
|
-
* called with a {@code String} giving the MIME type of the
|
|
18
|
-
* object being received on the socket. The factory returns an
|
|
19
|
-
* instance of a subclass of {@code ContentHandler}, and its
|
|
20
|
-
* {@code getContent} method is called to create the object.
|
|
21
|
-
* <p>
|
|
22
|
-
* If no content handler could be found, URLConnection will
|
|
23
|
-
* look for a content handler in a user-defineable set of places.
|
|
24
|
-
* By default it looks in sun.net.www.content, but users can define a
|
|
25
|
-
* vertical-bar delimited set of class prefixes to search through in
|
|
26
|
-
* addition by defining the java.content.handler.pkgs property.
|
|
27
|
-
* The class name must be of the form:
|
|
28
|
-
* <pre>
|
|
29
|
-
* {package-prefix}.{major}.{minor}
|
|
30
|
-
* e.g.
|
|
31
|
-
* YoyoDyne.experimental.text.plain
|
|
32
|
-
* </pre>
|
|
33
|
-
* If the loading of the content handler class would be performed by
|
|
34
|
-
* a classloader that is outside of the delegation chain of the caller,
|
|
35
|
-
* the JVM will need the RuntimePermission "getClassLoader".
|
|
36
|
-
* @author James Gosling
|
|
37
|
-
* @see java.net.ContentHandler#getContent(java.net.URLConnection)
|
|
38
|
-
* @see java.net.ContentHandlerFactory
|
|
39
|
-
* @see java.net.URL#getContent()
|
|
40
|
-
* @see java.net.URLConnection
|
|
41
|
-
* @see java.net.URLConnection#getContent()
|
|
42
|
-
* @see java.net.URLConnection#setContentHandlerFactory(java.net.ContentHandlerFactory)
|
|
43
|
-
* @since JDK1.0
|
|
44
|
-
*/
|
|
45
|
-
export type ContentHandler = Object & {
|
|
46
|
-
/**
|
|
47
|
-
* Given a URL connect stream positioned at the beginning of the
|
|
48
|
-
* representation of an object, this method reads that stream and
|
|
49
|
-
* creates an object from it.
|
|
50
|
-
* @param urlc a URL connection.
|
|
51
|
-
* @return the object read by the {@code ContentHandler}.
|
|
52
|
-
* @throws IOException if an I/O error occurs while reading the object.
|
|
53
|
-
*/
|
|
54
|
-
getContent(urlc: URLConnection): unknown;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Given a URL connect stream positioned at the beginning of the
|
|
58
|
-
* representation of an object, this method reads that stream and
|
|
59
|
-
* creates an object that matches one of the types specified.
|
|
60
|
-
*
|
|
61
|
-
* The default implementation of this method should call getContent()
|
|
62
|
-
* and screen the return type for a match of the suggested types.
|
|
63
|
-
* @param urlc a URL connection.
|
|
64
|
-
* @param classes an array of types requested
|
|
65
|
-
* @return the object read by the {@code ContentHandler} that is
 the first match of the suggested types.
 null if none of the requested are supported.
|
|
66
|
-
* @throws IOException if an I/O error occurs while reading the object.
|
|
67
|
-
* @since 1.3
|
|
68
|
-
*/
|
|
69
|
-
getContent(urlc: URLConnection, classes: Class[]): unknown;
|
|
70
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { String } from "../../lang/String";
|
|
2
|
-
import type { ContentHandler } from "../ContentHandler";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This interface defines a factory for content handlers. An
|
|
6
|
-
* implementation of this interface should map a MIME type into an
|
|
7
|
-
* instance of {@code ContentHandler}.
|
|
8
|
-
* <p>
|
|
9
|
-
* This interface is used by the {@code URLStreamHandler} class
|
|
10
|
-
* to create a {@code ContentHandler} for a MIME type.
|
|
11
|
-
* @author James Gosling
|
|
12
|
-
* @see java.net.ContentHandler
|
|
13
|
-
* @see java.net.URLStreamHandler
|
|
14
|
-
* @since JDK1.0
|
|
15
|
-
*/
|
|
16
|
-
export type ContentHandlerFactory = {
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new {@code ContentHandler} to read an object from
|
|
19
|
-
* a {@code URLStreamHandler}.
|
|
20
|
-
* @param mimetype the MIME type for which a content handler is desired.
|
|
21
|
-
* @return a new {@code ContentHandler} to read an object from a
 {@code URLStreamHandler}.
|
|
22
|
-
* @see java.net.ContentHandler
|
|
23
|
-
* @see java.net.URLStreamHandler
|
|
24
|
-
*/
|
|
25
|
-
createContentHandler(mimetype: String | string): ContentHandler;
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { String } from "../../lang/String";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A simple interface which provides a mechanism to map
|
|
5
|
-
* between a file name and a MIME type string.
|
|
6
|
-
* @author Steven B. Byrne
|
|
7
|
-
* @since JDK1.1
|
|
8
|
-
*/
|
|
9
|
-
export type FileNameMap = {
|
|
10
|
-
/**
|
|
11
|
-
* Gets the MIME type for the specified file name.
|
|
12
|
-
* @param fileName the specified file name
|
|
13
|
-
* @return a {@code String} indicating the MIME
 type for the specified file name.
|
|
14
|
-
*/
|
|
15
|
-
getContentTypeFor(fileName: String | string): string;
|
|
16
|
-
};
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import type { URL } from "../URL";
|
|
2
|
-
import type { URLConnection } from "../URLConnection";
|
|
3
|
-
import type { Proxy } from "../Proxy";
|
|
4
|
-
import type { String } from "../../lang/String";
|
|
5
|
-
|
|
6
|
-
import type { InetAddress } from "../InetAddress";
|
|
7
|
-
import type { Object } from "../../lang/Object";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The abstract class {@code URLStreamHandler} is the common
|
|
11
|
-
* superclass for all stream protocol handlers. A stream protocol
|
|
12
|
-
* handler knows how to make a connection for a particular protocol
|
|
13
|
-
* type, such as {@code http} or {@code https}.
|
|
14
|
-
* <p>
|
|
15
|
-
* In most cases, an instance of a {@code URLStreamHandler}
|
|
16
|
-
* subclass is not created directly by an application. Rather, the
|
|
17
|
-
* first time a protocol name is encountered when constructing a
|
|
18
|
-
* {@code URL}, the appropriate stream protocol handler is
|
|
19
|
-
* automatically loaded.
|
|
20
|
-
* @author James Gosling
|
|
21
|
-
* @see java.net.URL#URL(java.lang.String, java.lang.String, int, java.lang.String)
|
|
22
|
-
* @since JDK1.0
|
|
23
|
-
*/
|
|
24
|
-
export type URLStreamHandler = Object & {
|
|
25
|
-
/**
|
|
26
|
-
* Opens a connection to the object referenced by the
|
|
27
|
-
* {@code URL} argument.
|
|
28
|
-
* This method should be overridden by a subclass.
|
|
29
|
-
*
|
|
30
|
-
* <p>If for the handler's protocol (such as HTTP or JAR), there
|
|
31
|
-
* exists a public, specialized URLConnection subclass belonging
|
|
32
|
-
* to one of the following packages or one of their subpackages:
|
|
33
|
-
* java.lang, java.io, java.util, java.net, the connection
|
|
34
|
-
* returned will be of that subclass. For example, for HTTP an
|
|
35
|
-
* HttpURLConnection will be returned, and for JAR a
|
|
36
|
-
* JarURLConnection will be returned.
|
|
37
|
-
* @param u the URL that this connects to.
|
|
38
|
-
* @return a {@code URLConnection} object for the {@code URL}.
|
|
39
|
-
* @throws IOException if an I/O error occurs while opening the
 connection.
|
|
40
|
-
*/
|
|
41
|
-
openConnection(u: URL): URLConnection;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Same as openConnection(URL), except that the connection will be
|
|
45
|
-
* made through the specified proxy; Protocol handlers that do not
|
|
46
|
-
* support proxying will ignore the proxy parameter and make a
|
|
47
|
-
* normal connection.
|
|
48
|
-
*
|
|
49
|
-
* Calling this method preempts the system's default ProxySelector
|
|
50
|
-
* settings.
|
|
51
|
-
* @param u the URL that this connects to.
|
|
52
|
-
* @param p the proxy through which the connection will be made.
 If direct connection is desired, Proxy.NO_PROXY
 should be specified.
|
|
53
|
-
* @return a {@code URLConnection} object for the {@code URL}.
|
|
54
|
-
* @throws IOException if an I/O error occurs while opening the
 connection.
|
|
55
|
-
* @throws IllegalArgumentException if either u or p is null,
 or p has the wrong type.
|
|
56
|
-
* @throws UnsupportedOperationException if the subclass that
 implements the protocol doesn't support this method.
|
|
57
|
-
* @since 1.5
|
|
58
|
-
*/
|
|
59
|
-
openConnection(u: URL, p: Proxy): URLConnection;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Parses the string representation of a {@code URL} into a
|
|
63
|
-
* {@code URL} object.
|
|
64
|
-
* <p>
|
|
65
|
-
* If there is any inherited context, then it has already been
|
|
66
|
-
* copied into the {@code URL} argument.
|
|
67
|
-
* <p>
|
|
68
|
-
* The {@code parseURL} method of {@code URLStreamHandler}
|
|
69
|
-
* parses the string representation as if it were an
|
|
70
|
-
* {@code http} specification. Most URL protocol families have a
|
|
71
|
-
* similar parsing. A stream protocol handler for a protocol that has
|
|
72
|
-
* a different syntax must override this routine.
|
|
73
|
-
* @param u the {@code URL} to receive the result of parsing
 the spec.
|
|
74
|
-
* @param spec the {@code String} representing the URL that
 must be parsed.
|
|
75
|
-
* @param start the character index at which to begin parsing. This is
 just past the '{@code :}' (if there is one) that
 specifies the determination of the protocol name.
|
|
76
|
-
* @param limit the character position to stop parsing at. This is the
 end of the string or the position of the
 "{@code #}" character, if present. All information
 after the sharp sign indicates an anchor.
|
|
77
|
-
*/
|
|
78
|
-
parseURL(u: URL, spec: String | string, start: number, limit: number): void;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns the default port for a URL parsed by this handler. This method
|
|
82
|
-
* is meant to be overidden by handlers with default port numbers.
|
|
83
|
-
* @return the default port for a {@code URL} parsed by this handler.
|
|
84
|
-
* @since 1.3
|
|
85
|
-
*/
|
|
86
|
-
getDefaultPort(): number;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Provides the default equals calculation. May be overidden by handlers
|
|
90
|
-
* for other protocols that have different requirements for equals().
|
|
91
|
-
* This method requires that none of its arguments is null. This is
|
|
92
|
-
* guaranteed by the fact that it is only called by java.net.URL class.
|
|
93
|
-
* @param u1 a URL object
|
|
94
|
-
* @param u2 a URL object
|
|
95
|
-
* @return {@code true} if the two urls are
 considered equal, ie. they refer to the same
 fragment in the same file.
|
|
96
|
-
* @since 1.3
|
|
97
|
-
*/
|
|
98
|
-
equals(u1: URL, u2: URL): boolean;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Provides the default hash calculation. May be overidden by handlers for
|
|
102
|
-
* other protocols that have different requirements for hashCode
|
|
103
|
-
* calculation.
|
|
104
|
-
* @param u a URL object
|
|
105
|
-
* @return an {@code int} suitable for hash table indexing
|
|
106
|
-
* @since 1.3
|
|
107
|
-
*/
|
|
108
|
-
hashCode(u: URL): number;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Compare two urls to see whether they refer to the same file,
|
|
112
|
-
* i.e., having the same protocol, host, port, and path.
|
|
113
|
-
* This method requires that none of its arguments is null. This is
|
|
114
|
-
* guaranteed by the fact that it is only called indirectly
|
|
115
|
-
* by java.net.URL class.
|
|
116
|
-
* @param u1 a URL object
|
|
117
|
-
* @param u2 a URL object
|
|
118
|
-
* @return true if u1 and u2 refer to the same file
|
|
119
|
-
* @since 1.3
|
|
120
|
-
*/
|
|
121
|
-
sameFile(u1: URL, u2: URL): boolean;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Get the IP address of our host. An empty host field or a DNS failure
|
|
125
|
-
* will result in a null return.
|
|
126
|
-
* @param u a URL object
|
|
127
|
-
* @return an {@code InetAddress} representing the host
 IP address.
|
|
128
|
-
* @since 1.3
|
|
129
|
-
*/
|
|
130
|
-
getHostAddress(u: URL): InetAddress;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Compares the host components of two URLs.
|
|
134
|
-
* @param u1 the URL of the first host to compare
|
|
135
|
-
* @param u2 the URL of the second host to compare
|
|
136
|
-
* @return {@code true} if and only if they
 are equal, {@code false} otherwise.
|
|
137
|
-
* @since 1.3
|
|
138
|
-
*/
|
|
139
|
-
hostsEqual(u1: URL, u2: URL): boolean;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Converts a {@code URL} of a specific protocol to a
|
|
143
|
-
* {@code String}.
|
|
144
|
-
* @param u the URL.
|
|
145
|
-
* @return a string representation of the {@code URL} argument.
|
|
146
|
-
*/
|
|
147
|
-
toExternalForm(u: URL): string;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Sets the fields of the {@code URL} argument to the indicated values.
|
|
151
|
-
* Only classes derived from URLStreamHandler are able
|
|
152
|
-
* to use this method to set the values of the URL fields.
|
|
153
|
-
* @param u the URL to modify.
|
|
154
|
-
* @param protocol the protocol name.
|
|
155
|
-
* @param host the remote host value for the URL.
|
|
156
|
-
* @param port the port on the remote machine.
|
|
157
|
-
* @param authority the authority part for the URL.
|
|
158
|
-
* @param userInfo the userInfo part of the URL.
|
|
159
|
-
* @param path the path component of the URL.
|
|
160
|
-
* @param query the query part for the URL.
|
|
161
|
-
* @param ref the reference.
|
|
162
|
-
* @throws SecurityException if the protocol handler of the URL is
 different from this one
|
|
163
|
-
* @see java.net.URL#set(java.lang.String, java.lang.String, int, java.lang.String, java.lang.String)
|
|
164
|
-
* @since 1.3
|
|
165
|
-
*/
|
|
166
|
-
setURL(
|
|
167
|
-
u: URL,
|
|
168
|
-
protocol: String | string,
|
|
169
|
-
host: String | string,
|
|
170
|
-
port: number,
|
|
171
|
-
authority: String | string,
|
|
172
|
-
userInfo: String | string,
|
|
173
|
-
path: String | string,
|
|
174
|
-
query: String | string,
|
|
175
|
-
ref: String | string
|
|
176
|
-
): void;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Sets the fields of the {@code URL} argument to the indicated values.
|
|
180
|
-
* Only classes derived from URLStreamHandler are able
|
|
181
|
-
* to use this method to set the values of the URL fields.
|
|
182
|
-
* @param u the URL to modify.
|
|
183
|
-
* @param protocol the protocol name. This value is ignored since 1.2.
|
|
184
|
-
* @param host the remote host value for the URL.
|
|
185
|
-
* @param port the port on the remote machine.
|
|
186
|
-
* @param file the file.
|
|
187
|
-
* @param ref the reference.
|
|
188
|
-
* @throws SecurityException if the protocol handler of the URL is
 different from this one
|
|
189
|
-
* @deprecated Use setURL(URL, String, String, int, String, String, String,
 String);
|
|
190
|
-
*/
|
|
191
|
-
setURL(
|
|
192
|
-
u: URL,
|
|
193
|
-
protocol: String | string,
|
|
194
|
-
host: String | string,
|
|
195
|
-
port: number,
|
|
196
|
-
file: String | string,
|
|
197
|
-
ref: String | string
|
|
198
|
-
): void;
|
|
199
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
openConnection: function openConnection() {},
|
|
9
|
-
parseURL: function parseURL() {},
|
|
10
|
-
getDefaultPort: function getDefaultPort() {},
|
|
11
|
-
equals: function equals() {},
|
|
12
|
-
hashCode: function hashCode() {},
|
|
13
|
-
sameFile: function sameFile() {},
|
|
14
|
-
getHostAddress: function getHostAddress() {},
|
|
15
|
-
hostsEqual: function hostsEqual() {},
|
|
16
|
-
toExternalForm: function toExternalForm() {},
|
|
17
|
-
setURL: function setURL() {}
|
|
18
|
-
};
|
|
19
|
-
exports["default"] = _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { String } from "../../lang/String";
|
|
2
|
-
import type { URLStreamHandler } from "../URLStreamHandler";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This interface defines a factory for {@code URL} stream
|
|
6
|
-
* protocol handlers.
|
|
7
|
-
* <p>
|
|
8
|
-
* It is used by the {@code URL} class to create a
|
|
9
|
-
* {@code URLStreamHandler} for a specific protocol.
|
|
10
|
-
* @author Arthur van Hoff
|
|
11
|
-
* @see java.net.URL
|
|
12
|
-
* @see java.net.URLStreamHandler
|
|
13
|
-
* @since JDK1.0
|
|
14
|
-
*/
|
|
15
|
-
export type URLStreamHandlerFactory = {
|
|
16
|
-
/**
|
|
17
|
-
* Creates a new {@code URLStreamHandler} instance with the specified
|
|
18
|
-
* protocol.
|
|
19
|
-
* @param protocol the protocol ("{@code ftp}",
 "{@code http}", "{@code nntp}", etc.).
|
|
20
|
-
* @return a {@code URLStreamHandler} for the specific protocol.
|
|
21
|
-
* @see java.net.URLStreamHandler
|
|
22
|
-
*/
|
|
23
|
-
createURLStreamHandler(protocol: String | string): URLStreamHandler;
|
|
24
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enumeration of the style of a localized date, time or date-time formatter.
|
|
3
|
-
* <p>
|
|
4
|
-
* These styles are used when obtaining a date-time style from configuration.
|
|
5
|
-
* See {@link DateTimeFormatter} and {@link DateTimeFormatterBuilder} for usage.
|
|
6
|
-
* @implSpec This is an immutable and thread-safe enum.
|
|
7
|
-
* @since 1.8
|
|
8
|
-
*/
|
|
9
|
-
export type FormatStyle = {
|
|
10
|
-
FULL: "FULL";
|
|
11
|
-
LONG: "LONG";
|
|
12
|
-
MEDIUM: "MEDIUM";
|
|
13
|
-
SHORT: "SHORT";
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enum for locale categories. These locale categories are used to get/set
|
|
3
|
-
* the default locale for the specific functionality represented by the
|
|
4
|
-
* category.
|
|
5
|
-
* @see #getDefault(Locale.Category)
|
|
6
|
-
* @see #setDefault(Locale.Category, Locale)
|
|
7
|
-
* @since 1.7
|
|
8
|
-
*/
|
|
9
|
-
export type Category = {
|
|
10
|
-
DISPLAY: "DISPLAY";
|
|
11
|
-
FORMAT: "FORMAT";
|
|
12
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This enum provides constants to select a filtering mode for locale
|
|
3
|
-
* matching. Refer to <a href="http://tools.ietf.org/html/rfc4647">RFC 4647
|
|
4
|
-
* Matching of Language Tags</a> for details.
|
|
5
|
-
*
|
|
6
|
-
* <p>As an example, think of two Language Priority Lists each of which
|
|
7
|
-
* includes only one language range and a set of following language tags:
|
|
8
|
-
*
|
|
9
|
-
* <pre>
|
|
10
|
-
* de (German)
|
|
11
|
-
* de-DE (German, Germany)
|
|
12
|
-
* de-Deva (German, in Devanagari script)
|
|
13
|
-
* de-Deva-DE (German, in Devanagari script, Germany)
|
|
14
|
-
* de-DE-1996 (German, Germany, orthography of 1996)
|
|
15
|
-
* de-Latn-DE (German, in Latin script, Germany)
|
|
16
|
-
* de-Latn-DE-1996 (German, in Latin script, Germany, orthography of 1996)
|
|
17
|
-
* </pre>
|
|
18
|
-
*
|
|
19
|
-
* The filtering method will behave as follows:
|
|
20
|
-
*
|
|
21
|
-
* <table cellpadding=2 summary="Filtering method behavior">
|
|
22
|
-
* <tr>
|
|
23
|
-
* <th>Filtering Mode</th>
|
|
24
|
-
* <th>Language Priority List: {@code "de-DE"}</th>
|
|
25
|
-
* <th>Language Priority List: {@code "de-*-DE"}</th>
|
|
26
|
-
* </tr>
|
|
27
|
-
* <tr>
|
|
28
|
-
* <td valign=top>
|
|
29
|
-
* {@link FilteringMode#AUTOSELECT_FILTERING AUTOSELECT_FILTERING}
|
|
30
|
-
* </td>
|
|
31
|
-
* <td valign=top>
|
|
32
|
-
* Performs <em>basic</em> filtering and returns {@code "de-DE"} and
|
|
33
|
-
* {@code "de-DE-1996"}.
|
|
34
|
-
* </td>
|
|
35
|
-
* <td valign=top>
|
|
36
|
-
* Performs <em>extended</em> filtering and returns {@code "de-DE"},
|
|
37
|
-
* {@code "de-Deva-DE"}, {@code "de-DE-1996"}, {@code "de-Latn-DE"}, and
|
|
38
|
-
* {@code "de-Latn-DE-1996"}.
|
|
39
|
-
* </td>
|
|
40
|
-
* </tr>
|
|
41
|
-
* <tr>
|
|
42
|
-
* <td valign=top>
|
|
43
|
-
* {@link FilteringMode#EXTENDED_FILTERING EXTENDED_FILTERING}
|
|
44
|
-
* </td>
|
|
45
|
-
* <td valign=top>
|
|
46
|
-
* Performs <em>extended</em> filtering and returns {@code "de-DE"},
|
|
47
|
-
* {@code "de-Deva-DE"}, {@code "de-DE-1996"}, {@code "de-Latn-DE"}, and
|
|
48
|
-
* {@code "de-Latn-DE-1996"}.
|
|
49
|
-
* </td>
|
|
50
|
-
* <td valign=top>Same as above.</td>
|
|
51
|
-
* </tr>
|
|
52
|
-
* <tr>
|
|
53
|
-
* <td valign=top>
|
|
54
|
-
* {@link FilteringMode#IGNORE_EXTENDED_RANGES IGNORE_EXTENDED_RANGES}
|
|
55
|
-
* </td>
|
|
56
|
-
* <td valign=top>
|
|
57
|
-
* Performs <em>basic</em> filtering and returns {@code "de-DE"} and
|
|
58
|
-
* {@code "de-DE-1996"}.
|
|
59
|
-
* </td>
|
|
60
|
-
* <td valign=top>
|
|
61
|
-
* Performs <em>basic</em> filtering and returns {@code null} because
|
|
62
|
-
* nothing matches.
|
|
63
|
-
* </td>
|
|
64
|
-
* </tr>
|
|
65
|
-
* <tr>
|
|
66
|
-
* <td valign=top>
|
|
67
|
-
* {@link FilteringMode#MAP_EXTENDED_RANGES MAP_EXTENDED_RANGES}
|
|
68
|
-
* </td>
|
|
69
|
-
* <td valign=top>Same as above.</td>
|
|
70
|
-
* <td valign=top>
|
|
71
|
-
* Performs <em>basic</em> filtering and returns {@code "de-DE"} and
|
|
72
|
-
* {@code "de-DE-1996"} because {@code "de-*-DE"} is mapped to
|
|
73
|
-
* {@code "de-DE"}.
|
|
74
|
-
* </td>
|
|
75
|
-
* </tr>
|
|
76
|
-
* <tr>
|
|
77
|
-
* <td valign=top>
|
|
78
|
-
* {@link FilteringMode#REJECT_EXTENDED_RANGES REJECT_EXTENDED_RANGES}
|
|
79
|
-
* </td>
|
|
80
|
-
* <td valign=top>Same as above.</td>
|
|
81
|
-
* <td valign=top>
|
|
82
|
-
* Throws {@link IllegalArgumentException} because {@code "de-*-DE"} is
|
|
83
|
-
* not a valid basic language range.
|
|
84
|
-
* </td>
|
|
85
|
-
* </tr>
|
|
86
|
-
* </table>
|
|
87
|
-
* @see #filter(List, Collection, FilteringMode)
|
|
88
|
-
* @see #filterTags(List, Collection, FilteringMode)
|
|
89
|
-
* @since 1.8
|
|
90
|
-
*/
|
|
91
|
-
export type FilteringMode = {
|
|
92
|
-
AUTOSELECT_FILTERING: "AUTOSELECT_FILTERING";
|
|
93
|
-
EXTENDED_FILTERING: "EXTENDED_FILTERING";
|
|
94
|
-
IGNORE_EXTENDED_RANGES: "IGNORE_EXTENDED_RANGES";
|
|
95
|
-
MAP_EXTENDED_RANGES: "MAP_EXTENDED_RANGES";
|
|
96
|
-
REJECT_EXTENDED_RANGES: "REJECT_EXTENDED_RANGES";
|
|
97
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
AUTOSELECT_FILTERING: "AUTOSELECT_FILTERING",
|
|
9
|
-
EXTENDED_FILTERING: "EXTENDED_FILTERING",
|
|
10
|
-
IGNORE_EXTENDED_RANGES: "IGNORE_EXTENDED_RANGES",
|
|
11
|
-
MAP_EXTENDED_RANGES: "MAP_EXTENDED_RANGES",
|
|
12
|
-
REJECT_EXTENDED_RANGES: "REJECT_EXTENDED_RANGES"
|
|
13
|
-
};
|
|
14
|
-
exports["default"] = _default;
|