Modifier and Type | Field and Description |
---|---|
private DataFolder |
folder
The parent folder, if any.
|
private URL |
url
The represented file as URL.
|
Constructor and Description |
---|
UrlDataFile(DataFolder folder,
URL url) |
UrlDataFile(URL url)
Creates a new file from an URL without information about the parent folder.
|
Modifier and Type | Method and Description |
---|---|
DataFolder |
getFolder()
The parent folder, if any.
|
String |
getName()
The name of this file.
|
URL |
getUrl()
The represented file as URL.
|
InputStream |
open()
Opens this file for input.
|
private final DataFolder folder
private final URL url
public UrlDataFile(URL url)
url
- the URL of the file we represent@ConstructorProperties(value={"folder","url"}) @Generated(value="lombok") public UrlDataFile(DataFolder folder, URL url)
public InputStream open() throws IOException
DataFile
open
in interface DataFile
IOException
- if the file is not accessible@Generated(value="lombok") public DataFolder getFolder()
@Generated(value="lombok") public URL getUrl()
Copyright © 2022 fastnate.org. All rights reserved.