public interface ResourceReference
Modifier and Type | Method and Description |
---|---|
File |
asFile() |
URL |
asURL() |
String |
getLocation() |
ResourceType |
getResourceType() |
boolean |
isAccessible()
Indicates whether or not the resource is accessible.
|
InputStream |
read() |
File asFile()
null
if the Resource cannot be represented as a FileURL asURL()
null
if the Resource cannot be represented as a URLInputStream read() throws IOException
IOException
- if unable to obtain an InputStream from the resourceboolean isAccessible()
true
if the file can be accessed, false
otherwiseString getLocation()
null
for a Resource that does not have an external location.
For a File or a Directory, this will be the full path name; for a URL it will be the String form of the URLResourceType getResourceType()
Copyright © 2023 Apache NiFi Project. All rights reserved.