Package ratpack.func
Class Paths2
- java.lang.Object
-
- ratpack.func.Paths2
-
public class Paths2 extends Object
-
-
Constructor Summary
Constructors Constructor Description Paths2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.io.ByteSource
asByteSource(Path path)
static com.google.common.io.CharSource
asCharSource(Path path, Charset charset)
static String
readText(Path path, Charset charset)
-
-
-
Method Detail
-
asByteSource
public static com.google.common.io.ByteSource asByteSource(Path path)
-
asCharSource
public static com.google.common.io.CharSource asCharSource(Path path, Charset charset)
-
readText
public static String readText(Path path, Charset charset) throws IOException
- Throws:
IOException
-
-