public class Readables extends Object
CharReadable instances.
There are support for compressed files as well for those methods accepting a File argument.
| Modifier and Type | Field and Description |
|---|---|
static CharReadable |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static CharReadable |
files(Charset charset,
File... files) |
static CharReadable |
sources(org.neo4j.collection.RawIterator<Reader,IOException> sources) |
static CharReadable |
sources(Reader... sources) |
static CharReadable |
wrap(InputStream stream,
String sourceName,
Charset charset) |
static CharReadable |
wrap(Reader reader)
Remember that the
Object.toString() must provide a description of the data source. |
public static final CharReadable EMPTY
public static CharReadable wrap(InputStream stream, String sourceName, Charset charset) throws IOException
IOExceptionpublic static CharReadable wrap(Reader reader)
Object.toString() must provide a description of the data source.public static CharReadable files(Charset charset, File... files) throws IOException
IOExceptionpublic static CharReadable sources(Reader... sources) throws IOException
IOExceptionpublic static CharReadable sources(org.neo4j.collection.RawIterator<Reader,IOException> sources) throws IOException
IOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.