Constructor and Description |
---|
FileSource(File file)
Creates a new source backed by the specified file.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Gets the file of this source.
|
InputStream |
getInputStream()
Gets a byte stream to the source contents.
|
String |
getLocation()
Provides a user-friendly hint about the location of the source.
|
String |
toString() |
public FileSource(File file)
file
- The file, must not be null
.public InputStream getInputStream() throws IOException
Source
getInputStream
in interface Source
null
.IOException
public String getLocation()
Source
getLocation
in interface Source
null
.public File getFile()
null
.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.