public abstract class AbstractReaderFileProxy extends java.lang.Object implements ReaderFileProxy
| Modifier and Type | Field and Description |
|---|---|
protected ChannelProxy |
channel |
protected long |
fileLength |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReaderFileProxy(ChannelProxy channel,
long fileLength) |
| Modifier and Type | Method and Description |
|---|---|
ChannelProxy |
channel() |
void |
close() |
long |
fileLength() |
double |
getCrcCheckChance()
Needed for tests.
|
java.lang.String |
toString() |
protected final ChannelProxy channel
protected final long fileLength
protected AbstractReaderFileProxy(ChannelProxy channel, long fileLength)
public ChannelProxy channel()
channel in interface ReaderFileProxypublic long fileLength()
fileLength in interface ReaderFileProxypublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
close in interface java.lang.AutoCloseableclose in interface ReaderFileProxypublic double getCrcCheckChance()
ReaderFileProxygetCrcCheckChance in interface ReaderFileProxyCopyright © 2018 The Apache Software Foundation