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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forResource
findByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByName
public 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 © 2008–2024 The Apache Software Foundation. All rights reserved.