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

A

accept(File, String) - Method in class net.tribe7.common.io.PatternFilenameFilter
 
append(CharSequence, File, Charset) - Static method in class net.tribe7.common.io.Files
Appends a character sequence (such as a string) to a file using the given character set.
asByteSink(File, FileWriteMode...) - Static method in class net.tribe7.common.io.Files
Returns a new ByteSink for writing bytes to the given file.
asByteSource(byte[]) - Static method in class net.tribe7.common.io.ByteStreams
Returns a new ByteSource that reads bytes from the given byte array.
asByteSource(File) - Static method in class net.tribe7.common.io.Files
Returns a new ByteSource for reading bytes from the given file.
asByteSource(URL) - Static method in class net.tribe7.common.io.Resources
Returns a ByteSource that reads from the given URL.
asCharSink(Charset) - Method in class net.tribe7.common.io.ByteSink
Returns a CharSink view of this ByteSink that writes characters to this sink as bytes encoded with the given charset.
asCharSink(File, Charset, FileWriteMode...) - Static method in class net.tribe7.common.io.Files
Returns a new CharSink for writing character data to the given file using the given character set.
asCharSource(Charset) - Method in class net.tribe7.common.io.ByteSource
Returns a CharSource view of this byte source that decodes bytes read from this source as characters using the given Charset.
asCharSource(String) - Static method in class net.tribe7.common.io.CharStreams
Returns a CharSource that reads the given string value.
asCharSource(File, Charset) - Static method in class net.tribe7.common.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 net.tribe7.common.io.Resources
Returns a CharSource that reads from the given URL using the given character set.
asWriter(Appendable) - Static method in class net.tribe7.common.io.CharStreams
Returns a Writer that sends all output to the given Appendable target.
available() - Method in class net.tribe7.common.io.LimitInputStream
Deprecated.
 

B

base16() - Static method in class net.tribe7.common.io.BaseEncoding
The "base16" encoding specified by RFC 4648 section 8, Base 16 Encoding.
base32() - Static method in class net.tribe7.common.io.BaseEncoding
The "base32" encoding specified by RFC 4648 section 6, Base 32 Encoding.
base32Hex() - Static method in class net.tribe7.common.io.BaseEncoding
The "base32hex" encoding specified by RFC 4648 section 7, Base 32 Encoding with Extended Hex Alphabet.
base64() - Static method in class net.tribe7.common.io.BaseEncoding
The "base64" base encoding specified by RFC 4648 section 4, Base 64 Encoding.
base64Url() - Static method in class net.tribe7.common.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 net.tribe7.common.io
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings.
ByteArrayDataInput - Interface in net.tribe7.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 net.tribe7.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 net.tribe7.common.io
A callback interface to process bytes from a stream.
ByteSink - Class in net.tribe7.common.io
A destination to which bytes can be written, such as a file.
ByteSink() - Constructor for class net.tribe7.common.io.ByteSink
 
ByteSource - Class in net.tribe7.common.io
A readable source of bytes, such as a file.
ByteSource() - Constructor for class net.tribe7.common.io.ByteSource
 
ByteStreams - Class in net.tribe7.common.io
Provides utility methods for working with byte arrays and I/O streams.

C

CharSink - Class in net.tribe7.common.io
A destination to which characters can be written, such as a text file.
CharSink() - Constructor for class net.tribe7.common.io.CharSink
 
CharSource - Class in net.tribe7.common.io
A readable source of characters, such as a text file.
CharSource() - Constructor for class net.tribe7.common.io.CharSource
 
CharStreams - Class in net.tribe7.common.io
Provides utility methods for working with character streams.
close(Closeable, boolean) - Static method in class net.tribe7.common.io.Closeables
Closes a Closeable, with control over whether an IOException may be thrown.
close() - Method in class net.tribe7.common.io.Closer
Closes all Closeable instances that have been added to this Closer.
close() - Method in class net.tribe7.common.io.FileBackedOutputStream
 
