@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.3

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.
Files changed (147) hide show
  1. package/package.json +1 -1
  2. package/server/ArraysInstance/index.d.ts +1 -1
  3. package/server/CollectionsInstance/index.d.ts +1 -1
  4. package/server/NodeTypeUtil/index.d.ts +1 -1
  5. package/server/PermissionUtil/index.d.ts +3 -3
  6. package/server/Properties/index.d.ts +7 -4
  7. package/server/TagUtil/index.d.ts +1 -1
  8. package/types/java/io/File/index.d.ts +0 -120
  9. package/types/java/io/File/index.js +0 -2
  10. package/types/java/io/PrintStream/index.d.ts +4 -4
  11. package/types/java/io/PrintWriter/index.d.ts +4 -4
  12. package/types/java/lang/Boolean/index.d.ts +0 -123
  13. package/types/java/lang/Boolean/index.js +1 -8
  14. package/types/java/lang/Class/index.d.ts +9 -97
  15. package/types/java/lang/Class/index.js +0 -1
  16. package/types/java/lang/ClassLoader/index.d.ts +0 -91
  17. package/types/java/lang/ClassLoader/index.js +0 -5
  18. package/types/java/lang/Double/index.d.ts +0 -541
  19. package/types/java/lang/Double/index.js +2 -13
  20. package/types/java/lang/Enum/index.d.ts +0 -23
  21. package/types/java/lang/Enum/index.js +0 -1
  22. package/types/java/lang/Float/index.d.ts +0 -494
  23. package/types/java/lang/Float/index.js +2 -13
  24. package/types/java/lang/Integer/index.d.ts +0 -780
  25. package/types/java/lang/Integer/index.js +2 -29
  26. package/types/java/lang/Long/index.d.ts +0 -788
  27. package/types/java/lang/Long/index.js +2 -28
  28. package/types/java/lang/Package/index.d.ts +0 -28
  29. package/types/java/lang/Package/index.js +0 -2
  30. package/types/java/lang/String/index.d.ts +0 -193
  31. package/types/java/lang/String/index.js +0 -4
  32. package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
  33. package/types/java/lang/reflect/Constructor/index.d.ts +1 -1
  34. package/types/java/lang/reflect/Method/index.d.ts +1 -1
  35. package/types/java/math/BigDecimal/index.d.ts +1 -40
  36. package/types/java/math/BigDecimal/index.js +0 -1
  37. package/types/java/math/BigInteger/index.d.ts +0 -25
  38. package/types/java/math/BigInteger/index.js +0 -2
  39. package/types/java/net/InetAddress/index.d.ts +0 -134
  40. package/types/java/net/InetAddress/index.js +1 -6
  41. package/types/java/net/NetworkInterface/index.d.ts +0 -50
  42. package/types/java/net/NetworkInterface/index.js +0 -4
  43. package/types/java/net/URI/index.d.ts +0 -22
  44. package/types/java/net/URI/index.js +0 -1
  45. package/types/java/net/URL/index.d.ts +0 -23
  46. package/types/java/net/URL/index.js +1 -2
  47. package/types/java/net/URLConnection/index.d.ts +0 -125
  48. package/types/java/net/URLConnection/index.js +1 -10
  49. package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
  50. package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
  51. package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
  52. package/types/java/nio/channels/FileChannel/index.js +0 -1
  53. package/types/java/nio/charset/Charset/index.d.ts +1 -58
  54. package/types/java/nio/charset/Charset/index.js +0 -4
  55. package/types/java/nio/file/FileSystem/index.d.ts +1 -1
  56. package/types/java/nio/file/Path/index.d.ts +3 -3
  57. package/types/java/nio/file/Watchable/index.d.ts +2 -2
  58. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +18 -26
  59. package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
  60. package/types/java/text/DateFormat/index.d.ts +0 -130
  61. package/types/java/text/DateFormat/index.js +0 -5
  62. package/types/java/text/DateFormatSymbols/index.d.ts +7 -52
  63. package/types/java/text/DateFormatSymbols/index.js +0 -2
  64. package/types/java/text/NumberFormat/index.d.ts +0 -123
  65. package/types/java/text/NumberFormat/index.js +0 -6
  66. package/types/java/time/Clock/index.d.ts +1 -162
  67. package/types/java/time/Clock/index.js +0 -8
  68. package/types/java/time/Duration/index.d.ts +3 -193
  69. package/types/java/time/Duration/index.js +0 -10
  70. package/types/java/time/Instant/index.d.ts +0 -101
  71. package/types/java/time/Instant/index.js +0 -5
  72. package/types/java/time/LocalDate/index.d.ts +4 -134
  73. package/types/java/time/LocalDate/index.js +0 -6
  74. package/types/java/time/LocalDateTime/index.d.ts +7 -285
  75. package/types/java/time/LocalDateTime/index.js +0 -6
  76. package/types/java/time/LocalTime/index.d.ts +2 -146
  77. package/types/java/time/LocalTime/index.js +0 -6
  78. package/types/java/time/OffsetDateTime/index.d.ts +7 -177
  79. package/types/java/time/OffsetDateTime/index.js +0 -6
  80. package/types/java/time/OffsetTime/index.d.ts +3 -141
  81. package/types/java/time/OffsetTime/index.js +0 -5
  82. package/types/java/time/Period/index.d.ts +1 -135
  83. package/types/java/time/Period/index.js +0 -8
  84. package/types/java/time/ZoneId/index.d.ts +1 -121
  85. package/types/java/time/ZoneId/index.js +0 -5
  86. package/types/java/time/ZoneOffset/index.d.ts +1 -104
  87. package/types/java/time/ZoneOffset/index.js +0 -6
  88. package/types/java/time/ZonedDateTime/index.d.ts +6 -284
  89. package/types/java/time/ZonedDateTime/index.js +0 -7
  90. package/types/java/time/format/DateTimeFormatter/index.d.ts +4 -217
  91. package/types/java/time/format/DateTimeFormatter/index.js +0 -6
  92. package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
  93. package/types/java/time/format/DecimalStyle/index.js +0 -3
  94. package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
  95. package/types/java/time/temporal/ValueRange/index.js +0 -1
  96. package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
  97. package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
  98. package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
  99. package/types/java/time/zone/ZoneRules/index.js +0 -1
  100. package/types/java/util/Calendar/index.d.ts +2 -67
  101. package/types/java/util/Calendar/index.js +0 -3
  102. package/types/java/util/Comparator/index.d.ts +16 -16
  103. package/types/java/util/Currency/index.d.ts +0 -38
  104. package/types/java/util/Currency/index.js +0 -2
  105. package/types/java/util/Date/index.d.ts +0 -160
  106. package/types/java/util/Date/index.js +0 -3
  107. package/types/java/util/Locale/index.d.ts +0 -344
  108. package/types/java/util/Locale/index.js +1 -11
  109. package/types/java/util/Optional/index.d.ts +0 -27
  110. package/types/java/util/Optional/index.js +0 -3
  111. package/types/java/util/OptionalDouble/index.d.ts +0 -15
  112. package/types/java/util/OptionalDouble/index.js +0 -2
  113. package/types/java/util/OptionalInt/index.d.ts +0 -15
  114. package/types/java/util/OptionalInt/index.js +0 -2
  115. package/types/java/util/OptionalLong/index.d.ts +0 -15
  116. package/types/java/util/OptionalLong/index.js +0 -2
  117. package/types/java/util/TimeZone/index.d.ts +0 -65
  118. package/types/java/util/TimeZone/index.js +0 -4
  119. package/types/java/util/stream/Collector/index.d.ts +2 -2
  120. package/types/java/util/stream/DoubleStream/index.d.ts +1 -1
  121. package/types/java/util/stream/IntStream/index.d.ts +1 -1
  122. package/types/java/util/stream/LongStream/index.d.ts +1 -1
  123. package/types/java/util/stream/Stream/index.d.ts +1 -1
  124. package/types/javax/jcr/PropertyType/index.d.ts +2 -18
  125. package/types/javax/jcr/PropertyType/index.js +1 -4
  126. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  127. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  128. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +2 -2
  129. package/types/javax/jcr/observation/ObservationManager/index.d.ts +4 -4
  130. package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
  131. package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
  132. package/types/java/net/ContentHandler/index.d.ts +0 -70
  133. package/types/java/net/ContentHandler/index.js +0 -10
  134. package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
  135. package/types/java/net/ContentHandlerFactory/index.js +0 -10
  136. package/types/java/net/FileNameMap/index.d.ts +0 -16
  137. package/types/java/net/FileNameMap/index.js +0 -10
  138. package/types/java/net/URLStreamHandler/index.d.ts +0 -199
  139. package/types/java/net/URLStreamHandler/index.js +0 -19
  140. package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
  141. package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
  142. package/types/java/time/format/FormatStyle/index.d.ts +0 -14
  143. package/types/java/time/format/FormatStyle/index.js +0 -13
  144. package/types/java/util/Locale.Category/index.d.ts +0 -12
  145. package/types/java/util/Locale.Category/index.js +0 -11
  146. package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
  147. package/types/java/util/Locale.FilteringMode/index.js +0 -14
