Class RollingFileStream.MeteredStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.derby.impl.services.stream.RollingFileStream.MeteredStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- RollingFileStream
private class RollingFileStream.MeteredStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description MeteredStream(java.io.OutputStream out, int written)
Creates a new instance of MeteredStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getWritten()
void
write(int b)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
getWritten
public int getWritten()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
-