A B C D E F G I J L M N O P R S T W

A

accept(File, String) - Method in class com.google.common.io.PatternFilenameFilter
 
append(CharSequence, File, Charset) - Static method in class com.google.common.io.Files
Appends a character sequence (such as a string) to a file using the given character set.
asWriter(Appendable) - Static method in class com.google.common.io.CharStreams
Returns a Writer that sends all output to the given Appendable target.
available() - Method in class com.google.common.io.LimitInputStream
 

B

ByteArrayDataInput - Interface in com.google.common.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 com.google.common.io
An extension of DataOutput for writing to in-memory byte arrays; its methods offer identical functionality but do not throw IOException.
ByteProcessor<T> - Interface in com.google.common.io
A callback interface to process bytes from a stream.
ByteStreams - Class in com.google.common.io
Provides utility methods for working with byte arrays and I/O streams.

C

CharStreams - Class in com.google.common.io
Provides utility methods for working with character streams.
close(Closeable, boolean) - Static method in class com.google.common.io.Closeables
Closes a Closeable, with control over whether an IOException may be thrown.
close() - Method in class com.google.common.io.FileBackedOutputStream
 
Closeables - Class in com.google.common.io
Utility methods for working with Closeable objects.
closeQuietly(Closeable) - Static method in class com.google.common.io.Closeables
Equivalent to calling close(closeable, true), but with no IOException in the signature.
com.google.common.io - package 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.
copy(InputSupplier<? extends InputStream>, OutputSupplier<? extends OutputStream>) - Static method in class com.google.common.io.ByteStreams
Opens input and output streams from the given suppliers, copies all bytes from the input to the output, and closes the streams.
copy(InputSupplier<? extends InputStream>, OutputStream) - Static method in class com.google.common.io.ByteStreams
Opens an input stream from the supplier, copies all bytes from the input to the output, and closes the input stream.
copy(InputStream, OutputStream) - Static method in class com.google.common.io.ByteStreams
Copies all bytes from the input stream to the output stream.
copy(ReadableByteChannel, WritableByteChannel) - Static method in class com.google.common.io.ByteStreams
Copies all bytes from the readable channel to the writable channel.
copy(InputSupplier<R>, OutputSupplier<W>) - Static method in class com.google.common.io.CharStreams
Opens Readable and Appendable objects from the given factories, copies all characters between the two, and closes them.
copy(InputSupplier<R>, Appendable) - Static method in class com.google.common.io.CharStreams
Opens a Readable object from the supplier, copies all characters to the Appendable object, and closes the input.
copy(Readable, Appendable) - Static method in class com.google.common.io.CharStreams
Copies all characters between the Readable and Appendable objects.
copy(InputSupplier<? extends InputStream>, File) - Static method in class com.google.common.io.Files
Copies to a file all bytes from an InputStream supplied by a factory.
copy(File, OutputSupplier<? extends OutputStream>) - Static method in class com.google.common.io.Files
Copies all bytes from a file to an OutputStream supplied by a factory.
copy(File, OutputStream) - Static method in class com.google.common.io.Files
Copies all bytes from a file to an output stream.
copy(File, File) - Static method in class com.google.common.io.Files
Copies all the bytes from one file to another.
copy(InputSupplier<R>, File, Charset) - Static method in class com.google.common.io.Files
Copies to a file all characters from a Readable and Closeable object supplied by a factory, using the given character set.
copy(File, Charset, OutputSupplier<W>) - Static method in class com.google.common.io.Files
Copies all characters from a file to a Appendable & Closeable object supplied by a factory, using the given character set.
copy(File, Charset, Appendable) - Static method in class com.google.common.io.Files
Copies all characters from a file to an appendable object, using the given character set.
copy(URL, OutputStream) - Static method in class com.google.common.io.Resources
Copies all bytes from a URL to an output stream.
CountingInputStream - Class in com.google.common.io
An InputStream that counts the number of bytes read.
CountingInputStream(InputStream) - Constructor for class com.google.common.io.CountingInputStream
Wraps another input stream, counting the number of bytes read.
CountingOutputStream - Class in com.google.common.io
An OutputStream that counts the number of bytes written.
CountingOutputStream(OutputStream) - Constructor for class com.google.common.io.CountingOutputStream
Wraps another output stream, counting the number of bytes written.
createTempDir() - Static method in class com.google.common.io.Files
Atomically creates a new directory somewhere beneath the system's temporary directory (as defined by the java.io.tmpdir system property), and returns its name.

