@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.
- package/package.json +1 -1
- package/server/ArraysInstance/index.d.ts +1 -1
- package/server/CollectionsInstance/index.d.ts +1 -1
- package/server/NodeTypeUtil/index.d.ts +1 -1
- package/server/PermissionUtil/index.d.ts +3 -3
- package/server/Properties/index.d.ts +7 -4
- package/server/TagUtil/index.d.ts +1 -1
- package/types/java/io/File/index.d.ts +0 -120
- package/types/java/io/File/index.js +0 -2
- package/types/java/io/PrintStream/index.d.ts +4 -4
- package/types/java/io/PrintWriter/index.d.ts +4 -4
- 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 +9 -97
- 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/lang/reflect/Constructor/index.d.ts +1 -1
- package/types/java/lang/reflect/Method/index.d.ts +1 -1
- 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/FileSystem/index.d.ts +1 -1
- package/types/java/nio/file/Path/index.d.ts +3 -3
- package/types/java/nio/file/Watchable/index.d.ts +2 -2
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +18 -26
- 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 +7 -52
- 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 +4 -217
- 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/java/util/stream/Collector/index.d.ts +2 -2
- package/types/java/util/stream/DoubleStream/index.d.ts +1 -1
- package/types/java/util/stream/IntStream/index.d.ts +1 -1
- package/types/java/util/stream/LongStream/index.d.ts +1 -1
- package/types/java/util/stream/Stream/index.d.ts +1 -1
- package/types/javax/jcr/PropertyType/index.d.ts +2 -18
- package/types/javax/jcr/PropertyType/index.js +1 -4
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +2 -2
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +4 -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
|
@@ -2,8 +2,6 @@ import type { String } from "../../lang/String";
|
|
|
2
2
|
import type { Enumeration } from "../../util/Enumeration";
|
|
3
3
|
import type { List } from "../../util/List";
|
|
4
4
|
|
|
5
|
-
import type { InetAddress } from "../InetAddress";
|
|
6
|
-
|
|
7
5
|
import type { Object } from "../../lang/Object";
|
|
8
6
|
|
|
9
7
|
/**
|
|
@@ -87,54 +85,6 @@ export type NetworkInterface = Object & {
|
|
|
87
85
|
*/
|
|
88
86
|
getDisplayName(): string;
|
|
89
87
|
|
|
90
|
-
/**
|
|
91
|
-
* Searches for the network interface with the specified name.
|
|
92
|
-
* @param name
 The name of the network interface.
|
|
93
|
-
* @return A {@code NetworkInterface} with the specified name,
 or {@code null} if there is no network interface
 with the specified name.
|
|
94
|
-
* @throws SocketException
 If an I/O error occurs.
|
|
95
|
-
* @throws NullPointerException
 If the specified name is {@code null}.
|
|
96
|
-
*/
|
|
97
|
-
getByName(name: String | string): NetworkInterface;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Get a network interface given its index.
|
|
101
|
-
* @param index an integer, the index of the interface
|
|
102
|
-
* @return the NetworkInterface obtained from its index, or {@code null} if
 there is no interface with such an index on the system
|
|
103
|
-
* @throws SocketException if an I/O error occurs.
|
|
104
|
-
* @throws IllegalArgumentException if index has a negative value
|
|
105
|
-
* @see #getIndex()
|
|
106
|
-
* @since 1.7
|
|
107
|
-
*/
|
|
108
|
-
getByIndex(index: number): NetworkInterface;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Convenience method to search for a network interface that
|
|
112
|
-
* has the specified Internet Protocol (IP) address bound to
|
|
113
|
-
* it.
|
|
114
|
-
* <p>
|
|
115
|
-
* If the specified IP address is bound to multiple network
|
|
116
|
-
* interfaces it is not defined which network interface is
|
|
117
|
-
* returned.
|
|
118
|
-
* @param addr
 The {@code InetAddress} to search with.
|
|
119
|
-
* @return A {@code NetworkInterface}
 or {@code null} if there is no network interface
 with the specified IP address.
|
|
120
|
-
* @throws SocketException
 If an I/O error occurs.
|
|
121
|
-
* @throws NullPointerException
 If the specified address is {@code null}.
