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, getNameList, getNames, ofName, removeByName
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–2022 The Apache Software Foundation. All rights reserved.