public abstract class CloseableByteSource
extends com.google.common.io.ByteSource
implements java.io.Closeable
ByteTracker uses
CloseableByteSources to know when the data associated with the byte source can be
released.| Constructor and Description |
|---|
CloseableByteSource()
Creates a new byte source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
innerClose()
Closes the by source.
|
public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionprotected abstract void innerClose()
throws java.io.IOException
close() is
called multiple times.java.io.IOException - failed to close