D

deleteDirectoryContents(File) - Static method in class com.google.common.io.Files
Deletes all the files within a directory.
deleteRecursively(File) - Static method in class com.google.common.io.Files
Deletes a file or directory and all contents recursively.

E

equal(InputSupplier<? extends InputStream>, InputSupplier<? extends InputStream>) - Static method in class com.google.common.io.ByteStreams
Returns true if the supplied input streams contain the same bytes.
equal(File, File) - Static method in class com.google.common.io.Files
Returns true if the files contains the same bytes.

F

FileBackedOutputStream - Class in com.google.common.io
An OutputStream that starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.
FileBackedOutputStream(int) - Constructor for class com.google.common.io.FileBackedOutputStream
Creates a new instance that uses the given file threshold.
FileBackedOutputStream(int, boolean) - Constructor for class com.google.common.io.FileBackedOutputStream
Creates a new instance that uses the given file threshold, and optionally resets the data when the InputSupplier returned by FileBackedOutputStream.getSupplier() is finalized.
Files - Class in com.google.common.io
Provides utility methods for working with files.
flush() - Method in class com.google.common.io.FileBackedOutputStream
 
flush(Flushable, boolean) - Static method in class com.google.common.io.Flushables
Flush a Flushable, with control over whether an IOException may be thrown.
Flushables - Class in com.google.common.io
Utility methods for working with Flushable objects.
flushQuietly(Flushable) - Static method in class com.google.common.io.Flushables
Equivalent to calling flush(flushable, true), but with no IOException in the signature.

G

getChecksum(InputSupplier<? extends InputStream>, Checksum) - Static method in class com.google.common.io.ByteStreams
Computes and returns the checksum value for a supplied input stream.
getChecksum(File, Checksum) - Static method in class com.google.common.io.Files
Computes and returns the checksum value for a file.
getCount() - Method in class com.google.common.io.CountingInputStream
Returns the number of bytes read.
getCount() - Method in class com.google.common.io.CountingOutputStream
Returns the number of bytes written.
getDigest(InputSupplier<? extends InputStream>, MessageDigest) - Static method in class com.google.common.io.ByteStreams
Computes and returns the digest value for a supplied input stream.
getDigest(File, MessageDigest) - Static method in class com.google.common.io.Files
Computes and returns the digest value for a file.
getInput() - Method in interface com.google.common.io.InputSupplier
 
getOutput() - Method in interface com.google.common.io.OutputSupplier
 
getResource(String) - Static method in class com.google.common.io.Resources
Returns a URL pointing to resourceName if the resource is found in the class path.
getResource(Class<?>, String) - Static method in class com.google.common.io.Resources
Returns a URL pointing to resourceName that is relative to contextClass, if the resource is found in the class path.
getResult() - Method in interface com.google.common.io.ByteProcessor
Return the result of processing all the bytes.
getResult() - Method in interface com.google.common.io.LineProcessor
Return the result of processing all the lines.
getSupplier() - Method in class com.google.common.io.FileBackedOutputStream
Returns a supplier that may be used to retrieve the data buffered by this stream.

I

InputSupplier<T> - Interface in com.google.common.io
A factory for readable streams of bytes or characters.

J

join(Iterable<? extends InputSupplier<? extends InputStream>>) - Static method in class com.google.common.io.ByteStreams
Joins multiple InputStream suppliers into a single supplier.
join(InputSupplier<? extends InputStream>...) - Static method in class com.google.common.io.ByteStreams
Varargs form of ByteStreams.join(Iterable).
join(Iterable<? extends InputSupplier<? extends Reader>>) - Static method in class com.google.common.io.CharStreams
Joins multiple Reader suppliers into a single supplier.
join(InputSupplier<? extends Reader>...) - Static method in class com.google.common.io.CharStreams
Varargs form of CharStreams.join(Iterable).