Closeables - Class in net.tribe7.common.io
Utility methods for working with Closeable objects.
closeQuietly(Closeable) - Static method in class net.tribe7.common.io.Closeables
Deprecated.
Where possible, use the try-with-resources statement if using JDK7 or Closer on JDK6 to close one or more Closeable objects. This method is deprecated because it is easy to misuse and may swallow IO exceptions that really should be thrown and handled. See Guava issue 1118 for a more detailed explanation of the reasons for deprecation and see Closing Resources for more information on the problems with closing Closeable objects and some of the preferred solutions for handling it correctly. This method is scheduled to be removed in Guava 16.0.
Closer - Class in net.tribe7.common.io
A Closeable that collects Closeable resources and closes them all when it is closed.
contentEquals(ByteSource) - Method in class net.tribe7.common.io.ByteSource
Checks that the contents of this byte source are equal to the contents of the given byte source.
copy(InputSupplier<? extends InputStream>, OutputSupplier<? extends OutputStream>) - Static method in class net.tribe7.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 net.tribe7.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, OutputSupplier<? extends OutputStream>) - Static method in class net.tribe7.common.io.ByteStreams
Opens an output stream from the supplier, copies all bytes from the input to the output, and closes the output stream.
copy(InputStream, OutputStream) - Static method in class net.tribe7.common.io.ByteStreams
Copies all bytes from the input stream to the output stream.
copy(ReadableByteChannel, WritableByteChannel) - Static method in class net.tribe7.common.io.ByteStreams
Copies all bytes from the readable channel to the writable channel.
copy(InputSupplier<R>, OutputSupplier<W>) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.common.io.CharStreams
Copies all characters between the Readable and Appendable objects.
copy(InputSupplier<? extends InputStream>, File) - Static method in class net.tribe7.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 net.tribe7.common.io.Files
Copies all bytes from a file to an OutputStream supplied by a factory.
copy(File, OutputStream) - Static method in class net.tribe7.common.io.Files
Copies all bytes from a file to an output stream.
copy(File, File) - Static method in class net.tribe7.common.io.Files
Copies all the bytes from one file to another.
copy(InputSupplier<R>, File, Charset) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.common.io.Resources
Copies all bytes from a URL to an output stream.
copyTo(OutputStream) - Method in class net.tribe7.common.io.ByteSource
Copies the contents of this byte source to the given OutputStream.
copyTo(ByteSink) - Method in class net.tribe7.common.io.ByteSource
Copies the contents of this byte source to the given ByteSink.
copyTo(Appendable) - Method in class net.tribe7.common.io.CharSource
Appends the contents of this source to the given Appendable (such as a Writer).
copyTo(CharSink) - Method in class net.tribe7.common.io.CharSource
Copies the contents of this source to the given sink.
CountingInputStream - Class in net.tribe7.common.io
An InputStream that counts the number of bytes read.
CountingInputStream(InputStream) - Constructor for class net.tribe7.common.io.CountingInputStream
Wraps another input stream, counting the number of bytes read.
CountingOutputStream - Class in net.tribe7.common.io
An OutputStream that counts the number of bytes written.
CountingOutputStream(OutputStream) - Constructor for class net.tribe7.common.io.CountingOutputStream
Wraps another output stream, counting the number of bytes written.
create() - Static method in class net.tribe7.common.io.Closer
Creates a new Closer.
createParentDirs(File) - Static method in class net.tribe7.common.io.Files
Creates any necessary but nonexistent parent directories of the specified file.
createTempDir() - Static method in class net.tribe7.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

