java.io.Closeable, java.io.Flushable, java.lang.AutoCloseableprivate class RollingFileStream.MeteredStream
extends java.io.OutputStream
| Modifier and Type | Field | 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 | Description |
|---|---|
MeteredStream(java.io.OutputStream out,
int written) |
Creates a new instance of MeteredStream
|
| Modifier and Type | Method | 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.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.