| Interface and Description |
|---|
| net.tribe7.common.io.InputSupplier
For
InputSupplier<? extends InputStream>, use
ByteSource instead. For InputSupplier<? extends Reader>,
use CharSource. Implementations of InputSupplier that
don't fall into one of those categories do not benefit from any of the
methods in common.io and should use a different interface. This
interface is scheduled for removal in June 2015. |
| net.tribe7.common.io.OutputSupplier
For
OutputSupplier<? extends OutputStream>, use
ByteSink instead. For OutputSupplier<? extends Writer>,
use CharSink. Implementations of OutputSupplier that
don't fall into one of those categories do not benefit from any of the
methods in common.io and should use a different interface. This
interface is scheduled for removal in June 2015. |
| Method and Description |
|---|
| net.tribe7.common.io.ByteStreams.asByteSink(OutputSupplier extends OutputStream>)
Convert all
OutputSupplier<? extends OutputStream>
implementations to extend ByteSink or provide a method for
viewing the object as a ByteSink. This method is scheduled
for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.asByteSource(InputSupplier extends InputStream>)
Convert all
InputSupplier<? extends InputStream>
implementations to extend ByteSource or provide a method for
viewing the object as a ByteSource. This method is scheduled
for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.asCharSink(OutputSupplier extends Appendable>)
Convert all
OutputSupplier<? extends Appendable>
implementations to extend CharSink or provide a method for
viewing the object as a CharSink. This method is scheduled
for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.asCharSource(InputSupplier extends Readable>)
Convert all
InputSupplier<? extends Readable>
implementations to extend CharSource or provide a method for
viewing the object as a CharSource. This method is scheduled
for removal in Guava 18.0. |
| net.tribe7.common.io.Files.copy(File, Charset, OutputSupplier 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. |
| net.tribe7.common.io.Files.copy(File, OutputSupplier extends OutputStream>)
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. |
| net.tribe7.common.io.ByteStreams.copy(InputStream, OutputSupplier extends OutputStream>)
Use
ByteSink.writeFrom(InputStream) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.copy(InputSupplier extends InputStream>, File)
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. |
| net.tribe7.common.io.ByteStreams.copy(InputSupplier extends InputStream>, OutputStream)
Use
ByteSource.copyTo(OutputStream) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.copy(InputSupplier extends InputStream>, OutputSupplier extends OutputStream>)
Use
ByteSource.copyTo(ByteSink) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.copy(InputSupplier Use
CharSource.copyTo(Appendable) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.copy(InputSupplier 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. |
| net.tribe7.common.io.CharStreams.copy(InputSupplier Use {@link CharSource#copyTo(CharSink) instead. This method is
scheduled for removal in Guava 18.0.
|
| net.tribe7.common.io.ByteStreams.equal(InputSupplier extends InputStream>, InputSupplier extends InputStream>)
Use
ByteSource.contentEquals(ByteSource) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteSource.getInput()
This method is only provided for temporary compatibility with the
InputSupplier interface and should not be called directly. Use ByteSource.openStream()
instead. This method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharSource.getInput()
This method is only provided for temporary compatibility with the
InputSupplier interface and should not be called directly. Use CharSource.openStream()
instead. This method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteSink.getOutput()
This method is only provided for temporary compatibility with the
OutputSupplier interface and should not be called directly. Use
ByteSink.openStream() instead. This method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharSink.getOutput()
This method is only provided for temporary compatibility with the
OutputSupplier interface and should not be called directly. Use
CharSink.openStream() instead. This method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.hash(InputSupplier extends InputStream>, HashFunction)
Use
ByteSource.hash(HashFunction) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.join(InputSupplier extends InputStream>...)
Use
ByteSource.concat(ByteSource[]) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.join(InputSupplier extends Reader>...)
Use
CharSource.concat(CharSource[]) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.join(Iterable extends InputSupplier extends InputStream>>)
Use
ByteSource.concat(Iterable) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.join(Iterable extends InputSupplier extends Reader>>)
Use
CharSource.concat(Iterable) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.length(InputSupplier extends InputStream>)
Use
ByteSource.size() instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.newInputStreamSupplier(byte[])
Use
ByteSource.wrap(byte[]) instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.newInputStreamSupplier(byte[], int, int)
Use
ByteSource.wrap(b).slice(off, len) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.newInputStreamSupplier(File)
Use
Files.asByteSource(File). This method is scheduled for
removal in Guava 18.0. |
| net.tribe7.common.io.Resources.newInputStreamSupplier(URL)
Use
asByteSource(URL) instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.newOutputStreamSupplier(File)
Use
#asByteSink(File). This method is scheduled for
removal in Guava 18.0. |
| net.tribe7.common.io.Files.newOutputStreamSupplier(File, boolean)
Use
Files.asByteSink(File, FileWriteMode...), passing
FileWriteMode.APPEND for append. This method is scheduled for
removal in Guava 18.0. |
| net.tribe7.common.io.Files.newReaderSupplier(File, Charset)
Use
Files.asCharSource(File, Charset). This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.newReaderSupplier(InputSupplier extends InputStream>, Charset)
Use
ByteSource.asCharSource(Charset) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.newReaderSupplier(String)
Use
CharSource#wrap(CharSequence} instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Resources.newReaderSupplier(URL, Charset)
Use
asCharSource(URL, Charset) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.newWriterSupplier(File, Charset)
Use
#asCharSink(File, Charset). This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.Files.newWriterSupplier(File, Charset, boolean)
Use
Files.asCharSink(File, Charset, FileWriteMode...),
passing FileWriteMode.APPEND for append. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.newWriterSupplier(OutputSupplier extends OutputStream>, Charset)
Use
ByteSink.asCharSink(Charset) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.readBytes(InputSupplier extends InputStream>, ByteProcessor Use
ByteSource.read(ByteProcessor) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.readFirstLine(InputSupplier Use
CharSource.readFirstLine() instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.readLines(InputSupplier Use
CharSource.readLines() instead, but note that it
returns an ImmutableList. This method is scheduled for removal
in Guava 18.0. |
| net.tribe7.common.io.CharStreams.readLines(InputSupplier Use
CharSource.readLines(LineProcessor) instead. This
method is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.slice(InputSupplier extends InputStream>, long, long)
Use
ByteSource#slice(int, int) instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.toByteArray(InputSupplier extends InputStream>)
Use
ByteSource.read() instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.toString(InputSupplier Use
CharSource.read() instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.ByteStreams.write(byte[], OutputSupplier extends OutputStream>)
Use
ByteSink.write(byte[]) instead. This method is
scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.CharStreams.write(CharSequence, OutputSupplier Use
CharSink.write(CharSequence) instead. This method
is scheduled for removal in Guava 18.0. |
| net.tribe7.common.io.LittleEndianDataOutputStream.writeBytes(String)
The semantics of
writeBytes(String s) are considered
dangerous. Please use LittleEndianDataOutputStream.writeUTF(String s),
LittleEndianDataOutputStream.writeChars(String s) or another write method instead. |
| net.tribe7.common.io.ByteArrayDataOutput.writeBytes(String)
This method is dangerous as it discards the high byte of
every character. For UTF-8, use
write(s.getBytes(Charsets.UTF_8)). |