|
|
122
|
-
*/
|
|
123
|
-
getByInetAddress(addr: InetAddress): NetworkInterface;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Returns all the interfaces on this machine. The {@code Enumeration}
|
|
127
|
-
* contains at least one element, possibly representing a loopback
|
|
128
|
-
* interface that only supports communication between entities on
|
|
129
|
-
* this machine.
|
|
130
|
-
*
|
|
131
|
-
* NOTE: can use getNetworkInterfaces()+getInetAddresses()
|
|
132
|
-
* to obtain all IP addresses for this node
|
|
133
|
-
* @return an Enumeration of NetworkInterfaces found on this machine
|
|
134
|
-
* @throws SocketException if an I/O error occurs.
|
|
135
|
-
*/
|
|
136
|
-
getNetworkInterfaces(): Enumeration;
|
|
137
|
-
|
|
138
88
|
/**
|
|
139
89
|
* Returns whether a network interface is up and running.
|
|
140
90
|
* @return {@code true} if the interface is up and running.
|
|
@@ -12,10 +12,6 @@ var _default = {
|
|
|
12
12
|
getParent: function getParent() {},
|
|
13
13
|
getIndex: function getIndex() {},
|
|
14
14
|
getDisplayName: function getDisplayName() {},
|
|
15
|
-
getByName: function getByName() {},
|
|
16
|
-
getByIndex: function getByIndex() {},
|
|
17
|
-
getByInetAddress: function getByInetAddress() {},
|
|
18
|
-
getNetworkInterfaces: function getNetworkInterfaces() {},
|
|
19
15
|
isUp: function isUp() {},
|
|
20
16
|
isLoopback: function isLoopback() {},
|
|
21
17
|
isPointToPoint: function isPointToPoint() {},
|
|
@@ -413,28 +413,6 @@ import type { Serializable } from "../../io/Serializable";
|
|
|
413
413
|
export type URI = Object &
|
|
414
414
|
Comparable &
|
|
415
415
|
Serializable & {
|
|
416
|
-
/**
|
|
417
|
-
* Creates a URI by parsing the given string.
|
|
418
|
-
*
|
|
419
|
-
* <p> This convenience factory method works as if by invoking the {@link
|
|
420
|
-
* #URI(String)} constructor; any {@link URISyntaxException} thrown by the
|
|
421
|
-
* constructor is caught and wrapped in a new {@link
|
|
422
|
-
* IllegalArgumentException} object, which is then thrown.
|
|
423
|
-
*
|
|
424
|
-
* <p> This method is provided for use in situations where it is known that
|
|
425
|
-
* the given string is a legal URI, for example for URI constants declared
|
|
426
|
-
* within in a program, and so it would be considered a programming error
|
|
427
|
-
* for the string not to parse as such. The constructors, which throw
|
|
428
|
-
* {@link URISyntaxException} directly, should be used situations where a
|
|
429
|
-
* URI is being constructed from user input or from some other source that
|
|
430
|
-
* may be prone to errors. </p>
|
|
431
|
-
* @param str The string to be parsed into a URI
|
|
432
|
-
* @return The new URI
|
|
433
|
-
* @throws NullPointerException
 If {@code str} is {@code null}
|
|
434
|
-
* @throws IllegalArgumentException
 If the given string violates RFC 2396
|
|
435
|
-
*/
|
|
436
|
-
create(str: String | string): URI;
|
|
437
|
-
|
|
438
416
|
/**
|
|
439
417
|
* Attempts to parse this URI's authority component, if defined, into
|
|
440
418
|
* user-information, host, and port components.
|
|
@@ -7,8 +7,6 @@ import type { URLConnection } from "../URLConnection";
|
|
|
7
7
|
import type { Proxy } from "../Proxy";
|
|
8
8
|
import type { InputStream } from "../../io/InputStream";
|
|
9
9
|
import type { Class } from "../../lang/Class";
|
|
10
|
-
import type { URLStreamHandlerFactory } from "../URLStreamHandlerFactory";
|
|
11
|
-
|
|
12
10
|
import type { Serializable } from "../../io/Serializable";
|
|
13
11
|
|
|
14
12
|
/**
|
|
@@ -354,25 +352,4 @@ export type URL = Object &
|
|
|
354
352
|
* @since 1.3
|
|
355
353
|
*/
|
|
356
354
|
getContent(classes: Class[]): unknown;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Sets an application's {@code URLStreamHandlerFactory}.
|
|
360
|
-
* This method can be called at most once in a given Java Virtual
|
|
361
|
-
* Machine.
|
|
362
|
-
*
|
|
363
|
-
* <p> The {@code URLStreamHandlerFactory} instance is used to
|
|
364
|
-
* construct a stream protocol handler from a protocol name.
|
|
365
|
-
*
|
|
366
|
-
* <p> If there is a security manager, this method first calls
|
|
367
|
-
* the security manager's {@code checkSetFactory} method
|
|
368
|
-
* to ensure the operation is allowed.
|
|
369
|
-
* This could result in a SecurityException.
|
|
370
|
-
* @param fac the desired factory.
|
|
371
|
-
* @throws Error if the application has already set a factory.
|
|
372
|
-
* @throws SecurityException if a security manager exists and its
 {@code checkSetFactory} method doesn't allow
 the operation.
|
|
373
|
-
* @see java.net.URL#URL(java.lang.String, java.lang.String,
 int, java.lang.String)