@@ -532,7 +532,7 @@ export type IntStream = BaseStream & {
532
532
  * @param values the elements of the new stream
533
533
  * @return the new stream
534
534
  */
535
- of(values: number[]): IntStream;
535
+ of(...values: number[]): IntStream;
536
536
 
537
537
  /**
538
538
  * Returns an infinite sequential ordered {@code IntStream} produced by iterative
@@ -522,7 +522,7 @@ export type LongStream = BaseStream & {
522
522
  * @param values the elements of the new stream
523
523
  * @return the new stream
524
524
  */
525
- of(values: number[]): LongStream;
525
+ of(...values: number[]): LongStream;
526
526
 
527
527
  /**
528
528
  * Returns an infinite sequential ordered {@code LongStream} produced by iterative
@@ -707,7 +707,7 @@ export type Stream = BaseStream & {
707
707
  * @param values the elements of the new stream
708
708
  * @return the new stream
709
709
  */
710
- of(values: unknown[]): Stream;
710
+ of(...values: unknown[]): Stream;
711
711
 
712
712
  /**
713
713
  * Returns an infinite sequential ordered {@code Stream} produced by iterative
@@ -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&#xA; 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&#xA; 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;
@@ -55,7 +55,7 @@ export type NodeDefinitionTemplate = NodeDefinition & {
55
55
  * @param names an array of JCR names.
56
56
  * @throws ConstraintViolationException if <code>names</code> includes a&#xA; name that is not a syntactically valid JCR name in either qualified or expanded form.
57
57
  */
58
- setRequiredPrimaryTypeNames(names: String | string[]): void;
58
+ setRequiredPrimaryTypeNames(names: String[] | string[]): void;
59
59
 
60
60
  /**
61
61
  * Sets the name of the default primary type of this node.
@@ -37,7 +37,7 @@ export type NodeTypeTemplate = NodeTypeDefinition & {
37
37
  * @param names an array of JCR names.
38
38
  * @throws ConstraintViolationException if <code>names</code> includes a&#xA; name that is not a syntactically valid JCR name in either qualified or expanded form.
39
39
  */
40
- setDeclaredSuperTypeNames(names: String | string[]): void;
40
+ setDeclaredSuperTypeNames(names: String[] | string[]): void;
41
41
 
42
42
  /**
43
43
  * Sets the abstract flag of the node type.
@@ -61,7 +61,7 @@ export type PropertyDefinitionTemplate = PropertyDefinition & {
61
61
  * Sets the value constraints of the property.
62
62
  * @param constraints a <code>String</code> array.
63
63
  */
64
- setValueConstraints(constraints: String | string[]): void;
64
+ setValueConstraints(constraints: String[] | string[]): void;
65
65
 
66
66
  /**
67
67
  * Sets the default value (or values, in the case of a multi-value property)
@@ -80,7 +80,7 @@ export type PropertyDefinitionTemplate = PropertyDefinition & {
80
80
  * Sets the queryable status of the property.
81
81
  * @param operators an array of String constants. See {@link&#xA; PropertyDefinition#getAvailableQueryOperators()} .
82
82
  */
83
- setAvailableQueryOperators(operators: String | string[]): void;
83
+ setAvailableQueryOperators(operators: String[] | string[]): void;
84
84
 
85
85
  /**
86
86
  * Sets the full-text-searchable status of the property.
@@ -76,8 +76,8 @@ export type ObservationManager = {
76
76
  eventTypes: number,
77
77
  absPath: String | string,
78
78
  isDeep: boolean,
79
- uuid: String | string[],
80
- nodeTypeName: String | string[],
79
+ uuid: String[] | string[],
80
+ nodeTypeName: String[] | string[],
81
81
  noLocal: boolean
82
82
  ): void;
83
83
 
@@ -150,7 +150,7 @@ export type ObservationManager = {
150
150
  eventTypes: number,
151
151
  absPath: String | string,
152
152
  isDeep: boolean,
153
- uuid: String | string[],
154
- nodeTypeName: String | string[]
153
+ uuid: String[] | string[],
154
+ nodeTypeName: String[] | string[]
155
155
  ): EventJournal;
156
156
  };
@@ -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&#xA; 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&#xA; 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&#xA; the first match of the suggested types.&#xA; 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,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- getContent: function getContent() {}
9
- };
10
- exports["default"] = _default;
@@ -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&#xA; {@code URLStreamHandler}.
22
- * @see java.net.ContentHandler
23
- * @see java.net.URLStreamHandler
24
- */
25
- createContentHandler(mimetype: String | string): ContentHandler;
26
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- createContentHandler: function createContentHandler() {}
9
- };
10
- exports["default"] = _default;
@@ -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&#xA; type for the specified file name.
14
- */
15
- getContentTypeFor(fileName: String | string): string;
16
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- getContentTypeFor: function getContentTypeFor() {}
9
- };
10
- exports["default"] = _default;
@@ -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&#xA; 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.&#xA; If direct connection is desired, Proxy.NO_PROXY&#xA; 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&#xA; connection.
55
- * @throws IllegalArgumentException if either u or p is null,&#xA; or p has the wrong type.
56
- * @throws UnsupportedOperationException if the subclass that&#xA; 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&#xA; the spec.
74
- * @param spec the {@code String} representing the URL that&#xA; must be parsed.
75
- * @param start the character index at which to begin parsing. This is&#xA; just past the '{@code :}' (if there is one) that&#xA; specifies the determination of the protocol name.
76
- * @param limit the character position to stop parsing at. This is the&#xA; end of the string or the position of the&#xA; "{@code #}" character, if present. All information&#xA; 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&#xA; considered equal, ie. they refer to the same&#xA; 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&#xA; 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&#xA; 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&#xA; 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&#xA; different from this one
189
- * @deprecated Use setURL(URL, String, String, int, String, String, String,&#xA; 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}",&#xA; "{@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,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- createURLStreamHandler: function createURLStreamHandler() {}
9
- };
10
- exports["default"] = _default;
@@ -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,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- FULL: "FULL",
9
- LONG: "LONG",
10
- MEDIUM: "MEDIUM",
11
- SHORT: "SHORT"
12
- };
13
- exports["default"] = _default;
@@ -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,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- DISPLAY: "DISPLAY",
9
- FORMAT: "FORMAT"
10
- };
11
- exports["default"] = _default;