public class Resources
extends java.lang.Object
| Constructor and Description |
|---|
Resources(Env env) |
Resources(java.lang.String root) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.nio.file.Path path) |
java.nio.file.Path |
findExistingPath(java.lang.String uri) |
boolean |
isPublic(java.nio.file.Path path) |
java.lang.String |
read(java.nio.file.Path path,
java.nio.charset.Charset charset) |
byte[] |
readBytes(java.nio.file.Path path) |
static java.lang.String |
relativePath(java.nio.file.Path parent,
java.nio.file.Path path) |
SourceFile |
sourceFile(java.nio.file.Path path) |
static java.lang.String |
toUnixString(java.nio.file.Path path) |
public Resources(Env env)
public Resources(java.lang.String root)
public SourceFile sourceFile(java.nio.file.Path path) throws java.io.IOException
java.io.IOExceptionpublic boolean isPublic(java.nio.file.Path path)
public java.nio.file.Path findExistingPath(java.lang.String uri)
public boolean exists(java.nio.file.Path path)
public java.lang.String read(java.nio.file.Path path,
java.nio.charset.Charset charset)
throws java.io.IOException
java.io.IOExceptionpublic byte[] readBytes(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String relativePath(java.nio.file.Path parent,
java.nio.file.Path path)
public static java.lang.String toUnixString(java.nio.file.Path path)
Copyright © 2015. All Rights Reserved.