L

length(InputSupplier<? extends InputStream>) - Static method in class com.google.common.io.ByteStreams
Returns the length of a supplied input stream, in bytes.
LimitInputStream - Class in com.google.common.io
An InputStream that limits the number of bytes which can be read.
LimitInputStream(InputStream, long) - Constructor for class com.google.common.io.LimitInputStream
Wraps another input stream, limiting the number of bytes which can be read.
LineProcessor<T> - Interface in com.google.common.io
A callback to be used with the streaming readLines methods.
LineReader - Class in com.google.common.io
A class for reading lines of text.
LineReader(Readable) - Constructor for class com.google.common.io.LineReader
Creates a new instance that will read lines from the given Readable object.

M

map(File) - Static method in class com.google.common.io.Files
Fully maps a file read-only in to memory as per FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long).
map(File, FileChannel.MapMode) - Static method in class com.google.common.io.Files
Fully maps a file in to memory as per FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long) using the requested FileChannel.MapMode.
map(File, FileChannel.MapMode, long) - Static method in class com.google.common.io.Files
Maps a file in to memory as per FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long) using the requested FileChannel.MapMode.
mark(int) - Method in class com.google.common.io.CountingInputStream
 
mark(int) - Method in class com.google.common.io.LimitInputStream
 
move(File, File) - Static method in class com.google.common.io.Files
Moves the file from one path to another.

N

newDataInput(byte[]) - Static method in class com.google.common.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array from the beginning.
newDataInput(byte[], int) - Static method in class com.google.common.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array, starting at the given position.
newDataOutput() - Static method in class com.google.common.io.ByteStreams
Returns a new ByteArrayDataOutput instance with a default size.
newDataOutput(int) - Static method in class com.google.common.io.ByteStreams
Returns a new ByteArrayDataOutput instance sized to hold size bytes before resizing.
newInputStreamSupplier(byte[]) - Static method in class com.google.common.io.ByteStreams
Returns a factory that will supply instances of ByteArrayInputStream that read from the given byte array.
newInputStreamSupplier(byte[], int, int) - Static method in class com.google.common.io.ByteStreams
Returns a factory that will supply instances of ByteArrayInputStream that read from the given byte array.
newInputStreamSupplier(File) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of FileInputStream that read from a file.
newInputStreamSupplier(URL) - Static method in class com.google.common.io.Resources
Returns a factory that will supply instances of InputStream that read from the given URL.
newOutputStreamSupplier(File) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of FileOutputStream that write to a file.
newOutputStreamSupplier(File, boolean) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of FileOutputStream that write to or append to a file.
newReader(File, Charset) - Static method in class com.google.common.io.Files
Returns a buffered reader that reads from a file using the given character set.
newReaderSupplier(String) - Static method in class com.google.common.io.CharStreams
Returns a factory that will supply instances of StringReader that read a string value.
newReaderSupplier(InputSupplier<? extends InputStream>, Charset) - Static method in class com.google.common.io.CharStreams
Returns a factory that will supply instances of InputStreamReader, using the given InputStream factory and character set.
newReaderSupplier(File, Charset) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of InputStreamReader that read a file using the given character set.
newReaderSupplier(URL, Charset) - Static method in class com.google.common.io.Resources
Returns a factory that will supply instances of InputStreamReader that read a URL using the given character set.
newWriter(File, Charset) - Static method in class com.google.common.io.Files
Returns a buffered writer that writes to a file using the given character set.
newWriterSupplier(OutputSupplier<? extends OutputStream>, Charset) - Static method in class com.google.common.io.CharStreams
Returns a factory that will supply instances of OutputStreamWriter, using the given OutputStream factory and character set.
newWriterSupplier(File, Charset) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of OutputStreamWriter that write to a file using the given character set.
newWriterSupplier(File, Charset, boolean) - Static method in class com.google.common.io.Files
Returns a factory that will supply instances of OutputStreamWriter that write to or append to a file using the given character set.
NullOutputStream - Class in com.google.common.io
Implementation of OutputStream that simply discards written bytes.
NullOutputStream() - Constructor for class com.google.common.io.NullOutputStream
 