decode(CharSequence) - Method in class net.tribe7.common.io.BaseEncoding
Decodes the specified character sequence, and returns the resulting byte[].
decodingSource(CharSource) - Method in class net.tribe7.common.io.BaseEncoding
Returns a ByteSource that reads base-encoded bytes from the specified CharSource.
decodingStream(Reader) - Method in class net.tribe7.common.io.BaseEncoding
Returns an InputStream that decodes base-encoded input from the specified Reader.
decodingStream(InputSupplier<? extends Reader>) - Method in class net.tribe7.common.io.BaseEncoding
Returns an InputSupplier that supplies input streams that decode base-encoded input from readers from the specified supplier.

E

encode(byte[]) - Method in class net.tribe7.common.io.BaseEncoding
Encodes the specified byte array, and returns the encoded String.
encode(byte[], int, int) - Method in class net.tribe7.common.io.BaseEncoding
Encodes the specified range of the specified byte array, and returns the encoded String.
encodingSink(CharSink) - Method in class net.tribe7.common.io.BaseEncoding
Returns a ByteSink that writes base-encoded bytes to the specified CharSink.
encodingStream(Writer) - Method in class net.tribe7.common.io.BaseEncoding
Returns an OutputStream that encodes bytes using this encoding into the specified Writer.
encodingStream(OutputSupplier<? extends Writer>) - Method in class net.tribe7.common.io.BaseEncoding
Returns an OutputSupplier that supplies streams that encode bytes using this encoding into writers from the specified OutputSupplier.
equal(InputSupplier<? extends InputStream>, InputSupplier<? extends InputStream>) - Static method in class net.tribe7.common.io.ByteStreams
Returns true if the supplied input streams contain the same bytes.
equal(File, File) - Static method in class net.tribe7.common.io.Files
Returns true if the files contains the same bytes.

F

FileBackedOutputStream - Class in net.tribe7.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 net.tribe7.common.io.FileBackedOutputStream
Creates a new instance that uses the given file threshold, and does not reset the data when the InputSupplier returned by FileBackedOutputStream.getSupplier() is finalized.
FileBackedOutputStream(int, boolean) - Constructor for class net.tribe7.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 net.tribe7.common.io
Provides utility methods for working with files.
FileWriteMode - Enum in net.tribe7.common.io
Modes for opening a file for writing.
flush() - Method in class net.tribe7.common.io.FileBackedOutputStream
 
flush(Flushable, boolean) - Static method in class net.tribe7.common.io.Flushables
Flush a Flushable, with control over whether an IOException may be thrown.
Flushables - Class in net.tribe7.common.io
Utility methods for working with Flushable objects.
flushQuietly(Flushable) - Static method in class net.tribe7.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 net.tribe7.common.io.ByteStreams
Deprecated.
Use hash with the Hashing.crc32() or Hashing.adler32() hash functions instead. This method is scheduled to be removed in Guava 15.0.
getChecksum(File, Checksum) - Static method in class net.tribe7.common.io.Files
Deprecated.
Use hash with the Hashing.crc32() or Hashing.adler32() hash functions. This method is scheduled to be removed in Guava 15.0.
getCount() - Method in class net.tribe7.common.io.CountingInputStream
Returns the number of bytes read.
getCount() - Method in class net.tribe7.common.io.CountingOutputStream
Returns the number of bytes written.
getFileExtension(String) - Static method in class net.tribe7.common.io.Files
Returns the file extension for the given file name, or the empty string if the file has no extension.
getInput() - Method in interface net.tribe7.common.io.InputSupplier
Returns an object that encapsulates a readable resource.
getNameWithoutExtension(String) - Static method in class net.tribe7.common.io.Files
Returns the file name without its file extension or path.
getOutput() - Method in interface net.tribe7.common.io.OutputSupplier
Returns an object that encapsulates a writable resource.
getResource(String) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.common.io.ByteProcessor
Return the result of processing all the bytes.
getResult() - Method in interface net.tribe7.common.io.LineProcessor
Return the result of processing all the lines.
getSupplier() - Method in class net.tribe7.common.io.FileBackedOutputStream
Returns a supplier that may be used to retrieve the data buffered by this stream.

