public interface Source
Modifier and Type | Method and Description |
---|---|
Source |
append(Source child)
Returns a source whose path concatenates this with a child.
|
File |
file() |
InputStream |
openStream() |
String |
path() |
String |
protocol() |
Reader |
reader() |
Source |
relative(Source source)
Returns a relative source, if this source is a child of a given base.
|
Source |
trim(String suffix)
Looks for a suffix on a path and returns
either the path with the suffix removed
or the original path.
|
Source |
trimOrNull(String suffix)
Looks for a suffix on a path and returns
either the path with the suffix removed
or null.
|
URL |
url() |
URL url()
File file()
String path()
Reader reader() throws IOException
IOException
InputStream openStream() throws IOException
IOException
String protocol()
Source trim(String suffix)
Source trimOrNull(String suffix)
Source append(Source child)
For example,
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.