O

OutputSupplier<T> - Interface in com.google.common.io
An factory for writable streams of bytes or characters.

P

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

R

read(InputStream, byte[], int, int) - Static method in class com.google.common.io.ByteStreams
Reads some bytes from an input stream and stores them into the buffer array b.
read() - Method in class com.google.common.io.CountingInputStream
 
read(byte[], int, int) - Method in class com.google.common.io.CountingInputStream
 
read() - Method in class com.google.common.io.LimitInputStream
 
read(byte[], int, int) - Method in class com.google.common.io.LimitInputStream
 
readBoolean() - Method in interface com.google.common.io.ByteArrayDataInput
 
readByte() - Method in interface com.google.common.io.ByteArrayDataInput
 
readBytes(InputSupplier<? extends InputStream>, ByteProcessor<T>) - Static method in class com.google.common.io.ByteStreams
Process the bytes of a supplied stream
readBytes(File, ByteProcessor<T>) - Static method in class com.google.common.io.Files
Process the bytes of a file.
readChar() - Method in interface com.google.common.io.ByteArrayDataInput
 
readDouble() - Method in interface com.google.common.io.ByteArrayDataInput
 
readFirstLine(InputSupplier<R>) - Static method in class com.google.common.io.CharStreams
Reads the first line from a Readable & Closeable object supplied by a factory.
readFirstLine(File, Charset) - Static method in class com.google.common.io.Files
Reads the first line from a file.
readFloat() - Method in interface com.google.common.io.ByteArrayDataInput
 
readFully(byte[]) - Method in interface com.google.common.io.ByteArrayDataInput
 
readFully(byte[], int, int) - Method in interface com.google.common.io.ByteArrayDataInput
 
readFully(InputStream, byte[]) - Static method in class com.google.common.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 com.google.common.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 com.google.common.io.ByteArrayDataInput
 
readLine() - Method in interface com.google.common.io.ByteArrayDataInput
 
readLine() - Method in class com.google.common.io.LineReader
Reads a line of text.
readLines(InputSupplier<R>) - Static method in class com.google.common.io.CharStreams
Reads all of the lines from a Readable & Closeable object supplied by a factory.
readLines(Readable) - Static method in class com.google.common.io.CharStreams
Reads all of the lines from a Readable object.
readLines(InputSupplier<R>, LineProcessor<T>) - Static method in class com.google.common.io.CharStreams
Streams lines from a Readable and Closeable object supplied by a factory, stopping when our callback returns false, or we have read all of the lines.
readLines(File, Charset) - Static method in class com.google.common.io.Files
Reads all of the lines from a file.
readLines(File, Charset, LineProcessor<T>) - Static method in class com.google.common.io.Files
Streams lines from a File, stopping when our callback returns false, or we have read all of the lines.
readLines(URL, Charset, LineProcessor<T>) - Static method in class com.google.common.io.Resources
Streams lines from a URL, stopping when our callback returns false, or we have read all of the lines.
readLines(URL, Charset) - Static method in class com.google.common.io.Resources
Reads all of the lines from a URL.
readLong() - Method in interface com.google.common.io.ByteArrayDataInput
 
readShort() - Method in interface com.google.common.io.ByteArrayDataInput
 
readUnsignedByte() - Method in interface com.google.common.io.ByteArrayDataInput
 
readUnsignedShort() - Method in interface com.google.common.io.ByteArrayDataInput
 
readUTF() - Method in interface com.google.common.io.ByteArrayDataInput
 
reset() - Method in class com.google.common.io.CountingInputStream
 
reset() - Method in class com.google.common.io.FileBackedOutputStream
Calls FileBackedOutputStream.close() if not already closed, and then resets this object back to its initial state, for reuse.
reset() - Method in class com.google.common.io.LimitInputStream
 