H

hash(HashFunction) - Method in class net.tribe7.common.io.ByteSource
Hashes the contents of this byte source using the given hash function.
hash(InputSupplier<? extends InputStream>, HashFunction) - Static method in class net.tribe7.common.io.ByteStreams
Computes the hash code of the data supplied by supplier using hashFunction.
hash(File, HashFunction) - Static method in class net.tribe7.common.io.Files
Computes the hash code of the file using hashFunction.

I

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

J

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

L

length(InputSupplier<? extends InputStream>) - Static method in class net.tribe7.common.io.ByteStreams
Returns the length of a supplied input stream, in bytes.
limit(InputStream, long) - Static method in class net.tribe7.common.io.ByteStreams
Wraps a InputStream, limiting the number of bytes which can be read.
LimitInputStream - Class in net.tribe7.common.io
Deprecated.
Use ByteStreams.limit(java.io.InputStream, long) instead. This class is scheduled to be removed in Guava release 15.0.
LimitInputStream(InputStream, long) - Constructor for class net.tribe7.common.io.LimitInputStream
Deprecated.
Wraps another input stream, limiting the number of bytes which can be read.
LineProcessor<T> - Interface in net.tribe7.common.io
A callback to be used with the streaming readLines methods.
LineReader - Class in net.tribe7.common.io
A class for reading lines of text.
LineReader(Readable) - Constructor for class net.tribe7.common.io.LineReader
Creates a new instance that will read lines from the given Readable object.
LittleEndianDataInputStream - Class in net.tribe7.common.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 net.tribe7.common.io.LittleEndianDataInputStream
Creates a LittleEndianDataInputStream that wraps the given stream.
LittleEndianDataOutputStream - Class in net.tribe7.common.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 net.tribe7.common.io.LittleEndianDataOutputStream
Creates a LittleEndianDataOutputStream that wraps the given stream.
lowerCase() - Method in class net.tribe7.common.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 net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.common.io.CountingInputStream
 
mark(int) - Method in class net.tribe7.common.io.LimitInputStream
Deprecated.
 
move(File, File) - Static method in class net.tribe7.common.io.Files
Moves the file from one path to another.

N

net.tribe7.common.io - package net.tribe7.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.
newDataInput(byte[]) - Static method in class net.tribe7.common.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array from the beginning.
newDataInput(byte[], int) - Static method in class net.tribe7.common.io.ByteStreams
Returns a new ByteArrayDataInput instance to read from the bytes array, starting at the given position.
newDataOutput() - Static method in class net.tribe7.common.io.ByteStreams
Returns a new ByteArrayDataOutput instance with a default size.
newDataOutput(int) - Static method in class net.tribe7.common.io.ByteStreams
Returns a new ByteArrayDataOutput instance sized to hold size bytes before resizing.
newInputStreamSupplier(byte[]) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.common.io.Files
Returns a factory that will supply instances of FileInputStream that read from a file.
newInputStreamSupplier(URL) - Static method in class net.tribe7.common.io.Resources
Returns a factory that will supply instances of InputStream that read from the given URL.
newOutputStreamSupplier(File) - Static method in class net.tribe7.common.io.Files
Returns a factory that will supply instances of FileOutputStream that write to a file.
newOutputStreamSupplier(File, boolean) - Static method in class net.tribe7.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 net.tribe7.common.io.Files
Returns a buffered reader that reads from a file using the given character set.
newReaderSupplier(String) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.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 net.tribe7.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() - Static method in class net.tribe7.common.io.ByteStreams
Returns an OutputStream that simply discards written bytes.
NullOutputStream - Class in net.tribe7.common.io
Deprecated.
Use ByteStreams.nullOutputStream() instead. This class is scheduled to be removed in Guava release 15.0.
NullOutputStream() - Constructor for class net.tribe7.common.io.NullOutputStream
Deprecated.
 

O

