public class MemoryCache.PageInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayInputStream |
bais |
private ReaderWriterLock |
lock |
| Modifier | Constructor and Description |
|---|---|
private |
PageInputStream(ReaderWriterLock lock,
java.io.ByteArrayInputStream bais) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
private ReaderWriterLock lock
private java.io.ByteArrayInputStream bais
private PageInputStream(ReaderWriterLock lock, java.io.ByteArrayInputStream bais)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionCopyright 2004-2015 Wandora Team