Package org.postgresql.core
Class FixedLengthOutputStream
java.lang.Object
java.io.OutputStream
org.postgresql.core.FixedLengthOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A stream that refuses to write more than a maximum number of bytes.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Constructor Details
-
FixedLengthOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
remaining
public int remaining()
-