private class RollingFileStream.MeteredStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) java.io.OutputStream |
out
The real OutputStream to delegate to
|
(package private) int |
written
The number of bytes written so far to the OutputStream
|
| Constructor and Description |
|---|
MeteredStream(java.io.OutputStream out,
int written)
Creates a new instance of MeteredStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getWritten() |
void |
write(int b) |
java.io.OutputStream out
int written
MeteredStream(java.io.OutputStream out,
int written)
out - The OutputStream to delegate towritten - The number of bytes currently written to the OuptutStreampublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic int getWritten()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.