| Class and Description |
|---|
| net.tribe7.common.io.LimitInputStream
Use
ByteStreams.limit(java.io.InputStream, long) instead. This class is scheduled
to be removed in Guava release 15.0. |
| net.tribe7.common.io.NullOutputStream
Use
ByteStreams.nullOutputStream() instead. This class is
scheduled to be removed in Guava release 15.0. |
| Method and Description |
|---|
| net.tribe7.common.io.Closeables.closeQuietly(Closeable)
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. |
| net.tribe7.common.io.Files.getChecksum(File, Checksum)
Use
hash with the Hashing.crc32() or
Hashing.adler32() hash functions. This method is scheduled
to be removed in Guava 15.0. |
| net.tribe7.common.io.ByteStreams.getChecksum(InputSupplier extends InputStream>, Checksum)
Use
hash with the Hashing.crc32() or
Hashing.adler32() hash functions instead. This method is
scheduled to be removed in Guava 15.0. |
| 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)). |
| 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. |