Package | Description |
---|---|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O; for example input
streams, output streams, readers, writers, and files.
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ByteSource.AsCharSource
A char source that reads bytes from this source and decodes them as characters using a charset.
|
private static class |
CharSource.CharSequenceCharSource |
private static class |
CharSource.ConcatenatedCharSource |
private static class |
CharSource.EmptyCharSource |
private static class |
CharSource.StringCharSource
Subclass specialized for string instances.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<? extends CharSource> |
MultiReader.it |
private java.lang.Iterable<? extends CharSource> |
CharSource.ConcatenatedCharSource.sources |
Modifier and Type | Method and Description |
---|---|
CharSource |
ByteSource.asCharSource(java.nio.charset.Charset charset)
Returns a
CharSource view of this byte source that decodes bytes read from this source
as characters using the given Charset . |
CharSource |
ByteSource.EmptyByteSource.asCharSource(java.nio.charset.Charset charset) |
CharSource |
CharSource.AsByteSource.asCharSource(java.nio.charset.Charset charset) |
CharSource |
MoreFiles.PathByteSource.asCharSource(java.nio.charset.Charset charset) |
static CharSource |
Files.asCharSource(java.io.File file,
java.nio.charset.Charset charset)
Returns a new
CharSource for reading character data from the given file using the given
character set. |
static CharSource |
MoreFiles.asCharSource(java.nio.file.Path path,
java.nio.charset.Charset charset,
java.nio.file.OpenOption... options)
|
static CharSource |
Resources.asCharSource(java.net.URL url,
java.nio.charset.Charset charset)
Returns a
CharSource that reads from the given URL using the given character set. |
static CharSource |
CharSource.concat(CharSource... sources)
Concatenates multiple
CharSource instances into a single source. |
static CharSource |
CharSource.concat(java.lang.Iterable<? extends CharSource> sources)
Concatenates multiple
CharSource instances into a single source. |
static CharSource |
CharSource.concat(java.util.Iterator<? extends CharSource> sources)
Concatenates multiple
CharSource instances into a single source. |
static CharSource |
CharSource.empty()
Returns an immutable
CharSource that contains no characters. |
static CharSource |
CharSource.wrap(java.lang.CharSequence charSequence)
Returns a view of the given character sequence as a
CharSource . |
Modifier and Type | Method and Description |
---|---|
static CharSource |
CharSource.concat(CharSource... sources)
Concatenates multiple
CharSource instances into a single source. |
ByteSource |
BaseEncoding.decodingSource(CharSource encodedSource)
Returns a
ByteSource that reads base-encoded bytes from the specified CharSource . |
Modifier and Type | Method and Description |
---|---|
static CharSource |
CharSource.concat(java.lang.Iterable<? extends CharSource> sources)
Concatenates multiple
CharSource instances into a single source. |
static CharSource |
CharSource.concat(java.util.Iterator<? extends CharSource> sources)
Concatenates multiple
CharSource instances into a single source. |
Constructor and Description |
---|
ConcatenatedCharSource(java.lang.Iterable<? extends CharSource> sources) |
MultiReader(java.util.Iterator<? extends CharSource> readers) |
Modifier and Type | Method and Description |
---|---|
CharSource |
ClassPath.ResourceInfo.asCharSource(java.nio.charset.Charset charset)
Returns a
CharSource view of the resource from which its bytes can be read as
characters decoded with the given charset . |