- 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
-
Constructor for use by subclasses.
- 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
-
Constructor for use by subclasses.
- 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.
- Closer - Class in net.tribe7.common.io
-
A
Closeable that collects
Closeable resources and closes them all when it is
closed.
- concat(Iterable<? extends ByteSource>) - Static method in class net.tribe7.common.io.ByteSource
-
Concatenates multiple
ByteSource instances into a single source.
- concat(Iterator<? extends ByteSource>) - Static method in class net.tribe7.common.io.ByteSource
-
Concatenates multiple
ByteSource instances into a single source.
- concat(ByteSource...) - Static method in class net.tribe7.common.io.ByteSource
-
Concatenates multiple
ByteSource instances into a single source.
- concat(Iterable<? extends CharSource>) - Static method in class net.tribe7.common.io.CharSource
-
Concatenates multiple
CharSource instances into a single source.
- concat(Iterator<? extends CharSource>) - Static method in class net.tribe7.common.io.CharSource
-
Concatenates multiple
CharSource instances into a single source.
- concat(CharSource...) - Static method in class net.tribe7.common.io.CharSource
-
Concatenates multiple
CharSource instances into a single source.
- 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
-
- copy(InputSupplier<? extends InputStream>, OutputStream) - Static method in class net.tribe7.common.io.ByteStreams
-
- copy(InputStream, OutputSupplier<? extends OutputStream>) - Static method in class net.tribe7.common.io.ByteStreams
-
- 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
-
Deprecated.
Use {@link CharSource#copyTo(CharSink) instead. This method is
scheduled for removal in Guava 18.0.
- copy(InputSupplier<R>, Appendable) - Static method in class net.tribe7.common.io.CharStreams
-
- 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
-
Deprecated.
Use from.copyTo(Files.asByteSink(to)) after changing
from to a ByteSource if necessary. This method is
scheduled to be removed in Guava 18.0.
- copy(File, OutputSupplier<? extends OutputStream>) - Static method in class net.tribe7.common.io.Files
-
Deprecated.
Use Files.asByteSource(from).copyTo(to) after changing
to to a ByteSink if necessary. This method is
scheduled to be removed in Guava 18.0.
- 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
-
Deprecated.
Use from.copyTo(Files.asCharSink(to, charset)) after
changing from to a CharSource if necessary. This
method is scheduled to be removed in Guava 18.0.
- copy(File, Charset, OutputSupplier<W>) - Static method in class net.tribe7.common.io.Files
-
Deprecated.
Use Files.asCharSource(from, charset).copyTo(to) after
changing to to a CharSink if necessary. This method is
scheduled to be removed in Guava 18.0.
- 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
-
- 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.
- length(InputSupplier<? extends InputStream>) - Static method in class net.tribe7.common.io.ByteStreams
-
- limit(InputStream, long) - Static method in class net.tribe7.common.io.ByteStreams
-
Wraps a InputStream, 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.
- read() - Method in class net.tribe7.common.io.ByteSource
-
Reads the full contents of this byte source as a byte array.
- read(ByteProcessor<T>) - Method in class net.tribe7.common.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 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
-
- 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
-
- 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
-
- 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(LineProcessor<T>) - Method in class net.tribe7.common.io.CharSource
-
Reads lines of text from this source, processing each line as it is read using the given
processor.
- readLines(InputSupplier<R>) - Static method in class net.tribe7.common.io.CharStreams
-
Deprecated.
Use CharSource.readLines() instead, but note that it
returns an ImmutableList. This method is scheduled for removal
in Guava 18.0.
- 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
-
- 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
-
- 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.
- 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.
- wrap(byte[]) - Static method in class net.tribe7.common.io.ByteSource
-
Returns a view of the given byte array as a
ByteSource.
- wrap(CharSequence) - Static method in class net.tribe7.common.io.CharSource
-
Returns a view of the given character sequence as a
CharSource.
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-