Resources - Class in com.google.common.io
Provides utility methods for working with resources in the classpath.

S

skip(long) - Method in class com.google.common.io.CountingInputStream
 
skip(long) - Method in class com.google.common.io.LimitInputStream
 
skipBytes(int) - Method in interface com.google.common.io.ByteArrayDataInput
 
skipFully(InputStream, long) - Static method in class com.google.common.io.ByteStreams
Discards n bytes of data from the input stream.
skipFully(Reader, long) - Static method in class com.google.common.io.CharStreams
Discards n characters of data from the reader.
slice(InputSupplier<? extends InputStream>, long, long) - Static method in class com.google.common.io.ByteStreams
Returns an InputSupplier that returns input streams from the an underlying supplier, where each stream starts at the given offset and is limited to the specified number of bytes.

T

toByteArray() - Method in interface com.google.common.io.ByteArrayDataOutput
Returns the contents that have been written to this instance, as a byte array.
toByteArray(InputStream) - Static method in class com.google.common.io.ByteStreams
Reads all bytes from an input stream into a byte array.
toByteArray(InputSupplier<? extends InputStream>) - Static method in class com.google.common.io.ByteStreams
Returns the data from a InputStream factory as a byte array.
toByteArray(File) - Static method in class com.google.common.io.Files
Reads all bytes from a file into a byte array.
toByteArray(URL) - Static method in class com.google.common.io.Resources
Reads all bytes from a URL into a byte array.
toString(Readable) - Static method in class com.google.common.io.CharStreams
Reads all characters from a Readable object into a String.
toString(InputSupplier<R>) - Static method in class com.google.common.io.CharStreams
Returns the characters from a Readable & Closeable object supplied by a factory as a String.
toString(File, Charset) - Static method in class com.google.common.io.Files
Reads all characters from a file into a String, using the given character set.
toString(URL, Charset) - Static method in class com.google.common.io.Resources
Reads all characters from a URL into a String, using the given character set.
touch(File) - Static method in class com.google.common.io.Files
Creates an empty file or updates the last updated timestamp on the same as the unix command of the same name.

W

write(int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
write(byte[]) - Method in interface com.google.common.io.ByteArrayDataOutput
 
write(byte[], int, int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
write(byte[], OutputSupplier<? extends OutputStream>) - Static method in class com.google.common.io.ByteStreams
Writes a byte array to an output stream from the given supplier.
write(CharSequence, OutputSupplier<W>) - Static method in class com.google.common.io.CharStreams
Writes a character sequence (such as a string) to an appendable object from the given supplier.
write(byte[], int, int) - Method in class com.google.common.io.CountingOutputStream
 
write(int) - Method in class com.google.common.io.CountingOutputStream
 
write(int) - Method in class com.google.common.io.FileBackedOutputStream
 
write(byte[]) - Method in class com.google.common.io.FileBackedOutputStream
 
write(byte[], int, int) - Method in class com.google.common.io.FileBackedOutputStream
 
write(byte[], File) - Static method in class com.google.common.io.Files
Overwrites a file with the contents of a byte array.
write(CharSequence, File, Charset) - Static method in class com.google.common.io.Files
Writes a character sequence (such as a string) to a file using the given character set.
write(int) - Method in class com.google.common.io.NullOutputStream
Discards the specified byte.
write(byte[], int, int) - Method in class com.google.common.io.NullOutputStream
Discards the specified byte array.
writeBoolean(boolean) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeByte(int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeBytes(String) - Method in interface com.google.common.io.ByteArrayDataOutput
Deprecated. This method is dangerous as it discards the high byte of every character. For UTF-8, use write(s.getBytes(Charsets.UTF_8)).
writeChar(int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeChars(String) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeDouble(double) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeFloat(float) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeInt(int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeLong(long) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeShort(int) - Method in interface com.google.common.io.ByteArrayDataOutput
 
writeUTF(String) - Method in interface com.google.common.io.ByteArrayDataOutput
 

A B C D E F G I J L M N O P R S T W

Copyright © 2010 Google. All Rights Reserved.