public class PathResource extends AbstractIoResource<Path>
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
PathResource(Path path) |
PathResource(Path path,
OpenOption... openOptions) |
| Modifier and Type | Method and Description |
|---|---|
OpenOption[] |
getOpenOptions() |
Path |
getPath() |
InputStream |
openInputStream() |
getName, getResourceType, getResourceValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforResourcefindByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByNamepublic PathResource(Path path)
public PathResource(Path path, OpenOption... openOptions)
public Path getPath()
public OpenOption[] getOpenOptions()
public InputStream openInputStream() throws IOException
InputStream for the resource's dataIOException - If failed to open the streamCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.