omitPadding() - Method in class net.tribe7.common.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 net.tribe7.common.io.ByteSink
Opens a new BufferedOutputStream for writing to this sink.
openBufferedStream() - Method in class net.tribe7.common.io.ByteSource
Opens a new BufferedInputStream for reading from this source.
openBufferedStream() - Method in class net.tribe7.common.io.CharSink
Opens a new BufferedWriter for writing to this sink.
openBufferedStream() - Method in class net.tribe7.common.io.CharSource
Opens a new BufferedReader for reading from this source.
openStream() - Method in class net.tribe7.common.io.ByteSink
Opens a new OutputStream for writing to this sink.
openStream() - Method in class net.tribe7.common.io.ByteSource
Opens a new InputStream for reading from this source.
openStream() - Method in class net.tribe7.common.io.CharSink
Opens a new Writer for writing to this sink.
openStream() - Method in class net.tribe7.common.io.CharSource
Opens a new Reader for reading from this source.
OutputSupplier<T> - Interface in net.tribe7.common.io
A factory for writable streams of bytes or characters.

P

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

R

read() - Method in class net.tribe7.common.io.ByteSource
Reads the full contents of this byte source as a byte array.
read(InputStream, byte[], int, int) - Static method in class net.tribe7.common.io.ByteStreams
Reads some bytes from an input stream and stores them into the buffer array b.
read() - Method in class net.tribe7.common.io.CharSource
Reads the contents of this source as a string.
read() - Method in class net.tribe7.common.io.CountingInputStream
 
read(byte[], int, int) - Method in class net.tribe7.common.io.CountingInputStream
 
read() - Method in class net.tribe7.common.io.LimitInputStream
Deprecated.
 
read(byte[], int, int) - Method in class net.tribe7.common.io.LimitInputStream
Deprecated.
 
readBoolean() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readBoolean() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
readByte() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readByte() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
readBytes(InputSupplier<? extends InputStream>, ByteProcessor<T>) - Static method in class net.tribe7.common.io.ByteStreams
Process the bytes of a supplied stream
readBytes(InputStream, ByteProcessor<T>) - Static method in class net.tribe7.common.io.ByteStreams
Process the bytes of the given input stream using the given processor.
readBytes(File, ByteProcessor<T>) - Static method in class net.tribe7.common.io.Files
Process the bytes of a file.
readChar() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readChar() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads a char as specified by DataInputStream.readChar(), except using little-endian byte order.
readDouble() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readDouble() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads a double as specified by DataInputStream.readDouble(), except using little-endian byte order.
readFirstLine() - Method in class net.tribe7.common.io.CharSource
Reads the first link of this source as a string.
readFirstLine(InputSupplier<R>) - Static method in class net.tribe7.common.io.CharStreams
Reads the first line from a Readable & Closeable object supplied by a factory.
readFirstLine(File, Charset) - Static method in class net.tribe7.common.io.Files
Reads the first line from a file.
readFloat() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readFloat() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads a float as specified by DataInputStream.readFloat(), except using little-endian byte order.
readFully(byte[]) - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readFully(byte[], int, int) - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readFully(InputStream, byte[]) - Static method in class net.tribe7.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 net.tribe7.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).
readFully(byte[]) - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
readFully(byte[], int, int) - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
readInt() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readInt() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads an integer as specified by DataInputStream.readInt(), except using little-endian byte order.
readLine() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readLine() - Method in class net.tribe7.common.io.LineReader
Reads a line of text.
readLine() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
This method will throw an UnsupportedOperationException.
readLines() - Method in class net.tribe7.common.io.CharSource
Reads all the lines of this source as a list of strings.
readLines(InputSupplier<R>) - Static method in class net.tribe7.common.io.CharStreams
Reads all of the lines from a Readable & Closeable object supplied by a factory.
readLines(Readable) - Static method in class net.tribe7.common.io.CharStreams
Reads all of the lines from a Readable object.
readLines(Readable, LineProcessor<T>) - Static method in class net.tribe7.common.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(InputSupplier<R>, LineProcessor<T>) - Static method in class net.tribe7.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 net.tribe7.common.io.Files
Reads all of the lines from a file.
readLines(File, Charset, LineProcessor<T>) - Static method in class net.tribe7.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 net.tribe7.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 net.tribe7.common.io.Resources
Reads all of the lines from a URL.
readLong() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readLong() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads a long as specified by DataInputStream.readLong(), except using little-endian byte order.
readShort() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readShort() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads a short as specified by DataInputStream.readShort(), except using little-endian byte order.
readUnsignedByte() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readUnsignedByte() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
readUnsignedShort() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readUnsignedShort() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
Reads an unsigned short as specified by DataInputStream.readUnsignedShort(), except using little-endian byte order.
readUTF() - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
readUTF() - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
register(C) - Method in class net.tribe7.common.io.Closer
Registers the given closeable to be closed when this Closer is closed.
reset() - Method in class net.tribe7.common.io.CountingInputStream
 
