Package com.atlassian.jira.util
Class LimitedOutputStream
java.lang.Object
java.io.OutputStream
com.atlassian.jira.util.LimitedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An
OutputStream that throws an LimitedOutputStream.TooBigIOException if more than the configured number of bytes are
ever written to the output stream.- Since:
- v4.4
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
LimitedOutputStream
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
getMaxLength
public long getMaxLength() -
getCurrentLength
public long getCurrentLength() -
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-