At the core of this package are the Source/Sink types: ByteSource, CharSource, ByteSink and CharSink. They are
factories for I/O streams that provide many convenience methods that handle both opening and
closing streams for you.
This package is a part of the open-source Guava library. For more information on Sources and Sinks as well as other features of this package, see I/O Explained on the Guava wiki.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ByteArrayDataInput
An extension of |
| public interface | ByteArrayDataOutput
An extension of |
| public interface | |
| public interface | LineProcessor<T extends @Nullable Object>
A callback to be used with the streaming |
| Modifier and Type | Annotation and Description |
|---|---|
| pack-priv @interface | ElementTypesAreNonnullByDefault
Marks all "top-level" types as non-null in a way that is recognized by Kotlin. |
| pack-priv @interface | IgnoreJRERequirement
Disables Animal Sniffer's checking of compatibility with older versions of Java/Android. |
| pack-priv @interface | ParametricNullness
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | AppendableWriter
Writer that places all output on an |
| public abstract class | BaseEncoding
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings. |
| public abstract class | ByteSink
A destination to which bytes can be written, such as a file. |
| public abstract class | ByteSource
A readable source of bytes, such as a file. |
| public class | ByteStreams
Provides utility methods for working with byte arrays and I/O streams. |
| pack-priv class | CharSequenceReader
A |
| public abstract class | CharSink
A destination to which characters can be written, such as a text file. |
| public abstract class | CharSource
A readable source of characters, such as a text file. |
| public class | CharStreams
Provides utility methods for working with character streams. |
| public class | Closeables
Utility methods for working with |
| public class | |
| public class | CountingInputStream
An |
| public class | CountingOutputStream
An OutputStream that counts the number of bytes written. |
| public class | FileBackedOutputStream
An |
| public class | |
| public class | Flushables
Utility methods for working with |
| public class | InsecureRecursiveDeleteException
Exception indicating that a recursive delete can't be performed because the file system does not
have the support necessary to guarantee that it is not vulnerable to race conditions that would
allow it to delete files and directories outside of the directory being deleted (i.e., |
| pack-priv class | Java8Compatibility
Wrappers around |
| pack-priv abstract class | LineBuffer
Package-protected abstract class that implements the line reading algorithm used by |
| public class | LineReader
A class for reading lines of text. |
| public class | LittleEndianDataInputStream
An implementation of |
| public class | LittleEndianDataOutputStream
An implementation of |
| public class | |
| pack-priv class | MultiInputStream
An |
| pack-priv class | MultiReader
A |
| public class | PatternFilenameFilter
File name filter that only accepts files matching a regular expression. |
| pack-priv class | ReaderInputStream
An |
| public class | Resources
Provides utility methods for working with resources in the classpath. |
| pack-priv abstract class | TempFileCreator
Creates temporary files and directories whose permissions are restricted to the current user or, in the case of Android, the current app. |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | FileWriteMode
Modes for opening a file for writing. |
| public enum | RecursiveDeleteOption
Options for use with recursive delete methods ( |