public class NCoreIOUtils extends Object
| Constructor and Description |
|---|
NCoreIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(File ff,
File to,
net.thevpc.nuts.log.NLog bLog) |
static void |
copy(URL url,
File to,
net.thevpc.nuts.log.NLog bLog) |
static File |
createFile(String parent,
String child) |
static Long |
detectLength(InputStream is) |
static String |
expandPath(String path,
String base,
Function<String,String> pathExpansionConverter) |
static String |
formatURL(URL url) |
static String |
getAbsolutePath(String path) |
static String |
getFileOrDirectoryDigest(Path p) |
static String |
getStoreLocationPath(net.thevpc.nuts.NBootOptions bOptions,
net.thevpc.nuts.NStoreType value) |
static String |
getStreamDigest(InputStream is) |
static String |
getURLDigest(URL url,
net.thevpc.nuts.log.NLog bLog) |
static boolean |
isFileAccessible(Path path,
Instant expireTime,
net.thevpc.nuts.log.NLog bLog) |
static boolean |
isURL(String url) |
static byte[] |
loadStream(InputStream stream,
net.thevpc.nuts.log.NLog bLog) |
static Properties |
loadURLProperties(Path path,
net.thevpc.nuts.log.NLog bLog) |
static Properties |
loadURLProperties(URL url,
File cacheFile,
boolean useCache,
net.thevpc.nuts.log.NLog bLog) |
static InputStream |
openStream(URL url,
net.thevpc.nuts.log.NLog bLog) |
static ByteArrayInputStream |
preloadStream(InputStream stream,
net.thevpc.nuts.log.NLog bLog) |
static InputStream |
resolveInputStream(String url,
net.thevpc.nuts.log.NLog bLog) |
static File |
toFile(String url) |
static File |
toFile(URL url) |
static String |
toRelativePath(String child,
String parent) |
public static Long detectLength(InputStream is)
public static String getStreamDigest(InputStream is)
public static boolean isFileAccessible(Path path, Instant expireTime, net.thevpc.nuts.log.NLog bLog)
public static InputStream resolveInputStream(String url, net.thevpc.nuts.log.NLog bLog)
public static String expandPath(String path, String base, Function<String,String> pathExpansionConverter)
public static String getStoreLocationPath(net.thevpc.nuts.NBootOptions bOptions, net.thevpc.nuts.NStoreType value)
public static InputStream openStream(URL url, net.thevpc.nuts.log.NLog bLog)
public static byte[] loadStream(InputStream stream, net.thevpc.nuts.log.NLog bLog) throws IOException
IOExceptionpublic static ByteArrayInputStream preloadStream(InputStream stream, net.thevpc.nuts.log.NLog bLog) throws IOException
IOExceptionpublic static Properties loadURLProperties(Path path, net.thevpc.nuts.log.NLog bLog)
public static Properties loadURLProperties(URL url, File cacheFile, boolean useCache, net.thevpc.nuts.log.NLog bLog)
public static boolean isURL(String url)
public static void copy(File ff, File to, net.thevpc.nuts.log.NLog bLog) throws IOException
IOExceptionpublic static void copy(URL url, File to, net.thevpc.nuts.log.NLog bLog) throws IOException
IOExceptionCopyright © 2025 vpc open source initiative. All rights reserved.