public class Resource extends Object implements ByteSource, CharSource
| Modifier and Type | Method and Description |
|---|---|
Stream<String> |
lines() |
static Resource |
of(Class<?> contextClass,
String resourceName) |
static Resource |
of(String resourceName) |
InputStream |
openStream() |
List<String> |
readAllLines() |
List<String> |
readAllLines(Charset charset) |
String |
readToString() |
public final Stream<String> lines() throws IOException
lines in interface CharSourceIOExceptionpublic InputStream openStream() throws IOException
openStream in interface ByteSourceIOExceptionpublic final List<String> readAllLines() throws IOException
readAllLines in interface CharSourceIOExceptionpublic final List<String> readAllLines(Charset charset) throws IOException
readAllLines in interface CharSourceIOExceptionpublic final String readToString() throws IOException
readToString in interface CharSourceIOExceptionCopyright © 2016 Objectos Software LTDA. All rights reserved.