Package com.google.common.io
Class Flushables
java.lang.Object
com.google.common.io.Flushables
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Utility methods for working with
Flushable objects.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.Flush aFlushable, with control over whether anIOExceptionmay be thrown.static voidflushQuietly(Flushable flushable) Deprecated.Equivalent to callingflush(flushable, true), but with noIOExceptionin the signature.
-
Method Details
-
flush
Deprecated.Flush aFlushable, with control over whether anIOExceptionmay be thrown.If
swallowIOExceptionis true, then we don't rethrowIOException, but merely log it.- Parameters:
flushable- theFlushableobject to be flushed.swallowIOException- if true, don't propagate IO exceptions thrown by theflushmethod- Throws:
IOException- ifswallowIOExceptionis false andFlushable.flush()throws anIOException.- See Also:
-
flushQuietly
Deprecated.Equivalent to callingflush(flushable, true), but with noIOExceptionin the signature.- Parameters:
flushable- theFlushableobject to be flushed.
-