public abstract class Sources
extends java.lang.Object
Source
.Modifier and Type | Class and Description |
---|---|
private static class |
Sources.FileSource
Implementation of
Source . |
Modifier | Constructor and Description |
---|---|
private |
Sources() |
Modifier and Type | Method and Description |
---|---|
static Source |
file(java.io.File baseDirectory,
java.lang.String fileName) |
private static boolean |
isFile(Source source) |
static Source |
of(java.io.File file) |
static Source |
of(java.net.URL url) |
private static java.lang.String |
trimOrNull(java.lang.String s,
java.lang.String suffix)
Looks for a suffix on a path and returns
either the path with the suffix removed
or null.
|
static Source |
url(java.lang.String url) |
public static Source of(java.io.File file)
public static Source of(java.net.URL url)
public static Source file(java.io.File baseDirectory, java.lang.String fileName)
public static Source url(java.lang.String url)
private static java.lang.String trimOrNull(java.lang.String s, java.lang.String suffix)
private static boolean isFile(Source source)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.