|
|
374
|
-
* @see java.net.URLStreamHandlerFactory
|
|
375
|
-
* @see SecurityManager#checkSetFactory
|
|
376
|
-
*/
|
|
377
|
-
setURLStreamHandlerFactory(fac: URLStreamHandlerFactory): void;
|
|
378
355
|
};
|
|
@@ -23,7 +23,6 @@ var _default = {
|
|
|
23
23
|
toURI: function toURI() {},
|
|
24
24
|
openConnection: function openConnection() {},
|
|
25
25
|
openStream: function openStream() {},
|
|
26
|
-
getContent: function getContent() {}
|
|
27
|
-
setURLStreamHandlerFactory: function setURLStreamHandlerFactory() {}
|
|
26
|
+
getContent: function getContent() {}
|
|
28
27
|
};
|
|
29
28
|
exports["default"] = _default;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { FileNameMap } from "../FileNameMap";
|
|
2
|
-
|
|
3
1
|
import type { URL } from "../URL";
|
|
4
2
|
|
|
5
3
|
import type { String } from "../../lang/String";
|
|
@@ -10,8 +8,6 @@ import type { Permission } from "../../security/Permission";
|
|
|
10
8
|
import type { InputStream } from "../../io/InputStream";
|
|
11
9
|
import type { OutputStream } from "../../io/OutputStream";
|
|
12
10
|
|
|
13
|
-
import type { ContentHandlerFactory } from "../ContentHandlerFactory";
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* The abstract class {@code URLConnection} is the superclass
|
|
17
13
|
* of all classes that represent a communications link between the
|
|
@@ -130,32 +126,6 @@ import type { ContentHandlerFactory } from "../ContentHandlerFactory";
|
|
|
130
126
|
* @since JDK1.0
|
|
131
127
|
*/
|
|
132
128
|
export type URLConnection = Object & {
|
|
133
|
-
/**
|
|
134
|
-
* Loads filename map (a mimetable) from a data file. It will
|
|
135
|
-
* first try to load the user-specific table, defined
|
|
136
|
-
* by "content.types.user.table" property. If that fails,
|
|
137
|
-
* it tries to load the default built-in table.
|
|
138
|
-
* @return the FileNameMap
|
|
139
|
-
* @since 1.2
|
|
140
|
-
* @see #setFileNameMap(java.net.FileNameMap)
|
|
141
|
-
*/
|
|
142
|
-
getFileNameMap(): FileNameMap;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Sets the FileNameMap.
|
|
146
|
-
* <p>
|
|
147
|
-
* If there is a security manager, this method first calls
|
|
148
|
-
* the security manager's {@code checkSetFactory} method
|
|
149
|
-
* to ensure the operation is allowed.
|
|
150
|
-
* This could result in a SecurityException.
|
|
151
|
-
* @param map the FileNameMap to be set
|
|
152
|
-
* @throws SecurityException if a security manager exists and its
 {@code checkSetFactory} method doesn't allow the operation.
|
|
153
|
-
* @see SecurityManager#checkSetFactory
|
|
154
|
-
* @see #getFileNameMap()
|
|
155
|
-
* @since 1.2
|
|
156
|
-
*/
|
|
157
|
-
setFileNameMap(map: FileNameMap): void;
|
|
158
|
-
|
|
159
129
|
/**
|
|
160
130
|
* Opens a communications link to the resource referenced by this
|
|
161
131
|
* URL, if such a connection has not already been established.
|
|
@@ -563,27 +533,6 @@ export type URLConnection = Object & {
|
|
|
563
533
|
*/
|
|
564
534
|
getAllowUserInteraction(): boolean;
|
|
565
535
|
|
|
566
|
-
/**
|
|
567
|
-
* Sets the default value of the
|
|
568
|
-
* {@code allowUserInteraction} field for all future
|
|
569
|
-
* {@code URLConnection} objects to the specified value.
|
|
570
|
-
* @param defaultallowuserinteraction the new value.
|
|
571
|
-
* @see #getDefaultAllowUserInteraction()
|
|
572
|
-
*/
|
|
573
|
-
setDefaultAllowUserInteraction(defaultallowuserinteraction: boolean): void;
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* Returns the default value of the {@code allowUserInteraction}
|
|
577
|
-
* field.
|
|
578
|
-
* <p>
|
|
579
|
-
* Ths default is "sticky", being a part of the static state of all
|
|
580
|
-
* URLConnections. This flag applies to the next, and all following
|
|
581
|
-
* URLConnections that are created.
|
|
582
|
-
* @return the default value of the {@code allowUserInteraction}
 field.
|
|
583
|
-
* @see #setDefaultAllowUserInteraction(boolean)
|
|
584
|
-
*/
|
|
585
|
-
getDefaultAllowUserInteraction(): boolean;
|
|
586
|
-
|
|
587
536
|
/**
|
|
588
537
|
* Sets the value of the {@code useCaches} field of this
|
|
589
538
|
* {@code URLConnection} to the specified value.
|
|
@@ -696,78 +645,4 @@ export type URLConnection = Object & {
|
|
|
696
645
|
* @since 1.4
|
|
697
646
|
*/
|
|
698
647
|
getRequestProperties(): Map;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Sets the default value of a general request property. When a
|
|
702
|
-
* {@code URLConnection} is created, it is initialized with
|
|
703
|
-
* these properties.
|
|
704
|
-
* @param key the keyword by which the request is known
 (e.g., "{@code Accept}").
|
|
705
|
-
* @param value the value associated with the key.
|
|
706
|
-
* @see java.net.URLConnection#setRequestProperty(java.lang.String,java.lang.String)
|
|
707
|
-
* @deprecated The instance specific setRequestProperty method
 should be used after an appropriate instance of URLConnection
 is obtained. Invoking this method will have no effect.
|
|
708
|
-
* @see #getDefaultRequestProperty(java.lang.String)
|
|
709
|
-
*/
|
|
710
|
-
setDefaultRequestProperty(key: String | string, value: String | string): void;
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Returns the value of the default request property. Default request
|
|
714
|
-
* properties are set for every connection.
|
|
715
|
-
* @param key the keyword by which the request is known (e.g., "Accept").
|
|
716
|
-
* @return the value of the default request property
 for the specified key.
|
|
717
|
-
* @see java.net.URLConnection#getRequestProperty(java.lang.String)
|
|
718
|
-
* @deprecated The instance specific getRequestProperty method
 should be used after an appropriate instance of URLConnection
 is obtained.
|
|
719
|
-
* @see #setDefaultRequestProperty(java.lang.String, java.lang.String)
|
|
720
|
-
*/
|
|
721
|
-
getDefaultRequestProperty(key: String | string): string;
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Sets the {@code ContentHandlerFactory} of an
|
|
725
|
-
* application. It can be called at most once by an application.
|
|
726
|
-
* <p>
|
|
727
|
-
* The {@code ContentHandlerFactory} instance is used to
|
|
728
|
-
* construct a content handler from a content type
|
|
729
|
-
* <p>
|
|
730
|
-
* If there is a security manager, this method first calls
|
|
731
|
-
* the security manager's {@code checkSetFactory} method
|
|
732
|
-
* to ensure the operation is allowed.
|
|
733
|
-
* This could result in a SecurityException.
|
|
734
|
-
* @param fac the desired factory.
|
|
735
|
-
* @throws Error if the factory has already been defined.
|
|
736
|
-
* @throws SecurityException if a security manager exists and its
 {@code checkSetFactory} method doesn't allow the operation.
|
|
737
|
-
* @see java.net.ContentHandlerFactory
|
|
738
|
-
* @see java.net.URLConnection#getContent()
|
|
739
|
-
* @see SecurityManager#checkSetFactory
|
|
740
|
-
*/
|
|
741
|
-
setContentHandlerFactory(fac: ContentHandlerFactory): void;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Tries to determine the content type of an object, based
|
|
745
|
-
* on the specified "file" component of a URL.
|
|
746
|
-
* This is a convenience method that can be used by
|
|
747
|
-
* subclasses that override the {@code getContentType} method.
|
|
748
|
-
* @param fname a filename.
|
|
749
|
-
* @return a guess as to what the content type of the object is,
 based upon its file name.
|
|
750
|
-
* @see java.net.URLConnection#getContentType()
|
|
751
|
-
*/
|
|
752
|
-
guessContentTypeFromName(fname: String | string): string;
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Tries to determine the type of an input stream based on the
|
|
756
|
-
* characters at the beginning of the input stream. This method can
|
|
757
|
-
* be used by subclasses that override the
|
|
758
|
-
* {@code getContentType} method.
|
|
759
|
-
* <p>
|
|
760
|
-
* Ideally, this routine would not be needed. But many
|
|
761
|
-
* {@code http} servers return the incorrect content type; in
|
|
762
|
-
* addition, there are many nonstandard extensions. Direct inspection
|
|
763
|
-
* of the bytes to determine the content type is often more accurate
|
|
764
|
-
* than believing the content type claimed by the {@code http} server.
|
|
765
|
-
* @param is an input stream that supports marks.
|
|
766
|
-
* @return a guess at the content type, or {@code null} if none
 can be determined.
|
|
767
|
-
* @throws IOException if an I/O error occurs while reading the
 input stream.
|
|
768
|
-
* @see java.io.InputStream#mark(int)
|
|
769
|
-
* @see java.io.InputStream#markSupported()
|
|
770
|
-
* @see java.net.URLConnection#getContentType()
|
|
771
|
-
*/
|
|
772
|
-
guessContentTypeFromStream(is: InputStream): string;
|
|
773
648
|
};
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
getFileNameMap: function getFileNameMap() {},
|
|
9
|
-
setFileNameMap: function setFileNameMap() {},
|
|
10
8
|
connect: function connect() {},
|
|
11
9
|
setConnectTimeout: function setConnectTimeout() {},
|
|
12
10
|
getConnectTimeout: function getConnectTimeout() {},
|
|
@@ -37,8 +35,6 @@ var _default = {
|
|
|
37
35
|
getDoOutput: function getDoOutput() {},
|
|
38
36
|
setAllowUserInteraction: function setAllowUserInteraction() {},
|
|
39
37
|
getAllowUserInteraction: function getAllowUserInteraction() {},
|
|
40
|
-
setDefaultAllowUserInteraction: function setDefaultAllowUserInteraction() {},
|
|
41
|
-
getDefaultAllowUserInteraction: function getDefaultAllowUserInteraction() {},
|
|
42
38
|
setUseCaches: function setUseCaches() {},
|
|
43
39
|
getUseCaches: function getUseCaches() {},
|
|
44
40
|
setIfModifiedSince: function setIfModifiedSince() {},
|
|
@@ -48,11 +44,6 @@ var _default = {
|
|
|
48
44
|
setRequestProperty: function setRequestProperty() {},
|
|
49
45
|
addRequestProperty: function addRequestProperty() {},
|
|
50
46
|
getRequestProperty: function getRequestProperty() {},
|
|
51
|
-
getRequestProperties: function getRequestProperties() {}
|
|
52
|
-
setDefaultRequestProperty: function setDefaultRequestProperty() {},
|
|
53
|
-
getDefaultRequestProperty: function getDefaultRequestProperty() {},
|
|
54
|
-
setContentHandlerFactory: function setContentHandlerFactory() {},
|
|
55
|
-
guessContentTypeFromName: function guessContentTypeFromName() {},
|
|
56
|
-
guessContentTypeFromStream: function guessContentTypeFromStream() {}
|
|
47
|
+
getRequestProperties: function getRequestProperties() {}
|
|
57
48
|
};
|
|
58
49
|
exports["default"] = _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import type { Path } from "../../file/Path";
|
|
2
|
-
import type { Set } from "../../../util/Set";
|
|
3
|
-
import type { ExecutorService } from "../../../util/concurrent/ExecutorService";
|
|
4
|
-
import type { FileAttribute } from "../../file/attribute/FileAttribute";
|
|
5
|
-
import type { OpenOption } from "../../file/OpenOption";
|
|
6
|
-
|
|
7
1
|
import type { CompletionHandler } from "../CompletionHandler";
|
|
8
2
|
import type { Future } from "../../../util/concurrent/Future";
|
|
9
3
|
import type { FileLock } from "../FileLock";
|
|
@@ -86,136 +80,6 @@ import type { AsynchronousChannel } from "../AsynchronousChannel";
|
|
|
86
80
|
*/
|
|
87
81
|
export type AsynchronousFileChannel = Object &
|
|
88
82
|
AsynchronousChannel & {
|
|
89
|
-
/**
|
|
90
|
-
* Opens or creates a file for reading and/or writing, returning an
|
|
91
|
-
* asynchronous file channel to access the file.
|
|
92
|
-
*
|
|
93
|
-
* <p> The {@code options} parameter determines how the file is opened.
|
|
94
|
-
* The {@link StandardOpenOption#READ READ} and {@link StandardOpenOption#WRITE
|
|
95
|
-
* WRITE} options determines if the file should be opened for reading and/or
|
|
96
|
-
* writing. If neither option is contained in the array then an existing file
|
|
97
|
-
* is opened for reading.
|
|
98
|
-
*
|
|
99
|
-
* <p> In addition to {@code READ} and {@code WRITE}, the following options
|
|
100
|
-
* may be present:
|
|
101
|
-
*
|
|
102
|
-
* <table border=1 cellpadding=5 summary="">
|
|
103
|
-
* <tr> <th>Option</th> <th>Description</th> </tr>
|
|
104
|
-
* <tr>
|
|
105
|
-
* <td> {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} </td>
|
|
106
|
-
* <td> When opening an existing file, the file is first truncated to a
|
|
107
|
-
* size of 0 bytes. This option is ignored when the file is opened only
|
|
108
|
-
* for reading.</td>
|
|
109
|
-
* </tr>
|
|
110
|
-
* <tr>
|
|
111
|
-
* <td> {@link StandardOpenOption#CREATE_NEW CREATE_NEW} </td>
|
|
112
|
-
* <td> If this option is present then a new file is created, failing if
|
|
113
|
-
* the file already exists. When creating a file the check for the
|
|
114
|
-
* existence of the file and the creation of the file if it does not exist
|
|
115
|
-
* is atomic with respect to other file system operations. This option is
|
|
116
|
-
* ignored when the file is opened only for reading. </td>
|
|
117
|
-
* </tr>
|
|
118
|
-
* <tr>
|
|
119
|
-
* <td > {@link StandardOpenOption#CREATE CREATE} </td>
|
|
120
|
-
* <td> If this option is present then an existing file is opened if it
|
|
121
|
-
* exists, otherwise a new file is created. When creating a file the check
|
|
122
|
-
* for the existence of the file and the creation of the file if it does
|
|
123
|
-
* not exist is atomic with respect to other file system operations. This
|
|
124
|
-
* option is ignored if the {@code CREATE_NEW} option is also present or
|
|
125
|
-
* the file is opened only for reading. </td>
|
|
126
|
-
* </tr>
|
|
127
|
-
* <tr>
|
|
128
|
-
* <td > {@link StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} </td>
|
|
129
|
-
* <td> When this option is present then the implementation makes a
|
|
130
|
-
* <em>best effort</em> attempt to delete the file when closed by the
|
|
131
|
-
* the {@link #close close} method. If the {@code close} method is not
|
|
132
|
-
* invoked then a <em>best effort</em> attempt is made to delete the file
|
|
133
|
-
* when the Java virtual machine terminates. </td>
|
|
134
|
-
* </tr>
|
|
135
|
-
* <tr>
|
|
136
|
-
* <td>{@link StandardOpenOption#SPARSE SPARSE} </td>
|
|
137
|
-
* <td> When creating a new file this option is a <em>hint</em> that the
|
|
138
|
-
* new file will be sparse. This option is ignored when not creating
|
|
139
|
-
* a new file. </td>
|
|
140
|
-
* </tr>
|
|
141
|
-
* <tr>
|
|
142
|
-
* <td> {@link StandardOpenOption#SYNC SYNC} </td>
|
|
143
|
-
* <td> Requires that every update to the file's content or metadata be
|
|
144
|
-
* written synchronously to the underlying storage device. (see <a
|
|
145
|
-
* href="../file/package-summary.html#integrity"> Synchronized I/O file
|
|
146
|
-
* integrity</a>). </td>
|
|
147
|
-
* </tr>
|
|
148
|
-
* <tr>
|
|
149
|
-
* <td> {@link StandardOpenOption#DSYNC DSYNC} </td>
|
|
150
|
-
* <td> Requires that every update to the file's content be written
|
|
151
|
-
* synchronously to the underlying storage device. (see <a
|
|
152
|
-
* href="../file/package-summary.html#integrity"> Synchronized I/O file
|
|
153
|
-
* integrity</a>). </td>
|
|
154
|
-
* </tr>
|
|
155
|
-
* </table>
|
|
156
|
-
*
|
|
157
|
-
* <p> An implementation may also support additional options.
|
|
158
|
-
*
|
|
159
|
-
* <p> The {@code executor} parameter is the {@link ExecutorService} to
|
|
160
|
-
* which tasks are submitted to handle I/O events and dispatch completion
|
|
161
|
-
* results for operations initiated on resulting channel.
|
|
162
|
-
* The nature of these tasks is highly implementation specific and so care
|
|
163
|
-
* should be taken when configuring the {@code Executor}. Minimally it
|
|
164
|
-
* should support an unbounded work queue and should not run tasks on the
|
|
165
|
-
* caller thread of the {@link ExecutorService#execute execute} method.
|
|
166
|
-
* Shutting down the executor service while the channel is open results in
|
|
167
|
-
* unspecified behavior.
|
|
168
|
-
*
|
|
169
|
-
* <p> The {@code attrs} parameter is an optional array of file {@link
|
|
170
|
-
* FileAttribute file-attributes} to set atomically when creating the file.
|
|
171
|
-
*
|
|
172
|
-
* <p> The new channel is created by invoking the {@link
|
|
173
|
-
* FileSystemProvider#newFileChannel newFileChannel} method on the
|
|
174
|
-
* provider that created the {@code Path}.
|
|
175
|
-
* @param file
 The path of the file to open or create
|
|
176
|
-
* @param options
 Options specifying how the file is opened
|
|
177
|
-
* @param executor
 The thread pool or {@code null} to associate the channel with
 the default thread pool
|
|
178
|
-
* @param attrs
 An optional list of file attributes to set atomically when
 creating the file
|
|
179
|
-
* @return A new asynchronous file channel
|
|
180
|
-
* @throws IllegalArgumentException
 If the set contains an invalid combination of options
|
|
181
|
-
* @throws UnsupportedOperationException
 If the {@code file} is associated with a provider that does not
 support creating asynchronous file channels, or an unsupported
 open option is specified, or the array contains an attribute that
 cannot be set atomically when creating the file
|
|
182
|
-
* @throws IOException
 If an I/O error occurs
|
|
183
|
-
* @throws SecurityException
 If a security manager is installed and it denies an
 unspecified permission required by the implementation.
 In the case of the default provider, the {@link
 SecurityManager#checkRead(String)} method is invoked to check
 read access if the file is opened for reading. The {@link
 SecurityManager#checkWrite(String)} method is invoked to check
 write access if the file is opened for writing
|
|
184
|
-
*/
|
|
185
|
-
open(
|
|
186
|
-
file: Path,
|
|
187
|
-
options: Set | unknown[],
|
|
188
|
-
executor: ExecutorService,
|
|
189
|
-
attrs: FileAttribute[]
|
|
190
|
-
): AsynchronousFileChannel;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Opens or creates a file for reading and/or writing, returning an
|
|
194
|
-
* asynchronous file channel to access the file.
|
|
195
|
-
*
|
|
196
|
-
* <p> An invocation of this method behaves in exactly the same way as the
|
|
197
|
-
* invocation
|
|
198
|
-
* <pre>
|
|
199
|
-
* ch.{@link #open(Path,Set,ExecutorService,FileAttribute[])
|
|
200
|
-
* open}(file, opts, null, new FileAttribute<?>[0]);
|
|
201
|
-
* </pre>
|
|
202
|
-
* where {@code opts} is a {@code Set} containing the options specified to
|
|
203
|
-
* this method.
|
|
204
|
-
*
|
|
205
|
-
* <p> The resulting channel is associated with default thread pool to which
|
|
206
|
-
* tasks are submitted to handle I/O events and dispatch to completion
|
|
207
|
-
* handlers that consume the result of asynchronous operations performed on
|
|
208
|
-
* the resulting channel.
|
|
209
|
-
* @param file
 The path of the file to open or create
|
|
210
|
-
* @param options
 Options specifying how the file is opened
|
|
211
|
-
* @return A new asynchronous file channel
|
|
212
|
-
* @throws IllegalArgumentException
 If the set contains an invalid combination of options
|
|
213
|
-
* @throws UnsupportedOperationException
 If the {@code file} is associated with a provider that does not
 support creating file channels, or an unsupported open option is
 specified
|
|
214
|
-
* @throws IOException
 If an I/O error occurs
|
|
215
|
-
* @throws SecurityException
 If a security manager is installed and it denies an
 unspecified permission required by the implementation.
 In the case of the default provider, the {@link
 SecurityManager#checkRead(String)} method is invoked to check
 read access if the file is opened for reading. The {@link
 SecurityManager#checkWrite(String)} method is invoked to check
 write access if the file is opened for writing
|
|
216
|
-
*/
|
|
217
|
-
open(file: Path, options: OpenOption[]): AsynchronousFileChannel;
|
|
218
|
-
|
|
219
83
|
/**
|
|
220
84
|
* Returns the current size of this channel's file.
|
|
221
85
|
* @return The current size of this channel's file, measured in bytes
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type { Path } from "../../file/Path";
|
|
2
|
-
import type { Set } from "../../../util/Set";
|
|
3
|
-
import type { FileAttribute } from "../../file/attribute/FileAttribute";
|
|
4
|
-
import type { OpenOption } from "../../file/OpenOption";
|
|
5
|
-
|
|
6
1
|
import type { WritableByteChannel } from "../WritableByteChannel";
|
|
7
2
|
import type { ReadableByteChannel } from "../ReadableByteChannel";
|
|
8
3
|
import type { MapMode } from "../FileChannel.MapMode";
|
|
@@ -131,129 +126,6 @@ export type FileChannel = AbstractInterruptibleChannel &
|
|
|
131
126
|
GatheringByteChannel &
|
|
132
127
|
ScatteringByteChannel & {
|
|
133
128
|
/**
|
|
134
|
-
* Opens or creates a file, returning a file channel to access the file.
|
|
135
|
-
*
|
|
136
|
-
* <p> The {@code options} parameter determines how the file is opened.
|
|
137
|
-
* The {@link StandardOpenOption#READ READ} and {@link StandardOpenOption#WRITE
|
|
138
|
-
* WRITE} options determine if the file should be opened for reading and/or
|
|
139
|
-
* writing. If neither option (or the {@link StandardOpenOption#APPEND APPEND}
|
|
140
|
-
* option) is contained in the array then the file is opened for reading.
|
|
141
|
-
* By default reading or writing commences at the beginning of the file.
|
|
142
|
-
*
|
|
143
|
-
* <p> In the addition to {@code READ} and {@code WRITE}, the following
|
|
144
|
-
* options may be present:
|
|
145
|
-
*
|
|
146
|
-
* <table border=1 cellpadding=5 summary="">
|
|
147
|
-
* <tr> <th>Option</th> <th>Description</th> </tr>
|
|
148
|
-
* <tr>
|
|
149
|
-
* <td> {@link StandardOpenOption#APPEND APPEND} </td>
|
|
150
|
-
* <td> If this option is present then the file is opened for writing and
|
|
151
|
-
* each invocation of the channel's {@code write} method first advances
|
|
152
|
-
* the position to the end of the file and then writes the requested
|
|
153
|
-
* data. Whether the advancement of the position and the writing of the
|
|
154
|
-
* data are done in a single atomic operation is system-dependent and
|
|
155
|
-
* therefore unspecified. This option may not be used in conjunction
|
|
156
|
-
* with the {@code READ} or {@code TRUNCATE_EXISTING} options. </td>
|
|
157
|
-
* </tr>
|
|
158
|
-
* <tr>
|
|
159
|
-
* <td> {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} </td>
|
|
160
|
-
* <td> If this option is present then the existing file is truncated to
|
|
161
|
-
* a size of 0 bytes. This option is ignored when the file is opened only
|
|
162
|
-
* for reading. </td>
|
|
163
|
-
* </tr>
|
|
164
|
-
* <tr>
|
|
165
|
-
* <td> {@link StandardOpenOption#CREATE_NEW CREATE_NEW} </td>
|
|
166
|
-
* <td> If this option is present then a new file is created, failing if
|
|
167
|
-
* the file already exists. When creating a file the check for the
|
|
168
|
-
* existence of the file and the creation of the file if it does not exist
|
|
169
|
-
* is atomic with respect to other file system operations. This option is
|
|
170
|
-
* ignored when the file is opened only for reading. </td>
|
|
171
|
-
* </tr>
|
|
172
|
-
* <tr>
|
|
173
|
-
* <td > {@link StandardOpenOption#CREATE CREATE} </td>
|
|
174
|
-
* <td> If this option is present then an existing file is opened if it
|
|
175
|
-
* exists, otherwise a new file is created. When creating a file the check
|
|
176
|
-
* for the existence of the file and the creation of the file if it does
|
|
177
|
-
* not exist is atomic with respect to other file system operations. This
|
|
178
|
-
* option is ignored if the {@code CREATE_NEW} option is also present or
|
|
179
|
-
* the file is opened only for reading. </td>
|
|
180
|
-
* </tr>
|
|
181
|
-
* <tr>
|
|
182
|
-
* <td > {@link StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} </td>
|
|
183
|
-
* <td> When this option is present then the implementation makes a
|
|
184
|
-
* <em>best effort</em> attempt to delete the file when closed by the
|
|
185
|
-
* the {@link #close close} method. If the {@code close} method is not
|
|
186
|
-
* invoked then a <em>best effort</em> attempt is made to delete the file
|
|
187
|
-
* when the Java virtual machine terminates. </td>
|
|
188
|
-
* </tr>
|
|
189
|
-
* <tr>
|
|
190
|
-
* <td>{@link StandardOpenOption#SPARSE SPARSE} </td>
|
|
191
|
-
* <td> When creating a new file this option is a <em>hint</em> that the
|
|
192
|
-
* new file will be sparse. This option is ignored when not creating
|
|
193
|
-
* a new file. </td>
|
|
194
|
-
* </tr>
|
|
195
|
-
* <tr>
|
|
196
|
-
* <td> {@link StandardOpenOption#SYNC SYNC} </td>
|
|
197
|
-
* <td> Requires that every update to the file's content or metadata be
|
|
198
|
-
* written synchronously to the underlying storage device. (see <a
|
|
199
|
-
* href="../file/package-summary.html#integrity"> Synchronized I/O file
|
|
200
|
-
* integrity</a>). </td>
|
|
201
|
-
* </tr>
|
|
202
|
-
* <tr>
|
|
203
|
-
* <td> {@link StandardOpenOption#DSYNC DSYNC} </td>
|
|
204
|
-
* <td> Requires that every update to the file's content be written
|
|
205
|
-
* synchronously to the underlying storage device. (see <a
|
|
206
|
-
* href="../file/package-summary.html#integrity"> Synchronized I/O file
|
|
207
|
-
* integrity</a>). </td>
|
|
208
|
-
* </tr>
|
|
209
|
-
* </table>
|
|
210
|
-
*
|
|
211
|
-
* <p> An implementation may also support additional options.
|
|
212
|
-
*
|
|
213
|
-
* <p> The {@code attrs} parameter is an optional array of file {@link
|
|
214
|
-
* FileAttribute file-attributes} to set atomically when creating the file.
|
|
215
|
-
*
|
|
216
|
-
* <p> The new channel is created by invoking the {@link
|
|
217
|
-
* FileSystemProvider#newFileChannel newFileChannel} method on the
|
|
218
|
-
* provider that created the {@code Path}.
|
|
219
|
-
* @param path
 The path of the file to open or create
|
|
220
|
-
* @param options
 Options specifying how the file is opened
|
|
221
|
-
* @param attrs
 An optional list of file attributes to set atomically when
 creating the file
|
|
222
|
-
* @return A new file channel
|
|
223
|
-
* @throws IllegalArgumentException
 If the set contains an invalid combination of options
|
|
224
|
-
* @throws UnsupportedOperationException
 If the {@code path} is associated with a provider that does not
 support creating file channels, or an unsupported open option is
 specified, or the array contains an attribute that cannot be set
 atomically when creating the file
|
|
225
|
-
* @throws IOException
 If an I/O error occurs
|
|
226
|
-
* @throws SecurityException
 If a security manager is installed and it denies an
 unspecified permission required by the implementation.
 In the case of the default provider, the {@link
 SecurityManager#checkRead(String)} method is invoked to check
 read access if the file is opened for reading. The {@link
 SecurityManager#checkWrite(String)} method is invoked to check
 write access if the file is opened for writing
|
|
227
|
-
* @since 1.7
|
|
228
|
-
*/
|
|
229
|
-
open(
|
|
230
|
-
path: Path,
|
|
231
|
-
options: Set | unknown[],
|
|
232
|
-
attrs: FileAttribute[]
|
|
233
|
-
): FileChannel;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Opens or creates a file, returning a file channel to access the file.
|
|
237
|
-
*
|
|
238
|
-
* <p> An invocation of this method behaves in exactly the same way as the
|
|
239
|
-
* invocation
|
|
240
|
-
* <pre>
|
|
241
|
-
* fc.{@link #open(Path,Set,FileAttribute[]) open}(file, opts, new FileAttribute<?>[0]);
|
|
242
|
-
* </pre>
|
|
243
|
-
* where {@code opts} is a set of the options specified in the {@code
|
|
244
|
-
* options} array.
|
|
245
|
-
* @param path
 The path of the file to open or create
|
|
246
|
-
* @param options
 Options specifying how the file is opened
|
|
247
|
-
* @return A new file channel
|
|
248
|
-
* @throws IllegalArgumentException
 If the set contains an invalid combination of options
|
|
249
|
-
* @throws UnsupportedOperationException
 If the {@code path} is associated with a provider that does not
 support creating file channels, or an unsupported open option is
 specified
|
|
250
|
-
* @throws IOException
 If an I/O error occurs
|
|
251
|
-
* @throws SecurityException
 If a security manager is installed and it denies an
 unspecified permission required by the implementation.
 In the case of the default provider, the {@link
 SecurityManager#checkRead(String)} method is invoked to check
 read access if the file is opened for reading. The {@link
 SecurityManager#checkWrite(String)} method is invoked to check
 write access if the file is opened for writing
|
|
252
|
-
* @since 1.7
|
|
253
|
-
*/
|
|
254
|
-
open(path: Path, options: OpenOption[]): FileChannel;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
129
|
* Reads a sequence of bytes from this channel into the given buffer.
|
|
258
130
|
*
|
|
259
131
|
* <p> Bytes are read starting at this channel's current file position, and
|