public final class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertAccessibleFile(Path filePath,
String descriptor) |
static long |
countReadableFiles(Path root,
boolean recursive) |
static boolean |
isDirectoryNonEmpty(Path path) |
static boolean |
isStandardStream(URL url)
Returns true if the given URL references the standard input/output streams (that is, if it
reads from
System.in and writes to System.out). |
static BufferedInputStream |
newBufferedInputStream(URL url) |
static BufferedOutputStream |
newBufferedOutputStream(URL url) |
static BufferedReader |
newBufferedReader(URL url,
Charset charset) |
static BufferedWriter |
newBufferedWriter(URL url,
Charset charset) |
public static BufferedInputStream newBufferedInputStream(URL url) throws IOException
IOExceptionpublic static BufferedOutputStream newBufferedOutputStream(URL url) throws IOException
IOExceptionpublic static BufferedReader newBufferedReader(URL url, Charset charset) throws IOException
IOExceptionpublic static BufferedWriter newBufferedWriter(URL url, Charset charset) throws IOException
IOExceptionpublic static boolean isDirectoryNonEmpty(Path path)
public static long countReadableFiles(Path root, boolean recursive) throws IOException
IOExceptionpublic static boolean isStandardStream(@NonNull
URL url)
System.in and writes to System.out). Only one such URL exists:
std:/ (see the dsbulk-url module for information on this special url protocol).url - The url to check; must not be null.std, false otherwise.Copyright © 2017–2021 DataStax. All rights reserved.