public class Source extends Object
Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected InputStream |
inputStream |
protected Reader |
reader |
Constructor and Description |
---|
Source(File file) |
Source(InputStream inputStream) |
Source(Reader reader) |
Modifier and Type | Method and Description |
---|---|
Reader |
createReader(byte[] cachedBytes)
If cachedBytes are not null, returns a Reader created from the cachedBytes.
|
File |
file() |
static Source |
fromFile(String file) |
static Source |
fromString(String s) |
static Source |
fromUrl(String url) |
InputStream |
inputStream() |
Reader |
reader() |
protected final File file
protected final Reader reader
protected final InputStream inputStream
public Source(File file)
public Source(Reader reader)
public Source(InputStream inputStream)
public static Source fromUrl(String url) throws IOException
IOException
public File file()
public Reader reader()
public InputStream inputStream()
public Reader createReader(byte[] cachedBytes) throws IOException
IOException
Copyright © 2019. All rights reserved.