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.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
Copyright 2004-2015 Wandora Team