public class MemoryCache.PageOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
baos |
private java.lang.String |
key |
private ReaderWriterLock |
lock |
private long |
modifyTime |
private MemoryCache |
parent |
Modifier | Constructor and Description |
---|---|
private |
PageOutputStream(ReaderWriterLock lock,
java.lang.String key,
long modifyTime,
MemoryCache 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.ByteArrayOutputStream baos
private ReaderWriterLock lock
private java.lang.String key
private long modifyTime
private MemoryCache parent
private PageOutputStream(ReaderWriterLock lock, java.lang.String key, long modifyTime, MemoryCache 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