public class

LimitedOutputStream

extends OutputStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ com.atlassian.jira.util.LimitedOutputStream

Class Overview

An OutputStream that throws an LimitedOutputStream.TooBigIOException if more than the configured number of bytes are ever written to the output stream.

Summary

Nested Classes
class LimitedOutputStream.TooBigIOException  
Public Constructors
LimitedOutputStream(OutputStream delegate, long maxLength)
Public Methods
void close()
void flush()
long getCurrentLength()
long getMaxLength()
void write(byte[] b, int off, int len)
void write(int b)
[Expand]
Inherited Methods
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Public Constructors

public LimitedOutputStream (OutputStream delegate, long maxLength)

Public Methods

public void close ()

Throws
IOException

public void flush ()

Throws
IOException

public long getCurrentLength ()

public long getMaxLength ()

public void write (byte[] b, int off, int len)

Throws
IOException

public void write (int b)

Throws
IOException