| 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 representpublic UrlDataFile(DataFolder folder, URL url)
public InputStream open() throws IOException
DataFileopen in interface DataFileIOException - if the file is not accessiblepublic DataFolder getFolder()
public URL getUrl()
Copyright © 2026 fastnate.org. All rights reserved.