public class FileSystemCache.PageOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.FileOutputStream |
fos |
private java.lang.String |
key |
private ReaderWriterLock |
lock |
private long |
modifyTime |
private FileSystemCache |
parent |
| Modifier | Constructor and Description |
|---|---|
private |
PageOutputStream(ReaderWriterLock lock,
java.io.FileOutputStream fos,
java.lang.String key,
long modifyTime,
FileSystemCache parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private java.io.FileOutputStream fos
private ReaderWriterLock lock
private java.lang.String key
private long modifyTime
private FileSystemCache parent
private PageOutputStream(ReaderWriterLock lock, java.io.FileOutputStream fos, java.lang.String key, long modifyTime, FileSystemCache parent)
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright 2004-2015 Wandora Team