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.
|
Modifier and Type | Method and Description |
---|---|
CharSource |
ByteSource.asCharSource(Charset charset)
Returns a
CharSource view of this byte source that decodes bytes read from this source
as characters using the given Charset . |
static CharSource |
Files.asCharSource(File file,
Charset charset)
Returns a new
CharSource for reading character data from the given
file using the given character set. |
static CharSource |
CharStreams.asCharSource(String string)
Returns a
CharSource that reads the given string value. |
static CharSource |
Resources.asCharSource(URL url,
Charset charset)
Returns a
CharSource that reads from the given URL using the given character set. |
Modifier and Type | Method and Description |
---|---|
ByteSource |
BaseEncoding.decodingSource(CharSource encodedSource)
Returns a
ByteSource that reads base-encoded bytes from the specified
CharSource . |
Copyright © 2010-2013. All Rights Reserved.