reset() - Method in class net.tribe7.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 net.tribe7.common.io.LimitInputStream
Deprecated.
 
Resources - Class in net.tribe7.common.io
Provides utility methods for working with resources in the classpath.
rethrow(Throwable) - Method in class net.tribe7.common.io.Closer
Stores the given throwable and rethrows it.
rethrow(Throwable, Class<X>) - Method in class net.tribe7.common.io.Closer
Stores the given throwable and rethrows it.
rethrow(Throwable, Class<X1>, Class<X2>) - Method in class net.tribe7.common.io.Closer
Stores the given throwable and rethrows it.

S

simplifyPath(String) - Static method in class net.tribe7.common.io.Files
Returns the lexically cleaned form of the path name, usually (but not always) equivalent to the original.
size() - Method in class net.tribe7.common.io.ByteSource
Returns the size of this source in bytes.
skip(long) - Method in class net.tribe7.common.io.CountingInputStream
 
skip(long) - Method in class net.tribe7.common.io.LimitInputStream
Deprecated.
 
skipBytes(int) - Method in interface net.tribe7.common.io.ByteArrayDataInput
 
skipBytes(int) - Method in class net.tribe7.common.io.LittleEndianDataInputStream
 
skipFully(InputStream, long) - Static method in class net.tribe7.common.io.ByteStreams
Discards n bytes of data from the input stream.
skipFully(Reader, long) - Static method in class net.tribe7.common.io.CharStreams
Discards n characters of data from the reader.
slice(long, long) - Method in class net.tribe7.common.io.ByteSource
Returns a view of a slice of this byte source that is at most length bytes long starting at the given offset.
slice(InputSupplier<? extends InputStream>, long, long) - Static method in class net.tribe7.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 net.tribe7.common.io.ByteArrayDataOutput
Returns the contents that have been written to this instance, as a byte array.
toByteArray(InputStream) - Static method in class net.tribe7.common.io.ByteStreams
Reads all bytes from an input stream into a byte array.
toByteArray(InputSupplier<? extends InputStream>) - Static method in class net.tribe7.common.io.ByteStreams
Returns the data from a InputStream factory as a byte array.
toByteArray(File) - Static method in class net.tribe7.common.io.Files
Reads all bytes from a file into a byte array.
toByteArray(URL) - Static method in class net.tribe7.common.io.Resources
Reads all bytes from a URL into a byte array.
toString(Readable) - Static method in class net.tribe7.common.io.CharStreams
Reads all characters from a Readable object into a String.
toString(InputSupplier<R>) - Static method in class net.tribe7.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 net.tribe7.common.io.Files
Reads all characters from a file into a String, using the given character set.
toString(URL, Charset) - Static method in class net.tribe7.common.io.Resources
Reads all characters from a URL into a String, using the given character set.
touch(File) - Static method in class net.tribe7.common.io.Files
Creates an empty file or updates the last updated timestamp on the same as the unix command of the same name.

