Methods Summary |
---|
public void | close()
super.close();
ramc.close();
|
public void | flushBefore(long pos)
super.flushBefore(pos);
ramc.freeBefore(getFlushedPosition());
|
public boolean | isCached()
return true;
|
public boolean | isCachedFile()
return false;
|
public boolean | isCachedMemory()
return true;
|
public int | read()
bitOffset = 0;
if (streamPos >= ramc.length()) {
int count = (int)(streamPos - ramc.length() + 1);
int bytesAppended = ramc.appendData(is, count);
if (bytesAppended < count) {
return -1;
}
}
int res = ramc.getData(streamPos);
if (res >= 0) {
streamPos++;
}
return res;
|
public int | read(byte[] b, int off, int len)
bitOffset = 0;
if (streamPos >= ramc.length()) {
int count = (int)(streamPos - ramc.length() + len);
ramc.appendData(is, count);
}
int res = ramc.getData(b, off, len, streamPos);
if (res > 0) {
streamPos += res;
}
return res;
|