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 ReaderFileProxy
public long fileLength()
fileLength
in interface ReaderFileProxy
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
close
in interface java.lang.AutoCloseable
close
in interface ReaderFileProxy
public double getCrcCheckChance()
ReaderFileProxy
getCrcCheckChance
in interface ReaderFileProxy
Copyright © 2009- The Apache Software Foundation