U

upperCase() - Method in class net.tribe7.common.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 net.tribe7.common.io.FileWriteMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.tribe7.common.io.FileWriteMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

withPadChar(char) - Method in class net.tribe7.common.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but uses an alternate character for padding.
withSeparator(String, int) - Method in class net.tribe7.common.io.BaseEncoding
Returns an encoding that behaves equivalently to this encoding, but adds a separator string after every n characters.
write(int) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
write(byte[]) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
write(byte[], int, int) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
write(byte[]) - Method in class net.tribe7.common.io.ByteSink
Writes all the given bytes to this sink.
write(byte[], OutputSupplier<? extends OutputStream>) - Static method in class net.tribe7.common.io.ByteStreams
Writes a byte array to an output stream from the given supplier.
write(CharSequence) - Method in class net.tribe7.common.io.CharSink
Writes the given character sequence to this sink.
write(CharSequence, OutputSupplier<W>) - Static method in class net.tribe7.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 net.tribe7.common.io.CountingOutputStream
 
write(int) - Method in class net.tribe7.common.io.CountingOutputStream
 
write(int) - Method in class net.tribe7.common.io.FileBackedOutputStream
 
write(byte[]) - Method in class net.tribe7.common.io.FileBackedOutputStream
 
write(byte[], int, int) - Method in class net.tribe7.common.io.FileBackedOutputStream
 
write(byte[], File) - Static method in class net.tribe7.common.io.Files
Overwrites a file with the contents of a byte array.
write(CharSequence, File, Charset) - Static method in class net.tribe7.common.io.Files
Writes a character sequence (such as a string) to a file using the given character set.
write(byte[], int, int) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
 
write(int) - Method in class net.tribe7.common.io.NullOutputStream
Deprecated.
Discards the specified byte.
write(byte[], int, int) - Method in class net.tribe7.common.io.NullOutputStream
Deprecated.
Discards the specified byte array.
writeBoolean(boolean) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeBoolean(boolean) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
 
writeByte(int) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeByte(int) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
 
writeBytes(String) - Method in interface net.tribe7.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)).
writeBytes(String) - Method in class net.tribe7.common.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 net.tribe7.common.io.ByteArrayDataOutput
 
writeChar(int) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes a char as specified by DataOutputStream.writeChar(int), except using little-endian byte order.
writeChars(String) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeChars(String) - Method in class net.tribe7.common.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 net.tribe7.common.io.ByteArrayDataOutput
 
writeDouble(double) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes a double as specified by DataOutputStream.writeDouble(double), except using little-endian byte order.
writeFloat(float) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeFloat(float) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes a float as specified by DataOutputStream.writeFloat(float), except using little-endian byte order.
writeFrom(InputStream) - Method in class net.tribe7.common.io.ByteSink
Writes all the bytes from the given InputStream to this sink.
writeFrom(Readable) - Method in class net.tribe7.common.io.CharSink
Writes all the text from the given Readable (such as a Reader) to this sink.
writeInt(int) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeInt(int) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes an int as specified by DataOutputStream.writeInt(int), except using little-endian byte order.
writeLines(Iterable<? extends CharSequence>) - Method in class net.tribe7.common.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 net.tribe7.common.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 net.tribe7.common.io.ByteArrayDataOutput
 
writeLong(long) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes a long as specified by DataOutputStream.writeLong(long), except using little-endian byte order.
writeShort(int) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeShort(int) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
Writes a short as specified by DataOutputStream.writeShort(int), except using little-endian byte order.
writeUTF(String) - Method in interface net.tribe7.common.io.ByteArrayDataOutput
 
writeUTF(String) - Method in class net.tribe7.common.io.LittleEndianDataOutputStream
 
A B C D E F G H I J L M N O P R S T U V W