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 | Class and Description |
---|---|
class |
ByteSource
A readable source of bytes, such as a file.
|
class |
CharSource
A readable source of characters, such as a text file.
|
Modifier and Type | Method and Description |
---|---|
static InputSupplier<InputStream> |
ByteStreams.join(InputSupplier<? extends InputStream>... suppliers)
Deprecated.
Use
ByteSource.concat(ByteSource[]) instead. This
method is scheduled for removal in Guava 18.0. |
static InputSupplier<InputStream> |
ByteStreams.join(Iterable<? extends InputSupplier<? extends InputStream>> suppliers)
Deprecated.
Use
ByteSource.concat(Iterable) instead. This method
is scheduled for removal in Guava 18.0. |
static InputSupplier<ByteArrayInputStream> |
ByteStreams.newInputStreamSupplier(byte[] b)
Deprecated.
Use
ByteSource.wrap(byte[]) instead. This method is
scheduled for removal in Guava 18.0. |
static InputSupplier<ByteArrayInputStream> |
ByteStreams.newInputStreamSupplier(byte[] b,
int off,
int len)
Deprecated.
Use
ByteSource.wrap(b).slice(off, len) instead. This
method is scheduled for removal in Guava 18.0. |
static InputSupplier<FileInputStream> |
Files.newInputStreamSupplier(File file)
Deprecated.
Use
Files.asByteSource(File) . This method is scheduled for
removal in Guava 18.0. |
static InputSupplier<InputStreamReader> |
Files.newReaderSupplier(File file,
Charset charset)
Deprecated.
Use
Files.asCharSource(File, Charset) . This method is
scheduled for removal in Guava 18.0. |
static InputSupplier<InputStreamReader> |
CharStreams.newReaderSupplier(InputSupplier<? extends InputStream> in,
Charset charset)
Deprecated.
Use
ByteSource.asCharSource(Charset) instead. This
method is scheduled for removal in Guava 18.0. |
static InputSupplier<StringReader> |
CharStreams.newReaderSupplier(String value)
Deprecated.
Use
CharSource.wrap(CharSequence) instead. This method
is scheduled for removal in Guava 18.0. |
static InputSupplier<InputStream> |
ByteStreams.slice(InputSupplier<? extends InputStream> supplier,
long offset,
long length)
Deprecated.
Use
ByteSource#slice(int, int) instead. This method is
scheduled for removal in Guava 18.0. |
Modifier and Type | Method and Description |
---|---|
static ByteSource |
ByteStreams.asByteSource(InputSupplier<? extends InputStream> supplier)
Deprecated.
Convert all
InputSupplier<? extends InputStream>
implementations to extend ByteSource or provide a method for
viewing the object as a ByteSource . This method is scheduled
for removal in Guava 18.0. |
static CharSource |
CharStreams.asCharSource(InputSupplier<? extends Readable> supplier)
Deprecated.
Convert all
InputSupplier<? extends Readable>
implementations to extend CharSource or provide a method for
viewing the object as a CharSource . This method is scheduled
for removal in Guava 18.0. |
static InputSupplier<InputStream> |
ByteStreams.join(InputSupplier<? extends InputStream>... suppliers)
Deprecated.
Use
ByteSource.concat(ByteSource[]) instead. This
method is scheduled for removal in Guava 18.0. |
static InputSupplier<InputStreamReader> |
CharStreams.newReaderSupplier(InputSupplier<? extends InputStream> in,
Charset charset)
Deprecated.
Use
ByteSource.asCharSource(Charset) instead. This
method is scheduled for removal in Guava 18.0. |
static <R extends Readable & Closeable> |
CharStreams.readFirstLine(InputSupplier<R> supplier)
Deprecated.
Use
CharSource.readFirstLine() instead. This method is
scheduled for removal in Guava 18.0. |
static <R extends Readable & Closeable> |
CharStreams.readLines(InputSupplier<R> supplier)
Deprecated.
Use
CharSource.readLines() instead, but note that it
returns an ImmutableList . This method is scheduled for removal
in Guava 18.0. |
static InputSupplier<InputStream> |
ByteStreams.slice(InputSupplier<? extends InputStream> supplier,
long offset,
long length)
Deprecated.
Use
ByteSource#slice(int, int) instead. This method is
scheduled for removal in Guava 18.0. |
Modifier and Type | Method and Description |
---|---|
static InputSupplier<InputStream> |
ByteStreams.join(Iterable<? extends InputSupplier<? extends InputStream>> suppliers)
Deprecated.
Use
ByteSource.concat(Iterable) instead. This method
is scheduled for removal in Guava 18.0. |
Copyright © 2010–2015. All rights reserved.