public class InitUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(Path dst,
byte[] buf) |
static Die |
die(String why) |
static Die |
die(String why,
Throwable cause) |
static String |
dnOf(String name) |
static String |
domainOf(String name) |
static void |
extract(Path dst,
Class<?> sibling,
String name) |
static String |
hostname() |
static boolean |
isAnyAddress(URI u) |
static boolean |
isLocal(String hostname) |
static void |
mkdir(File file) |
static void |
mkdir(Path path) |
static int |
portOf(URI uri) |
static void |
savePublic(org.eclipse.jgit.storage.file.FileBasedConfig sec) |
static URI |
toURI(String url) |
static String |
username() |
static String |
version() |
public static void savePublic(org.eclipse.jgit.storage.file.FileBasedConfig sec) throws IOException
IOException
public static void mkdir(File file)
public static void mkdir(Path path)
public static String version()
public static String username()
public static String hostname()
public static boolean isLocal(String hostname)
public static void extract(Path dst, Class<?> sibling, String name) throws IOException
IOException
public static void copy(Path dst, byte[] buf) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static URI toURI(String url) throws URISyntaxException
URISyntaxException
public static boolean isAnyAddress(URI u)
public static int portOf(URI uri)