Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

accept(File, String) - Method in class dev.mccue.guava.io.PatternFilenameFilter
 
ALLOW_INSECURE - Enum constant in enum dev.mccue.guava.io.RecursiveDeleteOption
Specifies that the recursive delete should not throw an exception when it can't be guaranteed that it can be done securely, without vulnerability to race conditions (i.e.
append(CharSequence, File, Charset) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSink(to, charset, FileWriteMode.APPEND).write(from). This method is scheduled to be removed in October 2019.
APPEND - Enum constant in enum dev.mccue.guava.io.FileWriteMode
Specifies that writes to the opened file should append to the end of the file.
asByteSink(File, FileWriteMode...) - Static method in class dev.mccue.guava.io.Files
Returns a new ByteSink for writing bytes to the given file.
asByteSink(Path, OpenOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a view of the given path as a ByteSink.
asByteSource() - Method in class dev.mccue.guava.io.FileBackedOutputStream
Returns a readable ByteSource view of the data that has been written to this stream.
asByteSource(File) - Static method in class dev.mccue.guava.io.Files
Returns a new ByteSource for reading bytes from the given file.
asByteSource(URL) - Static method in class dev.mccue.guava.io.Resources
Returns a ByteSource that reads from the given URL.
asByteSource(Charset) - Method in class dev.mccue.guava.io.CharSource
Returns a ByteSource view of this char source that encodes chars read from this source as bytes using the given Charset.
asByteSource(Path, OpenOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a view of the given path as a ByteSource.
asCharSink(File, Charset, FileWriteMode...) - Static method in class dev.mccue.guava.io.Files
Returns a new CharSink for writing character data to the given file using the given character set.
asCharSink(Charset) - Method in class dev.mccue.guava.io.ByteSink
Returns a CharSink view of this ByteSink that writes characters to this sink as bytes encoded with the given charset.
asCharSink(Path, Charset, OpenOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a view of the given path as a CharSink using the given charset.
asCharSource(File, Charset) - Static method in class dev.mccue.guava.io.Files
Returns a new CharSource for reading character data from the given file using the given character set.
asCharSource(URL, Charset) - Static method in class dev.mccue.guava.io.Resources
Returns a CharSource that reads from the given URL using the given character set.
asCharSource(Charset) - Method in class dev.mccue.guava.io.ByteSource
Returns a CharSource view of this byte source that decodes bytes read from this source as characters using the given Charset.
asCharSource(Path, Charset, OpenOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a view of the given path as a CharSource using the given charset.
asWriter(Appendable) - Static method in class dev.mccue.guava.io.CharStreams
Returns a Writer that sends all output to the given Appendable target.

B

base16() - Static method in class dev.mccue.guava.io.BaseEncoding
The "base16" encoding specified by RFC 4648 section 8, Base 16 Encoding.
base32() - Static method in class dev.mccue.guava.io.BaseEncoding
The "base32" encoding specified by RFC 4648 section 6, Base 32 Encoding.
base32Hex() - Static method in class dev.mccue.guava.io.BaseEncoding
The "base32hex" encoding specified by RFC 4648 section 7, Base 32 Encoding with Extended Hex Alphabet.
base64() - Static method in class dev.mccue.guava.io.BaseEncoding
The "base64" base encoding specified by RFC 4648 section 4, Base 64 Encoding.
base64Url() - Static method in class dev.mccue.guava.io.BaseEncoding
The "base64url" encoding specified by RFC 4648 section 5, Base 64 Encoding with URL and Filename Safe Alphabet, also sometimes referred to as the "web safe Base64." (This is the same as the base 64 encoding with URL and filename safe alphabet from RFC 3548.)
BaseEncoding - Class in dev.mccue.guava.io
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings.
BaseEncoding.DecodingException - Exception in dev.mccue.guava.io
Exception indicating invalid base-encoded input encountered while decoding.
ByteArrayDataInput - Interface in dev.mccue.guava.io
An extension of DataInput for reading from in-memory byte arrays; its methods offer identical functionality but do not throw IOException.
ByteArrayDataOutput - Interface in dev.mccue.guava.io
An extension of DataOutput for writing to in-memory byte arrays; its methods offer identical functionality but do not throw IOException.
ByteProcessor<T extends @Nullable Object> - Interface in dev.mccue.guava.io
A callback interface to process bytes from a stream.
ByteSink - Class in dev.mccue.guava.io
A destination to which bytes can be written, such as a file.
ByteSink() - Constructor for class dev.mccue.guava.io.ByteSink
Constructor for use by subclasses.
ByteSource - Class in dev.mccue.guava.io
A readable source of bytes, such as a file.
ByteSource() - Constructor for class dev.mccue.guava.io.ByteSource
Constructor for use by subclasses.
ByteStreams - Class in dev.mccue.guava.io
Provides utility methods for working with byte arrays and I/O streams.

C

canDecode(CharSequence) - Method in class dev.mccue.guava.io.BaseEncoding
Determines whether the specified character sequence is a valid encoded string according to this encoding.
CharSink - Class in dev.mccue.guava.io
A destination to which characters can be written, such as a text file.
CharSink() - Constructor for class dev.mccue.guava.io.CharSink
Constructor for use by subclasses.
CharSource - Class in dev.mccue.guava.io
A readable source of characters, such as a text file.
CharSource() - Constructor for class dev.mccue.guava.io.CharSource
Constructor for use by subclasses.
CharStreams - Class in dev.mccue.guava.io
Provides utility methods for working with character streams.
close() - Method in class dev.mccue.guava.io.Closer
Closes all Closeable instances that have been added to this Closer.
close() - Method in class dev.mccue.guava.io.CountingOutputStream
 
close() - Method in class dev.mccue.guava.io.FileBackedOutputStream
 
close() - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
 
close(Closeable, boolean) - Static method in class dev.mccue.guava.io.Closeables
Closes a Closeable, with control over whether an IOException may be thrown.
Closeables - Class in dev.mccue.guava.io
Utility methods for working with Closeable objects.
closeQuietly(InputStream) - Static method in class dev.mccue.guava.io.Closeables
Closes the given InputStream, logging any IOException that's thrown rather than propagating it.
closeQuietly(Reader) - Static method in class dev.mccue.guava.io.Closeables
Closes the given Reader, logging any IOException that's thrown rather than propagating it.
Closer - Class in dev.mccue.guava.io
A Closeable that collects Closeable resources and closes them all when it is closed.
concat(ByteSource...) - Static method in class dev.mccue.guava.io.ByteSource
Concatenates multiple ByteSource instances into a single source.
concat(CharSource...) - Static method in class dev.mccue.guava.io.CharSource
Concatenates multiple CharSource instances into a single source.
concat(Iterable<? extends ByteSource>) - Static method in class dev.mccue.guava.io.ByteSource
Concatenates multiple ByteSource instances into a single source.
concat(Iterable<? extends CharSource>) - Static method in class dev.mccue.guava.io.CharSource
Concatenates multiple CharSource instances into a single source.
concat(Iterator<? extends ByteSource>) - Static method in class dev.mccue.guava.io.ByteSource
Concatenates multiple ByteSource instances into a single source.
concat(Iterator<? extends CharSource>) - Static method in class dev.mccue.guava.io.CharSource
Concatenates multiple CharSource instances into a single source.
contentEquals(ByteSource) - Method in class dev.mccue.guava.io.ByteSource
Checks that the contents of this byte source are equal to the contents of the given byte source.
copy(File, File) - Static method in class dev.mccue.guava.io.Files
Copies all the bytes from one file to another.
copy(File, OutputStream) - Static method in class dev.mccue.guava.io.Files
Copies all bytes from a file to an output stream.
copy(File, Charset, Appendable) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSource(from, charset).copyTo(to).
copy(InputStream, OutputStream) - Static method in class dev.mccue.guava.io.ByteStreams
Copies all bytes from the input stream to the output stream.
copy(Readable, Appendable) - Static method in class dev.mccue.guava.io.CharStreams
Copies all characters between the Readable and Appendable objects.
copy(URL, OutputStream) - Static method in class dev.mccue.guava.io.Resources
Copies all bytes from a URL to an output stream.
copy(ReadableByteChannel, WritableByteChannel) - Static method in class dev.mccue.guava.io.ByteStreams
Copies all bytes from the readable channel to the writable channel.
copyTo(ByteSink) - Method in class dev.mccue.guava.io.ByteSource
Copies the contents of this byte source to the given ByteSink.
copyTo(CharSink) - Method in class dev.mccue.guava.io.CharSource
Copies the contents of this source to the given sink.
copyTo(OutputStream) - Method in class dev.mccue.guava.io.ByteSource
Copies the contents of this byte source to the given OutputStream.
copyTo(Appendable) - Method in class dev.mccue.guava.io.CharSource
Appends the contents of this source to the given Appendable (such as a Writer).
CountingInputStream - Class in dev.mccue.guava.io
An InputStream that counts the number of bytes read.
CountingInputStream(InputStream) - Constructor for class dev.mccue.guava.io.CountingInputStream
Wraps another input stream, counting the number of bytes read.
CountingOutputStream - Class in dev.mccue.guava.io
An OutputStream that counts the number of bytes written.
CountingOutputStream(OutputStream) - Constructor for class dev.mccue.guava.io.CountingOutputStream
Wraps another output stream, counting the number of bytes written.
create() - Static method in class dev.mccue.guava.io.Closer
Creates a new Closer.
createParentDirectories(Path, FileAttribute<?>...) - Static method in class dev.mccue.guava.io.MoreFiles
Creates any necessary but nonexistent parent directories of the specified path.
createParentDirs(File) - Static method in class dev.mccue.guava.io.Files
Creates any necessary but nonexistent parent directories of the specified file.
createTempDir() - Static method in class dev.mccue.guava.io.Files
Deprecated.
For Android users, see the Data and File Storage overview to select an appropriate temporary directory (perhaps context.getCacheDir()), and create your own directory under that. (For example, you might use new File(context.getCacheDir(), "directoryname").mkdir(), or, if you need an arbitrary number of temporary directories, you might have to generate multiple directory names in a loop until mkdir() returns true.) For developers on Java 7 or later, use Files.createTempDirectory(java.nio.file.Path, java.lang.String, java.nio.file.attribute.FileAttribute<?>...), transforming it to a File using toFile() if needed. To restrict permissions as this method does, pass PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------")) to your call to createTempDirectory.

D

decode(CharSequence) - Method in class dev.mccue.guava.io.BaseEncoding
Decodes the specified character sequence, and returns the resulting byte[].
decodingSource(CharSource) - Method in class dev.mccue.guava.io.BaseEncoding
Returns a ByteSource that reads base-encoded bytes from the specified CharSource.
decodingStream(Reader) - Method in class dev.mccue.guava.io.BaseEncoding
Returns an InputStream that decodes base-encoded input from the specified Reader.
deleteDirectoryContents(Path, RecursiveDeleteOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Deletes all files within the directory at the given path recursively.
deleteRecursively(Path, RecursiveDeleteOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Deletes the file or directory at the given path recursively.
dev.mccue.guava.io - module dev.mccue.guava.io
 
dev.mccue.guava.io - package dev.mccue.guava.io
Utility methods and classes for I/O; for example input streams, output streams, readers, writers, and files.

E

empty() - Static method in class dev.mccue.guava.io.ByteSource
Returns an immutable ByteSource that contains no bytes.
empty() - Static method in class dev.mccue.guava.io.CharSource
Returns an immutable CharSource that contains no characters.
encode(byte[]) - Method in class dev.mccue.guava.io.BaseEncoding
Encodes the specified byte array, and returns the encoded String.
encode(byte[], int, int) - Method in class dev.mccue.guava.io.BaseEncoding
Encodes the specified range of the specified byte array, and returns the encoded String.
encodingSink(CharSink) - Method in class dev.mccue.guava.io.BaseEncoding
Returns a ByteSink that writes base-encoded bytes to the specified CharSink.
encodingStream(Writer) - Method in class dev.mccue.guava.io.BaseEncoding
Returns an OutputStream that encodes bytes using this encoding into the specified Writer.
equal(File, File) - Static method in class dev.mccue.guava.io.Files
Returns true if the given files exist, are not directories, and contain the same bytes.
equal(Path, Path) - Static method in class dev.mccue.guava.io.MoreFiles
Returns true if the files located by the given paths exist, are not directories, and contain the same bytes.
exhaust(InputStream) - Static method in class dev.mccue.guava.io.ByteStreams
Reads and discards data from the given InputStream until the end of the stream is reached.
exhaust(Readable) - Static method in class dev.mccue.guava.io.CharStreams
Reads and discards data from the given Readable until the end of the stream is reached.

F

FileBackedOutputStream - Class in dev.mccue.guava.io
An OutputStream that starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.
Files - Class in dev.mccue.guava.io
Provides utility methods for working with files.
fileTraverser() - Static method in class dev.mccue.guava.io.Files
Returns a Traverser instance for the file and directory tree.
fileTraverser() - Static method in class dev.mccue.guava.io.MoreFiles
Returns a Traverser instance for the file and directory tree.
FileWriteMode - Enum in dev.mccue.guava.io
Modes for opening a file for writing.
flush() - Method in class dev.mccue.guava.io.FileBackedOutputStream
 
flush(Flushable, boolean) - Static method in class dev.mccue.guava.io.Flushables
Flush a Flushable, with control over whether an IOException may be thrown.
Flushables - Class in dev.mccue.guava.io
Utility methods for working with Flushable objects.
flushQuietly(Flushable) - Static method in class dev.mccue.guava.io.Flushables
Equivalent to calling flush(flushable, true), but with no IOException in the signature.
forEachLine(Consumer<? super String>) - Method in class dev.mccue.guava.io.CharSource
Reads all lines of text from this source, running the given action for each line as it is read.

G

getCount() - Method in class dev.mccue.guava.io.CountingInputStream
Returns the number of bytes read.
getCount() - Method in class dev.mccue.guava.io.CountingOutputStream
Returns the number of bytes written.
getFileExtension(String) - Static method in class dev.mccue.guava.io.Files
Returns the file extension for the given file name, or the empty string if the file has no extension.
getFileExtension(Path) - Static method in class dev.mccue.guava.io.MoreFiles
Returns the file extension for the file at the given path, or the empty string if the file has no extension.
getNameWithoutExtension(String) - Static method in class dev.mccue.guava.io.Files
Returns the file name without its file extension or path.
getNameWithoutExtension(Path) - Static method in class dev.mccue.guava.io.MoreFiles
Returns the file name without its file extension or path.
getResource(Class<?>, String) - Static method in class dev.mccue.guava.io.Resources
Given a resourceName that is relative to contextClass, returns a URL pointing to the named resource.
getResource(String) - Static method in class dev.mccue.guava.io.Resources
Returns a URL pointing to resourceName if the resource is found using the context class loader.
getResult() - Method in interface dev.mccue.guava.io.ByteProcessor
Return the result of processing all the bytes.
getResult() - Method in interface dev.mccue.guava.io.LineProcessor
Return the result of processing all the lines.

H

hash(HashFunction) - Method in class dev.mccue.guava.io.ByteSource
Hashes the contents of this byte source using the given hash function.
hash(File, HashFunction) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asByteSource(file).hash(hashFunction).

I

ignoreCase() - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but decodes letters without regard to case.
InsecureRecursiveDeleteException - Exception in dev.mccue.guava.io
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., SecureDirectoryStream is not supported).
InsecureRecursiveDeleteException(String) - Constructor for exception dev.mccue.guava.io.InsecureRecursiveDeleteException
 
isDirectory() - Static method in class dev.mccue.guava.io.Files
Returns a predicate that returns the result of File.isDirectory() on input files.
isDirectory(LinkOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a predicate that returns the result of Files.isDirectory(Path, LinkOption...) on input paths with the given link options.
isEmpty() - Method in class dev.mccue.guava.io.ByteSource
Returns whether the source has zero bytes.
isEmpty() - Method in class dev.mccue.guava.io.CharSource
Returns whether the source has zero chars.
isFile() - Static method in class dev.mccue.guava.io.Files
Returns a predicate that returns the result of File.isFile() on input files.
isRegularFile(LinkOption...) - Static method in class dev.mccue.guava.io.MoreFiles
Returns a predicate that returns the result of Files.isRegularFile(Path, LinkOption...) on input paths with the given link options.

L

length() - Method in class dev.mccue.guava.io.CharSource
Returns the length of this source in chars, even if doing so requires opening and traversing an entire stream.
lengthIfKnown() - Method in class dev.mccue.guava.io.CharSource
Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream.
limit(InputStream, long) - Static method in class dev.mccue.guava.io.ByteStreams
Wraps a InputStream, limiting the number of bytes which can be read.
LineProcessor<T extends @Nullable Object> - Interface in dev.mccue.guava.io
A callback to be used with the streaming readLines methods.
LineReader - Class in dev.mccue.guava.io
A class for reading lines of text.
LineReader(Readable) - Constructor for class dev.mccue.guava.io.LineReader
Creates a new instance that will read lines from the given Readable object.
lines() - Method in class dev.mccue.guava.io.CharSource
Opens a new Stream for reading text one line at a time from this source.
listFiles(Path) - Static method in class dev.mccue.guava.io.MoreFiles
Returns an immutable list of paths to the files contained in the given directory.
LittleEndianDataInputStream - Class in dev.mccue.guava.io
An implementation of DataInput that uses little-endian byte ordering for reading short, int, float, double, and long values.
LittleEndianDataInputStream(InputStream) - Constructor for class dev.mccue.guava.io.LittleEndianDataInputStream
Creates a LittleEndianDataInputStream that wraps the given stream.
LittleEndianDataOutputStream - Class in dev.mccue.guava.io
An implementation of DataOutput that uses little-endian byte ordering for writing char, short, int, float, double, and long values.
LittleEndianDataOutputStream(OutputStream) - Constructor for class dev.mccue.guava.io.LittleEndianDataOutputStream
Creates a LittleEndianDataOutputStream that wraps the given stream.
lowerCase() - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but encodes and decodes with lowercase letters.

M

map(File) - Static method in class dev.mccue.guava.io.Files
Fully maps a file read-only in to memory as per FileChannel.map(MapMode, long, long).
map(File, FileChannel.MapMode) - Static method in class dev.mccue.guava.io.Files
Fully maps a file in to memory as per FileChannel.map(MapMode, long, long) using the requested FileChannel.MapMode.
map(File, FileChannel.MapMode, long) - Static method in class dev.mccue.guava.io.Files
Maps a file in to memory as per FileChannel.map(MapMode, long, long) using the requested FileChannel.MapMode.
mark(int) - Method in class dev.mccue.guava.io.CountingInputStream
 
MoreFiles - Class in dev.mccue.guava.io
Static utilities for use with Path instances, intended to complement Files.
move(File, File) - Static method in class dev.mccue.guava.io.Files
Moves a file from one path to another.

N

newDataInput(byte[]) - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array from the beginning.
newDataInput(byte[], int) - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array, starting at the given position.
newDataInput(ByteArrayInputStream) - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the given ByteArrayInputStream.
newDataOutput() - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataOutput instance with a default size.
newDataOutput(int) - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataOutput instance sized to hold size bytes before resizing.
newDataOutput(ByteArrayOutputStream) - Static method in class dev.mccue.guava.io.ByteStreams
Returns a new ByteArrayDataOutput instance which writes to the given ByteArrayOutputStream.
newReader(File, Charset) - Static method in class dev.mccue.guava.io.Files
Returns a buffered reader that reads from a file using the given character set.
newWriter(File, Charset) - Static method in class dev.mccue.guava.io.Files
Returns a buffered writer that writes to a file using the given character set.
nullOutputStream() - Static method in class dev.mccue.guava.io.ByteStreams
Returns an OutputStream that simply discards written bytes.
nullWriter() - Static method in class dev.mccue.guava.io.CharStreams
Returns a Writer that simply discards written chars.

O

omitPadding() - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but omits any padding characters as specified by RFC 4648 section 3.2, Padding of Encoded Data.
openBufferedStream() - Method in class dev.mccue.guava.io.ByteSink
Opens a new buffered OutputStream for writing to this sink.
openBufferedStream() - Method in class dev.mccue.guava.io.ByteSource
Opens a new buffered InputStream for reading from this source.
openBufferedStream() - Method in class dev.mccue.guava.io.CharSink
Opens a new buffered Writer for writing to this sink.
openBufferedStream() - Method in class dev.mccue.guava.io.CharSource
Opens a new BufferedReader for reading from this source.
openStream() - Method in class dev.mccue.guava.io.ByteSink
Opens a new OutputStream for writing to this sink.
openStream() - Method in class dev.mccue.guava.io.ByteSource
Opens a new InputStream for reading from this source.
openStream() - Method in class dev.mccue.guava.io.CharSink
Opens a new Writer for writing to this sink.
openStream() - Method in class dev.mccue.guava.io.CharSource
Opens a new Reader for reading from this source.

P

PatternFilenameFilter - Class in dev.mccue.guava.io
File name filter that only accepts files matching a regular expression.
PatternFilenameFilter(String) - Constructor for class dev.mccue.guava.io.PatternFilenameFilter
Constructs a pattern file name filter object.
PatternFilenameFilter(Pattern) - Constructor for class dev.mccue.guava.io.PatternFilenameFilter
Constructs a pattern file name filter object.
processBytes(byte[], int, int) - Method in interface dev.mccue.guava.io.ByteProcessor
This method will be called for each chunk of bytes in an input stream.
processLine(String) - Method in interface dev.mccue.guava.io.LineProcessor
This method will be called once for each line.

R

read() - Method in class dev.mccue.guava.io.ByteSource
Reads the full contents of this byte source as a byte array.
read() - Method in class dev.mccue.guava.io.CharSource
Reads the contents of this source as a string.
read() - Method in class dev.mccue.guava.io.CountingInputStream
 
read(byte[], int, int) - Method in class dev.mccue.guava.io.CountingInputStream
 
read(ByteProcessor<T>) - Method in class dev.mccue.guava.io.ByteSource
Reads the contents of this byte source using the given processor to process bytes as they are read.
read(InputStream, byte[], int, int) - Static method in class dev.mccue.guava.io.ByteStreams
Reads some bytes from an input stream and stores them into the buffer array b.
readBoolean() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readBoolean() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
readByte() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readByte() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
readBytes(File, ByteProcessor<T>) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asByteSource(file).read(processor).
readBytes(InputStream, ByteProcessor<T>) - Static method in class dev.mccue.guava.io.ByteStreams
Process the bytes of the given input stream using the given processor.
readChar() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readChar() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads a char as specified by DataInputStream.readChar(), except using little-endian byte order.
readDouble() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readDouble() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads a double as specified by DataInputStream.readDouble(), except using little-endian byte order.
readFirstLine() - Method in class dev.mccue.guava.io.CharSource
Reads the first line of this source as a string.
readFirstLine(File, Charset) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSource(file, charset).readFirstLine().
readFloat() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readFloat() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads a float as specified by DataInputStream.readFloat(), except using little-endian byte order.
readFully(byte[]) - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readFully(byte[]) - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
readFully(byte[], int, int) - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readFully(byte[], int, int) - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
readFully(InputStream, byte[]) - Static method in class dev.mccue.guava.io.ByteStreams
Attempts to read enough bytes from the stream to fill the given byte array, with the same behavior as DataInput.readFully(byte[]).
readFully(InputStream, byte[], int, int) - Static method in class dev.mccue.guava.io.ByteStreams
Attempts to read len bytes from the stream into the given array starting at off, with the same behavior as DataInput.readFully(byte[], int, int).
readInt() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readInt() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads an integer as specified by DataInputStream.readInt(), except using little-endian byte order.
readLine() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readLine() - Method in class dev.mccue.guava.io.LineReader
Reads a line of text.
readLine() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
This method will throw an UnsupportedOperationException.
readLines() - Method in class dev.mccue.guava.io.CharSource
Reads all the lines of this source as a list of strings.
readLines(LineProcessor<T>) - Method in class dev.mccue.guava.io.CharSource
Reads lines of text from this source, processing each line as it is read using the given processor.
readLines(File, Charset) - Static method in class dev.mccue.guava.io.Files
Reads all of the lines from a file.
readLines(File, Charset, LineProcessor<T>) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSource(file, charset).readLines(callback).
readLines(Readable) - Static method in class dev.mccue.guava.io.CharStreams
Reads all of the lines from a Readable object.
readLines(Readable, LineProcessor<T>) - Static method in class dev.mccue.guava.io.CharStreams
Streams lines from a Readable object, stopping when the processor returns false or all lines have been read and returning the result produced by the processor.
readLines(URL, Charset) - Static method in class dev.mccue.guava.io.Resources
Reads all of the lines from a URL.
readLines(URL, Charset, LineProcessor<T>) - Static method in class dev.mccue.guava.io.Resources
Streams lines from a URL, stopping when our callback returns false, or we have read all of the lines.
readLong() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readLong() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads a long as specified by DataInputStream.readLong(), except using little-endian byte order.
readShort() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readShort() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads a short as specified by DataInputStream.readShort(), except using little-endian byte order.
readUnsignedByte() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readUnsignedByte() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
readUnsignedShort() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readUnsignedShort() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
Reads an unsigned short as specified by DataInputStream.readUnsignedShort(), except using little-endian byte order.
readUTF() - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
readUTF() - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
RecursiveDeleteOption - Enum in dev.mccue.guava.io
register(C) - Method in class dev.mccue.guava.io.Closer
Registers the given closeable to be closed when this Closer is closed.
reset() - Method in class dev.mccue.guava.io.CountingInputStream
 
reset() - Method in class dev.mccue.guava.io.FileBackedOutputStream
Calls FileBackedOutputStream.close() if not already closed, and then resets this object back to its initial state, for reuse.
Resources - Class in dev.mccue.guava.io
Provides utility methods for working with resources in the classpath.
rethrow(Throwable) - Method in class dev.mccue.guava.io.Closer
Stores the given throwable and rethrows it.
rethrow(Throwable, Class<X>) - Method in class dev.mccue.guava.io.Closer
Stores the given throwable and rethrows it.
rethrow(Throwable, Class<X1>, Class<X2>) - Method in class dev.mccue.guava.io.Closer
Stores the given throwable and rethrows it.

S

simplifyPath(String) - Static method in class dev.mccue.guava.io.Files
Returns the lexically cleaned form of the path name, usually (but not always) equivalent to the original.
size() - Method in class dev.mccue.guava.io.ByteSource
Returns the size of this source in bytes, even if doing so requires opening and traversing an entire stream.
sizeIfKnown() - Method in class dev.mccue.guava.io.ByteSource
Returns the size of this source in bytes, if the size can be easily determined without actually opening the data stream.
skip(long) - Method in class dev.mccue.guava.io.CountingInputStream
 
skipBytes(int) - Method in interface dev.mccue.guava.io.ByteArrayDataInput
 
skipBytes(int) - Method in class dev.mccue.guava.io.LittleEndianDataInputStream
 
skipFully(InputStream, long) - Static method in class dev.mccue.guava.io.ByteStreams
Discards n bytes of data from the input stream.
skipFully(Reader, long) - Static method in class dev.mccue.guava.io.CharStreams
Discards n characters of data from the reader.
slice(long, long) - Method in class dev.mccue.guava.io.ByteSource
Returns a view of a slice of this byte source that is at most length bytes long starting at the given offset.

T

toByteArray() - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
Returns the contents that have been written to this instance, as a byte array.
toByteArray(File) - Static method in class dev.mccue.guava.io.Files
Reads all bytes from a file into a byte array.
toByteArray(InputStream) - Static method in class dev.mccue.guava.io.ByteStreams
Reads all bytes from an input stream into a byte array.
toByteArray(URL) - Static method in class dev.mccue.guava.io.Resources
Reads all bytes from a URL into a byte array.
toString(File, Charset) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSource(file, charset).read().
toString(Readable) - Static method in class dev.mccue.guava.io.CharStreams
Reads all characters from a Readable object into a String.
toString(URL, Charset) - Static method in class dev.mccue.guava.io.Resources
Reads all characters from a URL into a String, using the given character set.
touch(File) - Static method in class dev.mccue.guava.io.Files
Creates an empty file or updates the last updated timestamp on the same as the unix command of the same name.
touch(Path) - Static method in class dev.mccue.guava.io.MoreFiles
Like the unix command of the same name, creates an empty file or updates the last modified timestamp of the existing file at the given path to the current system time.

U

upperCase() - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but encodes and decodes with uppercase letters.

V

valueOf(String) - Static method in enum dev.mccue.guava.io.FileWriteMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dev.mccue.guava.io.RecursiveDeleteOption
Returns the enum constant of this type with the specified name.
values() - Static method in enum dev.mccue.guava.io.FileWriteMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dev.mccue.guava.io.RecursiveDeleteOption
Returns an array containing the constants of this enum type, in the order they are declared.

W

withPadChar(char) - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but uses an alternate character for padding.
withSeparator(String, int) - Method in class dev.mccue.guava.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but adds a separator string after every n characters.
wrap(byte[]) - Static method in class dev.mccue.guava.io.ByteSource
Returns a view of the given byte array as a ByteSource.
wrap(CharSequence) - Static method in class dev.mccue.guava.io.CharSource
Returns a view of the given character sequence as a CharSource.
write(byte[]) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
write(byte[]) - Method in class dev.mccue.guava.io.ByteSink
Writes all the given bytes to this sink.
write(byte[]) - Method in class dev.mccue.guava.io.FileBackedOutputStream
 
write(byte[], int, int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
write(byte[], int, int) - Method in class dev.mccue.guava.io.CountingOutputStream
 
write(byte[], int, int) - Method in class dev.mccue.guava.io.FileBackedOutputStream
 
write(byte[], int, int) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
 
write(byte[], File) - Static method in class dev.mccue.guava.io.Files
Overwrites a file with the contents of a byte array.
write(int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
write(int) - Method in class dev.mccue.guava.io.CountingOutputStream
 
write(int) - Method in class dev.mccue.guava.io.FileBackedOutputStream
 
write(CharSequence) - Method in class dev.mccue.guava.io.CharSink
Writes the given character sequence to this sink.
write(CharSequence, File, Charset) - Static method in class dev.mccue.guava.io.Files
Deprecated.
Prefer asCharSink(to, charset).write(from).
writeBoolean(boolean) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeBoolean(boolean) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
 
writeByte(int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeByte(int) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
 
writeBytes(String) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
Deprecated.
This method is dangerous as it discards the high byte of every character. For UTF-8, use write(s.getBytes(StandardCharsets.UTF_8)).
writeBytes(String) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Deprecated.
The semantics of writeBytes(String s) are considered dangerous. Please use LittleEndianDataOutputStream.writeUTF(String s), LittleEndianDataOutputStream.writeChars(String s) or another write method instead.
writeChar(int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeChar(int) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a char as specified by DataOutputStream.writeChar(int), except using little-endian byte order.
writeChars(String) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeChars(String) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a String as specified by DataOutputStream.writeChars(String), except each character is written using little-endian byte order.
writeDouble(double) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeDouble(double) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a double as specified by DataOutputStream.writeDouble(double), except using little-endian byte order.
writeFloat(float) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeFloat(float) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a float as specified by DataOutputStream.writeFloat(float), except using little-endian byte order.
writeFrom(InputStream) - Method in class dev.mccue.guava.io.ByteSink
Writes all the bytes from the given InputStream to this sink.
writeFrom(Readable) - Method in class dev.mccue.guava.io.CharSink
Writes all the text from the given Readable (such as a Reader) to this sink.
writeInt(int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeInt(int) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes an int as specified by DataOutputStream.writeInt(int), except using little-endian byte order.
writeLines(Iterable<? extends CharSequence>) - Method in class dev.mccue.guava.io.CharSink
Writes the given lines of text to this sink with each line (including the last) terminated with the operating system's default line separator.
writeLines(Iterable<? extends CharSequence>, String) - Method in class dev.mccue.guava.io.CharSink
Writes the given lines of text to this sink with each line (including the last) terminated with the given line separator.
writeLines(Stream<? extends CharSequence>) - Method in class dev.mccue.guava.io.CharSink
Writes the given lines of text to this sink with each line (including the last) terminated with the operating system's default line separator.
writeLines(Stream<? extends CharSequence>, String) - Method in class dev.mccue.guava.io.CharSink
Writes the given lines of text to this sink with each line (including the last) terminated with the given line separator.
writeLong(long) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeLong(long) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a long as specified by DataOutputStream.writeLong(long), except using little-endian byte order.
writeShort(int) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeShort(int) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
Writes a short as specified by DataOutputStream.writeShort(int), except using little-endian byte order.
writeUTF(String) - Method in interface dev.mccue.guava.io.ByteArrayDataOutput
 
writeUTF(String) - Method in class dev.mccue.guava.io.LittleEndianDataOutputStream
 
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form