@@ -62,7 +62,7 @@ public class PathResource extends AbstractResource implements WritableResource {
62
62
63
63
64
64
/**
65
- * Create a new PathResource from a Path handle.
65
+ * Create a new {@code PathResource} from a {@link Path} handle.
66
66
* <p>Note: Unlike {@link FileSystemResource}, when building relative resources
67
67
* via {@link #createRelative}, the relative path will be built <i>underneath</i>
68
68
* the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"!
@@ -74,7 +74,7 @@ public PathResource(Path path) {
74
74
}
75
75
76
76
/**
77
- * Create a new PathResource from a Path handle .
77
+ * Create a new {@code PathResource} from a path string .
78
78
* <p>Note: Unlike {@link FileSystemResource}, when building relative resources
79
79
* via {@link #createRelative}, the relative path will be built <i>underneath</i>
80
80
* the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"!
@@ -87,7 +87,7 @@ public PathResource(String path) {
87
87
}
88
88
89
89
/**
90
- * Create a new PathResource from a Path handle .
90
+ * Create a new {@code PathResource} from a {@link URI} .
91
91
* <p>Note: Unlike {@link FileSystemResource}, when building relative resources
92
92
* via {@link #createRelative}, the relative path will be built <i>underneath</i>
93
93
* the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"!
@@ -128,7 +128,7 @@ public boolean isReadable() {
128
128
}
129
129
130
130
/**
131
- * This implementation opens a InputStream for the underlying file.
131
+ * This implementation opens an {@link InputStream} for the underlying file.
132
132
* @see java.nio.file.spi.FileSystemProvider#newInputStream(Path, OpenOption...)
133
133
*/
134
134
@ Override
@@ -174,7 +174,7 @@ public boolean isWritable() {
174
174
}
175
175
176
176
/**
177
- * This implementation opens a OutputStream for the underlying file.
177
+ * This implementation opens an {@link OutputStream} for the underlying file.
178
178
* @see java.nio.file.spi.FileSystemProvider#newOutputStream(Path, OpenOption...)
179
179
*/
180
180
@ Override
@@ -186,7 +186,7 @@ public OutputStream getOutputStream() throws IOException {
186
186
}
187
187
188
188
/**
189
- * This implementation returns a URL for the underlying file.
189
+ * This implementation returns a {@link URL} for the underlying file.
190
190
* @see java.nio.file.Path#toUri()
191
191
* @see java.net.URI#toURL()
192
192
*/
@@ -196,7 +196,7 @@ public URL getURL() throws IOException {
196
196
}
197
197
198
198
/**
199
- * This implementation returns a URI for the underlying file.
199
+ * This implementation returns a {@link URI} for the underlying file.
200
200
* @see java.nio.file.Path#toUri()
201
201
*/
202
202
@ Override
@@ -213,7 +213,7 @@ public boolean isFile() {
213
213
}
214
214
215
215
/**
216
- * This implementation returns the underlying File reference.
216
+ * This implementation returns the underlying {@link File} reference.
217
217
*/
218
218
@ Override
219
219
public File getFile () throws IOException {
@@ -228,7 +228,7 @@ public File getFile() throws IOException {
228
228
}
229
229
230
230
/**
231
- * This implementation opens a Channel for the underlying file.
231
+ * This implementation opens a {@link ReadableByteChannel} for the underlying file.
232
232
* @see Files#newByteChannel(Path, OpenOption...)
233
233
*/
234
234
@ Override
@@ -242,7 +242,7 @@ public ReadableByteChannel readableChannel() throws IOException {
242
242
}
243
243
244
244
/**
245
- * This implementation opens a Channel for the underlying file.
245
+ * This implementation opens a {@link WritableByteChannel} for the underlying file.
246
246
* @see Files#newByteChannel(Path, OpenOption...)
247
247
*/
248
248
@ Override
@@ -259,7 +259,7 @@ public long contentLength() throws IOException {
259
259
}
260
260
261
261
/**
262
- * This implementation returns the underlying File 's timestamp.
262
+ * This implementation returns the underlying file 's timestamp.
263
263
* @see java.nio.file.Files#getLastModifiedTime(Path, java.nio.file.LinkOption...)
264
264
*/
265
265
@ Override
@@ -270,7 +270,7 @@ public long lastModified() throws IOException {
270
270
}
271
271
272
272
/**
273
- * This implementation creates a PathResource, applying the given path
273
+ * This implementation creates a {@link PathResource} , applying the given path
274
274
* relative to the path of the underlying file of this resource descriptor.
275
275
* @see java.nio.file.Path#resolve(String)
276
276
*/
@@ -295,7 +295,7 @@ public String getDescription() {
295
295
296
296
297
297
/**
298
- * This implementation compares the underlying Path references.
298
+ * This implementation compares the underlying {@link Path} references.
299
299
*/
300
300
@ Override
301
301
public boolean equals (@ Nullable Object obj ) {
0 commit comments