Class Files
- java.lang.Object
-
- jetbrains.buildServer.java.nio.file.Files
-
public final class Files extends Object
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedReadernewBufferedReader(File path, Charset cs)static FileChannelnewByteChannel(File path, OpenOption... options)static InputStreamnewInputStream(File path, OpenOption... options)static byte[]readAllBytes(File path)static List<String>readAllLines(File path, Charset cs)static longsize(File path)
-
-
-
Method Detail
-
newBufferedReader
@NotNull public static BufferedReader newBufferedReader(@NotNull File path, @NotNull Charset cs) throws IOException
- Throws:
IOException
-
newByteChannel
@NotNull public static FileChannel newByteChannel(@NotNull File path, @NotNull OpenOption... options) throws IOException
- Throws:
IOException
-
newInputStream
@NotNull public static InputStream newInputStream(@NotNull File path, @NotNull OpenOption... options) throws IOException
- Throws:
IOException
-
readAllBytes
@NotNull public static byte[] readAllBytes(@NotNull File path) throws IOException- Throws:
IOException
-
readAllLines
@NotNull public static List<String> readAllLines(@NotNull File path, @NotNull Charset cs) throws IOException
- Throws:
IOException
-
size
public static long size(@NotNull File path) throws IOException- Throws:
IOException
-
-